/* AlveyTech — site styles
   Layout: narrow reading column for prose; the technology section widens to show
   each age group, the person it's built for, and their apps with previews. */
:root {
  --bg: #F3F5F4;          /* paper, faint green-grey */
  --surface: #FFFFFF;
  --ink: #15262A;         /* deep teal ink */
  --muted: #586A6D;
  --line: #D3DCDA;
  --accent: #2740C4;      /* cobalt */
  --accent-ink: #FFFFFF;
  --d-pre: #E9A400;       /* demographic hues */
  --d-teen: #E2553F;
  --d-ya: #2E9A6B;
  --d-pro: #2740C4;
  --tbd: #9A6B00;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A1C; --surface: #16252A; --ink: #E6EEEC; --muted: #9AACAD; --line: #2A3B3F;
    --accent: #8EA0FF; --accent-ink: #0F1A1C;
    --d-pre: #F2BE3A; --d-teen: #F07A66; --d-ya: #4FC08D; --d-pro: #8EA0FF; --tbd: #F2BE3A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A1C; --surface: #16252A; --ink: #E6EEEC; --muted: #9AACAD; --line: #2A3B3F;
  --accent: #8EA0FF; --accent-ink: #0F1A1C;
  --d-pre: #F2BE3A; --d-teen: #F07A66; --d-ya: #4FC08D; --d-pro: #8EA0FF; --tbd: #F2BE3A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; }

.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}


/* Color ties: the four age-group hues as a stripe across the top of every page,
   and as a small swatch before each section label. */
.spectrum { height: 6px; background: linear-gradient(90deg, var(--d-pre) 0 25%, var(--d-teen) 25% 50%, var(--d-ya) 50% 75%, var(--d-pro) 75%); }
.eyebrow.sec { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.eyebrow.sec::before { content: ""; flex: none; width: 2.5rem; height: 0.55rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--d-pre) 0 25%, var(--d-teen) 25% 50%, var(--d-ya) 50% 75%, var(--d-pro) 75%); }

/* Header */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark span { font: 700 1.35rem/1 var(--f-display); letter-spacing: -0.02em; }
.wordmark b { font-weight: 700; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.1; font-weight: 650; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 650; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font: 500 0.78rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.2rem; line-height: 1.55; }

main section { padding-block: 3rem; }
/* section dividers sit inside the side gutter so they line up with the dividers between age groups */
main section + section { background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px))) 1px no-repeat; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }

/* Placeholders: anything still his call */
.tbd { color: var(--tbd); border-bottom: 1.5px dashed currentColor; }
.tbd-chip { display: inline-block; font: 500 0.78rem/1 var(--f-mono); color: var(--tbd); border: 1.5px dashed currentColor; border-radius: 999px; padding: 0.3rem 0.6rem; letter-spacing: 0.04em; }
.draft-note { font: 400 0.82rem/1.5 var(--f-mono); color: var(--muted); }

/* Hero */
.hero { padding-block: 2.5rem 3rem; }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Technology: one band per age group, then a card per person with their apps.
   The illustration rises out of the top edge of the person card. */
.pre { --hue: var(--d-pre); } .teen { --hue: var(--d-teen); } .ya { --hue: var(--d-ya); } .pro { --hue: var(--d-pro); }
.band { display: grid; gap: 0; padding-block: 2.25rem 0.5rem; border-top: 1px solid var(--line); }
.band-head { display: grid; gap: 0.5rem; justify-items: start; }
.band-head .eyebrow { color: var(--ink); background: color-mix(in srgb, var(--hue) 32%, transparent); padding: 0.3rem 0.65rem; border-radius: 999px; }
.band-head h3, .band-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.1; }
.band-head p:not(.eyebrow) { color: var(--muted); }
.band-link { font-size: 0.95rem; font-weight: 500; }
.band-empty { margin-top: 1rem; }

