/* /work/, the text version (Mason, 2026-11-20): a misty landscape behind one frosted window, the way his Tend site
   looks (D73). One sidebar to move between sections; everything else is cards on the glass.
   The page is static HTML; work.js only marks the section in view, so nothing here depends on it. */

@font-face { font-family: "Overpass"; src: url("../assets/fonts/overpass-latin-wght.woff2") format("woff2"); font-weight: 400 800; font-display: optional;
  /* U+00B7 is left out on purpose: Overpass's middle dot has zero advance width; the fallback draws it. */
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass Fallback"; src: local("Arial"), local("Roboto"); size-adjust: 100.4%; ascent-override: 87.7%; descent-override: 37.9%; line-gap-override: 0%; }
@font-face { font-family: "Voice"; src: local("Georgia"), url("../assets/fonts/gelasio-latin-400.woff2") format("woff2"); font-weight: 400; font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #15231d;          /* headings, names */
  --ink-2: #26342d;        /* body text */
  --ink-3: #314038;        /* dates, labels (dark enough on the glass where the hills show through: check.mjs) */
  --green: #1f4a3d;        /* Tend's deep green: the featured card, primary pill, links */
  --green-2: #275a4a;
  --on-green: #f1f6f2;
  --on-green-2: #cfdfd5;
  --glass: rgba(240, 244, 238, 0.62);
  --glass-solid: rgba(240, 244, 238, 0.95);
  --side-tint: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.5);
  --card-hover: rgba(255, 255, 255, 0.74);
  --card-edge: rgba(255, 255, 255, 0.72);
  --line: rgba(31, 74, 61, 0.14);
  --shadow-card: 0 1px 2px rgba(18, 38, 30, 0.05), 0 12px 32px -20px rgba(18, 38, 30, 0.3);
  --shadow-window: 0 40px 100px -40px rgba(10, 28, 20, 0.5);
  --serif: "Voice", Georgia, "Times New Roman", serif;
  --sans: "Overpass", "Overpass Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --side-w: 248px;
  --gap: 40px;             /* the window's distance from the viewport edge */
  --r-window: 28px;
  --r-card: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #a3b2a0; scroll-padding-top: 24px; }   /* the photo's misty mid-tone, until it loads */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; font: 400 16px/1.6 var(--sans); color: var(--ink-2); }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
p { margin: 0 0 12px; }
h1, h2, h3 { color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--green); color: var(--on-green); }
.skip-link:focus { top: 16px; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the landscape */
.backdrop { position: fixed; inset: 0; z-index: -1; display: block; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%; display: block; }

/* ---- the window: sidebar column (tinted) and main column */
.window {
  position: relative;
  width: min(1240px, 100% - 2 * var(--gap));
  margin: var(--gap) auto;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  background:
    linear-gradient(90deg, var(--side-tint) 0 var(--side-w), var(--line) var(--side-w) calc(var(--side-w) + 1px), transparent calc(var(--side-w) + 1px)),
    var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  backdrop-filter: blur(26px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-window);
  box-shadow: var(--shadow-window), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: clip;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .window { background-color: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .window { background-color: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- sidebar */
.side {
  position: sticky; top: var(--gap); align-self: start;
  display: flex; flex-direction: column;
  height: calc(100vh - 2 * var(--gap)); max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 14px 16px;
}
.wordmark { display: block; padding: 0 12px 22px; font: 400 23px/1.2 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; margin: 1px 0; border-radius: 12px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.45); color: var(--ink); }
.side-nav a[aria-current] { background: rgba(255, 255, 255, 0.82); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 38, 30, 0.08); }
.side-nav .sub { padding: 2px 0 6px 28px; }
.side-nav .sub a { padding: 5px 12px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.side-nav .sub a[aria-current] { background: none; box-shadow: none; color: var(--green); font-weight: 600; }
.side-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none;
}
.side-foot:hover { color: var(--ink); }

/* ---- main column */
.main { min-width: 0; padding: 34px 40px 36px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 28px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.top-text { min-width: 0; flex: 1 1 26rem; }
h1 { margin: 0 0 6px; font: 400 clamp(34px, 3.2vw, 44px)/1.12 var(--serif); letter-spacing: -0.015em; }
.role { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 46rem; text-wrap: balance; }   /* the dot stays with the word before it (&nbsp;) */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--card-edge);
  color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none;
  box-shadow: 0 1px 2px rgba(18, 38, 30, 0.06);
}
.pill:hover { background: rgba(255, 255, 255, 0.88); }
.pill:first-child { background: var(--green); border-color: var(--green); color: var(--on-green); }
.pill:first-child:hover { background: var(--green-2); }

.section { padding-top: 34px; }
.section-title { margin: 0 0 14px; font: 400 27px/1.2 var(--serif); letter-spacing: -0.01em; }

.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* About: his words beside the room */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.about-text { padding: 24px 28px 14px; }
.about-text p { max-width: 62ch; }
.lead { margin-bottom: 14px; font: 400 23px/1.32 var(--serif); color: var(--ink); }
.room-card { display: flex; flex-direction: column; padding: 10px; text-decoration: none; }
.room-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; background: #2a2d27; }
.room-card:hover { background: var(--card-hover); }
.room-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 4px; color: var(--green); font-weight: 600; font-size: 15px; }

