/* drewcotech.com/ai-at-drewcotech. Loaded after /yummy/yummy.css and uses its colour and shape roles.
   The markup uses semantic tags plus a few custom tags (yd-hero, yd-grid, yd-card, yd-notice) instead of
   classed divs, so the Inspect view stays readable. Custom tags are plain HTML here: no JavaScript. */

yd-hero, yd-grid, yd-card, yd-notice { display: block; }

/* Top bar and footer */
body > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 16px 24px; }
body > header img { width: 130px; height: auto; display: block; }
body > header nav { display: flex; gap: 4px; flex-wrap: wrap; }
body > header nav a { text-decoration: none; color: var(--md-on-surface-variant); font-weight: 560; padding: 10px 16px; border-radius: var(--shape-full);
  transition: background .2s var(--ease), color .2s var(--ease), border-radius .35s var(--spring); }
body > header nav a:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); color: var(--md-on-surface); }
body > header nav a:active { border-radius: var(--shape-md); }

body > footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; max-width: 1100px; margin: 0 auto; padding: 28px 24px 44px;
  color: var(--md-on-surface-variant); font-size: .86rem; }
body > footer a { color: inherit; }

main { max-width: 820px; margin: 0 auto; padding: 24px 16px 56px; }

/* Hero: tonal surface with two slowly morphing Expressive shapes (same as Yummy's .hero) */
yd-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 64px 24px 56px; margin: 4px 0 22px;
  background: var(--md-primary-container); color: var(--md-on-primary-container); border-radius: var(--shape-xxl); }
yd-hero::before, yd-hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
yd-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: var(--md-primary); opacity: .16;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: yd-morph 18s ease-in-out infinite alternate; }
yd-hero::after { width: 300px; height: 300px; left: -90px; bottom: -150px; background: var(--md-tertiary-container); opacity: .9;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; animation: yd-morph 22s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { yd-hero::after { background: var(--md-on-primary-container); opacity: .1; } }
yd-hero small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; opacity: .85; }
yd-hero h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); font-weight: 820; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 14px; }
yd-hero p { font-size: 1.2rem; max-width: 660px; margin: 0 auto; }

/* Sections */
section { margin: 40px 0; }
section > h2 { font-size: 1.55rem; margin-bottom: 12px; }
section > p { max-width: 68ch; }

yd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
yd-card { background: var(--md-surface-container-low); border-radius: var(--shape-xl); padding: 26px; }
yd-card > svg { display: block; width: 44px; height: 44px; padding: 11px; margin-bottom: 14px; border-radius: var(--shape-lg);
  background: var(--md-primary-container); color: var(--md-on-primary-container); }
yd-card h3 { margin-top: 0; font-size: 1.1rem; }
yd-card p { margin: 0; color: var(--md-on-surface-variant); }

section > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
section > ul li { background: var(--md-surface-container-low); border-radius: var(--shape-lg); padding: 14px 18px; color: var(--md-on-surface-variant); }
section > ul li b { display: block; margin-bottom: 2px; color: var(--md-on-surface); }

/* The formal notice */
yd-notice { border-radius: var(--shape-xl); box-shadow: inset 0 0 0 1px var(--md-outline-variant); padding: 30px; }
yd-notice h2 { font-size: 1.35rem; }
yd-notice > p { color: var(--md-on-surface-variant); font-size: .9rem; margin-bottom: 18px; }
yd-notice ol { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
yd-notice li { padding-left: .2em; }
yd-notice li::marker { font-weight: 700; color: var(--md-primary); }
yd-notice li b { font-weight: 650; }

@media (max-width: 600px) {
  body > header { padding: 14px 16px; }
  yd-hero { padding: 44px 20px 40px; }
  yd-notice { padding: 22px 18px; }
  body > footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { yd-hero::before, yd-hero::after { animation: none; } }