.person {
  position: relative; margin-top: 4.75rem;
  display: grid; grid-template-columns: clamp(9rem, 20%, 13rem) minmax(0, 1fr);
  grid-template-areas: "fig head" "fig apps"; gap: 0.75rem 1.75rem; align-items: start;
  background: color-mix(in srgb, var(--hue) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--hue) 40%, var(--line)); border-radius: 18px;
  padding: 1.25rem 1.5rem 1.5rem 2rem;
}
/* left-aligned swatch in the age group's color */
.person::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 10px;
  border-radius: 18px 0 0 18px; background: var(--hue); }
.person + .person { margin-top: 6rem; }
.person-fig { grid-area: fig; position: relative; }
.person-img {
  display: block; width: 100%; height: auto; margin-top: -5.75rem; margin-left: -0.75rem;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--ink) 18%, transparent));
}
.person-ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 9rem; margin-top: -3.5rem;
  border-radius: 50%; background: color-mix(in srgb, var(--hue) 30%, var(--surface)); border: 2px dashed var(--hue);
  font: 700 3.6rem/1 var(--f-display); color: var(--ink);
}
.person-head { grid-area: head; display: grid; gap: 0.15rem; padding-top: 0.25rem; }
.person-head h3 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; }
.person-sub { font: 500 0.8rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.app-grid { grid-area: apps; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem 1.25rem; }
.app-card { display: grid; gap: 0.35rem; text-decoration: none; color: var(--ink); }
.app-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); transition: transform .18s ease, box-shadow .18s ease; }
.app-card:hover img, .app-card:focus-visible img { transform: translateY(-3px); box-shadow: 0 10px 22px color-mix(in srgb, var(--ink) 16%, transparent); }
.app-card:focus-visible { outline: none; }
.app-card:focus-visible .app-name { text-decoration: underline; }
.app-name { font: 650 1.15rem/1.25 var(--f-display); margin-top: 0.3rem; }
.app-card:hover .app-name { color: var(--accent); }
.app-desc { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

@media (max-width: 40rem) {
  .person { grid-template-columns: 7rem minmax(0, 1fr); grid-template-areas: "fig head" "apps apps"; padding: 1rem 1rem 1.25rem 1.5rem; margin-top: 4.5rem; gap: 0.75rem 1rem; }
  .person + .person { margin-top: 5rem; }
  .person-img { margin-top: -4.5rem; margin-left: -0.25rem; }
  .person-ph { margin-top: -2.5rem; font-size: 2.6rem; }
  .person-head { align-self: end; }
}

/* About */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.timeline .when { font: 500 0.8rem/1.7 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.companies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 1.5rem; }
.companies li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
h2 .who { font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 0.5rem; vertical-align: middle; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.contact-box code, .mono { font: 400 0.88rem/1.5 var(--f-mono); overflow-wrap: anywhere; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; }
.site-foot .wrap { padding-block: 2rem 2.5rem; display: grid; gap: 1.25rem; }
.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.4rem 1rem; font-size: 0.92rem; }
.directory a { color: var(--ink); text-decoration: none; }
.directory a:hover { color: var(--accent); text-decoration: underline; }
.copyright { font-size: 0.85rem; color: var(--muted); }
.copyright a { color: var(--ink); }

@media (max-width: 30rem) {
  .timeline li { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* How it's built: three-step pipeline in the age-group colors */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; counter-reset: none; }
.pipeline li { position: relative; display: grid; gap: 0.4rem; align-content: start; padding: 1.1rem 1.25rem 1.25rem 1.75rem;
  background: color-mix(in srgb, var(--hue) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--hue) 40%, var(--line)); border-radius: 14px; }
.pipeline li::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 8px; border-radius: 14px 0 0 14px; background: var(--hue); }
.pipeline .step { font: 500 0.8rem/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pipeline p { color: var(--muted); font-size: 0.95rem; }
.peek { font: 500 0.82rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