/* Projects */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project { position: relative; display: flex; flex-direction: column; padding: 18px 22px 16px; scroll-margin-top: 24px; transition: background-color 0.15s ease; }
.project:has(h3 a):hover { background: var(--card-hover); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chip { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: rgba(255, 255, 255, 0.78); fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.year { color: var(--ink-3); font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.project h3 { margin: 0 0 8px; font: 600 19px/1.3 var(--sans); letter-spacing: -0.005em; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }   /* the whole card is the link */
.project h3 a:focus-visible { outline: none; }
.project h3 a:focus-visible::after { outline: 2px solid var(--green); outline-offset: 2px; }
.ico.out { width: 15px; height: 15px; margin-left: 4px; vertical-align: -1px; color: var(--ink-3); }
.project p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.project .go { margin: auto 0 0; padding-top: 6px; color: var(--green); font-size: 14.5px; font-weight: 600; }
.project .more { position: relative; z-index: 1; margin: auto 0 0; padding-top: 4px; font-size: 14.5px; font-weight: 600; }
.did-label { margin-right: 6px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.feature { grid-column: 1 / -1; background: var(--green); border-color: rgba(255, 255, 255, 0.14); }
.feature:hover, .feature:has(h3 a):hover { background: var(--green-2); }
.feature h3, .feature .go { color: var(--on-green); }
.feature p, .feature .year, .feature .ico.out { color: var(--on-green-2); }
.feature .chip { background: rgba(255, 255, 255, 0.13); stroke: var(--on-green); }
.feature h3 a:focus-visible::after { outline-color: var(--on-green); outline-offset: -4px; }
.feature p { max-width: 70ch; }

/* Work and Education: one card, a row per entry */
.record { list-style: none; margin: 0; padding: 4px 26px; }
.record > li { padding: 18px 0; }
.record > li + li { border-top: 1px solid var(--line); }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; }
.job-title { margin: 0; font: 600 17px/1.35 var(--sans); }
.job-dates { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.job-org { margin: 2px 0 0; color: var(--ink-3); font-size: 14.5px; }
.job-points { margin: 8px 0 0; padding-left: 18px; font-size: 15px; list-style: disc; }
.job-points li { margin-bottom: 4px; padding-left: 2px; }
.job-points li::marker { color: var(--green); }

/* The first tape */
.tape { padding: 24px 28px 14px; }
.tape p { max-width: 66ch; }
.tape .tape-intro { color: var(--ink-3); font-size: 14.5px; }
.tape p[data-intro] { font: 400 17px/1.62 var(--serif); color: var(--ink); }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 6px 10px; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list a {
  display: grid; grid-template-columns: auto 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  padding: 14px 12px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.contact-list a:hover { background: rgba(255, 255, 255, 0.55); }
.c-label { font-weight: 600; }
.c-value { color: var(--ink-2); overflow-wrap: anywhere; }
.c-go { color: var(--ink-3); }

/* Footer */
.site-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink); }   /* green on the glass's darkest patch measured 4.1:1 */
.credits { margin: 0 0 12px; }
.credits summary { cursor: pointer; width: fit-content; color: var(--ink-2); font-weight: 600; }
.credits p { margin: 8px 0 0; max-width: 80ch; }

/* ---- narrower windows */
@media (max-width: 1100px) {
  :root { --side-w: 216px; --gap: 24px; }
  .main { padding: 30px 30px 32px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .room-card { max-width: 30rem; }
}

/* ---- phones and small tablets: the sidebar becomes a bar of sections across the top */
@media (max-width: 860px) {
  :root { --gap: 10px; --r-window: 22px; }
  .window { display: block; background: var(--glass); }
  .side {
    position: sticky; top: 0; z-index: 5; height: auto; max-height: none; overflow: visible;
    padding: 10px 0 8px; background: rgba(240, 244, 238, 0.95); border-bottom: 1px solid var(--line);   /* text passing under it mustn't show through */
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .wordmark { display: none; }   /* the h1 says his name right below; the room card links the room */
  .side-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 2px 14px 4px; scrollbar-width: none; }
  .side-nav ul::-webkit-scrollbar { display: none; }
  .side-nav li { flex: none; }
  .side-nav a { padding: 7px 12px; margin: 0; white-space: nowrap; font-size: 14px; background: rgba(255, 255, 255, 0.4); }
  .side-nav .ico, .side-nav .sub, .side-foot { display: none; }
  .main { padding: 22px 18px 26px; }
  .top { flex-direction: column; }
  .top-text { flex-basis: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .about-text, .tape { padding: 20px 20px 10px; }
  .record { padding: 2px 18px; }
  .lead { font-size: 21px; }
  .contact-list a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .contact-list .ico:first-child { grid-row: span 2; }
  .c-label, .c-value { grid-column: 2; }
  .c-go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 860px) { html { scroll-padding-top: 70px; } }   /* below the bar of sections */
