:root {
  --paper: #f3f0e8;
  --cream: #e7e0d2;
  --ink: #1c1d1a;
  --muted: #696861;
  --orange: #d95a2b;
  --forest: #173b33;
  --green: #b8f95b;
  --line: rgba(28, 29, 26, 0.17);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(243, 240, 232, .56), rgba(243, 240, 232, .56)),
    url("assets/home-background-warm-desk-v2.png") center / cover fixed no-repeat;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, .96);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.04em; }
.brand strong { font-weight: 800; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 9px/1 monospace;
}
.main-nav { display: flex; gap: 34px; align-items: center; font-size: 12px; font-weight: 700; }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: var(--orange); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 5px 0; background: var(--ink); }

.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--orange); font: 700 10px/1.2 monospace; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 8px; background: currentColor; vertical-align: middle; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 23px; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: 17px; }
.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--orange); background: var(--orange); color: white; }
.button-dark { border-color: var(--ink); background: var(--ink); color: white; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 750; }

.home-hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.home-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("assets/home-background-warm-desk-v2.png") center / cover no-repeat;
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.01);
}
.home-veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 240, 232, .46) 0%, rgba(243, 240, 232, .20) 50%, rgba(243, 240, 232, .06) 100%);
}
.home-hero-inner {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  padding-block: 52px;
}
.home-copy {
  width: min(560px, 58%);
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(243, 240, 232, .78);
  box-shadow: 0 18px 55px rgba(40, 33, 25, .1);
  backdrop-filter: blur(9px);
}
.home-copy h1 { max-width: 610px; margin-bottom: 22px; }
.home-copy h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.home-copy .lead { max-width: 525px; }
.home-actions { display: flex; gap: 12px; margin-top: 28px; }
.home-note { display: flex; gap: 24px; margin-top: 38px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font: 700 9px/1.3 monospace; text-transform: uppercase; letter-spacing: .06em; }
.crt-card { position: absolute; right: 0; bottom: 8%; width: 320px; padding: 10px; background: #343530; box-shadow: 0 20px 50px rgba(0,0,0,.29); }
.crt-bar { height: 20px; color: #aaa; text-align: right; font: 8px/20px monospace; }
.crt-screen { min-height: 160px; padding: 22px; display: flex; align-items: center; color: var(--green); background: radial-gradient(circle, #173f30, #06110d 78%); box-shadow: inset 0 0 34px rgba(0,0,0,.75); font: 700 16px/1.7 "Courier New", monospace; text-shadow: 0 0 8px rgba(184,249,91,.85); }
.crt-screen p { margin: 0; }

/* On wide screens, keep the hero overlays near the outer edges so the
   background machines remain the visual focus. */
@media (min-width: 1320px) {
  .home-copy { margin-left: clamp(-120px, -5vw, -60px); }
  .crt-card { right: clamp(-120px, -5vw, -60px); }
}

.home-highlights { padding: 0 0 62px; }
.home-highlights {
  margin-top: 24px;
  margin-bottom: 52px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(243, 240, 232, .91);
  box-shadow: 0 16px 44px rgba(33,27,21,.1);
  backdrop-filter: blur(8px);
}
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { display: grid; grid-template-columns: 112px 1fr; min-height: 125px; border-top: 1px solid var(--line); padding-top: 13px; gap: 17px; }
.mini-card img { height: 105px; object-fit: cover; background: white; }
.mini-card .meta, .meta { color: var(--orange); font: 700 9px/1.3 monospace; text-transform: uppercase; letter-spacing: .07em; }
.mini-card h3 { margin: 7px 0 8px; font-size: 19px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 12px; }

.page-hero { padding: 70px 0 48px; border-bottom: 1px solid var(--line); background: rgba(243, 240, 232, .82); backdrop-filter: blur(7px); }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 50px; }
.page-hero h1 { max-width: 740px; margin-bottom: 0; }
.page-hero .lead { max-width: 520px; margin-bottom: 0; }
.page-content { padding-block: 54px 76px; }
.page-content.container {
  margin-top: 30px;
  margin-bottom: 48px;
  padding-inline: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(243, 240, 232, .91);
  box-shadow: 0 18px 50px rgba(33,27,21,.11);
  backdrop-filter: blur(9px);
}

.computer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.computer-card { background: #e7e1d5; border-bottom: 1px solid var(--line); transition: transform .2s ease; }
.computer-card:hover { transform: translateY(-4px); }
.computer-card img { height: 245px; object-fit: cover; background: white; }
.computer-card-body { padding: 19px; }
.computer-card h2 { margin: 7px 0 8px; font-size: 26px; }
.computer-card p:last-child { color: var(--muted); margin-bottom: 0; font-size: 13px; }

.story-list { display: grid; gap: 0; }
.story-row { display: grid; grid-template-columns: 260px 1fr 90px; gap: 30px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.story-row:last-child { border-bottom: 1px solid var(--line); }
.story-row img { height: 150px; object-fit: cover; }
.story-row h2 { margin: 7px 0 9px; font-size: 27px; }
.story-row p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.arrow-link { display: grid; width: 44px; height: 44px; place-items: center; justify-self: end; border: 1px solid var(--ink); border-radius: 50%; font-size: 18px; }

.timeline-list { max-width: 900px; margin: auto; }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 35px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--orange); font: 700 27px/1 monospace; }
.timeline-item h2 { margin-bottom: 8px; font-size: 24px; }
.timeline-item p { margin: 0; color: var(--muted); }

.detail-hero { display: grid; grid-template-columns: 1.06fr .94fr; min-height: calc(100vh - 72px); }
.detail-image { min-height: 600px; background: white; }
.detail-image img { height: 100%; object-fit: cover; }
.detail-copy { align-self: center; margin: clamp(24px, 4vw, 52px); padding: clamp(45px, 7vw, 90px); border: 1px solid rgba(255,255,255,.48); background: rgba(243, 240, 232, .9); box-shadow: 0 18px 50px rgba(33,27,21,.11); backdrop-filter: blur(9px); }
.detail-copy h1 { margin-bottom: 16px; }
.detail-copy .lead { max-width: 540px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; margin: 30px 0; border-top: 1px solid var(--line); }
.spec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec b { display: block; margin-bottom: 3px; font: 700 9px/1 monospace; text-transform: uppercase; letter-spacing: .08em; }
.spec span { color: var(--muted); font-size: 13px; }
.detail-links { display: flex; gap: 12px; }

.article { max-width: 780px; margin: auto; }
.article-header { padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 20px; }
.article-image { margin: 34px 0; max-height: 470px; object-fit: cover; }
.article-body { max-width: 680px; margin: auto; color: #4f4f49; font-family: Georgia, serif; font-size: 17px; line-height: 1.75; }
.article-body p:first-child::first-letter { float: left; margin: 8px 8px 0 0; color: var(--orange); font-size: 57px; line-height: .7; }
.article-body h2 { margin: 42px 0 14px; color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 27px; }

.memory-layout, .about-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 8vw, 100px); }
.memory-panel { padding: 34px; color: white; background: var(--forest); }
.memory-panel blockquote { margin: 0 0 30px; font: italic 25px/1.35 Georgia, serif; }
.memory-panel small { color: #b0c0ba; }
.form { display: grid; gap: 17px; }
.form label { display: grid; gap: 6px; font: 700 10px/1 monospace; text-transform: uppercase; letter-spacing: .08em; }
.form input, .form textarea, .form select { width: 100%; padding: 12px; border: 1px solid var(--line); background: #faf8f2; color: var(--ink); text-transform: none; }
.form-message { color: var(--forest); font-size: 13px; }
.about-photo img { max-height: 480px; object-fit: cover; }
.about-copy p { max-width: 650px; color: var(--muted); }

.site-footer { padding: 35px max(24px, calc((100vw - var(--content)) / 2)); color: #a5a69f; background: #1b1c1a; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 11px; }
.site-footer .brand { color: white; }
.footer-links { display: flex; gap: 22px; }

@media (max-width: 900px) {
  .detail-hero, .page-hero-inner, .memory-layout, .about-layout { grid-template-columns: 1fr; }
  .home-copy { width: min(620px, 76%); }
  .crt-card { width: 300px; }
  .mini-grid, .computer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-image { min-height: 470px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  body { background-attachment: scroll; }
  .site-header { height: 66px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 25px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 13px; }
  .main-nav.open { display: flex; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .home-hero, .home-hero-inner { min-height: calc(100vh - 66px); }
  .home-hero-inner { padding-block: 34px; }
  .home-copy { width: 100%; padding: 27px 22px; background: rgba(243, 240, 232, .86); }
  .home-veil { background: rgba(243, 240, 232, .34); }
  .home-actions, .detail-links { flex-direction: column; align-items: stretch; }
  .crt-card { display: none; }
  .home-note { flex-wrap: wrap; }
  .mini-grid, .computer-grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 115px 1fr; gap: 16px; }
  .story-row img { height: 105px; }
  .story-row h2 { font-size: 20px; }
  .story-row p { display: none; }
  .story-row .arrow-link { display: none; }
  .timeline-item { grid-template-columns: 72px 1fr; gap: 18px; }
  .timeline-year { font-size: 20px; }
  .detail-hero { min-height: auto; }
  .detail-image { min-height: 360px; }
  .detail-copy { margin: 20px 0; padding: 45px 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

/* Stories archive — redesign 17 Sep 2026 */
.stories-hero { padding-bottom: 10px; }
.stories-library {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
  padding-top: 45px;
  padding-bottom: 90px;
}
.story-directory { position: sticky; top: 96px; }
.story-directory-card {
  padding: 25px 24px 18px;
  border: 1px solid var(--line);
  background: rgba(243, 240, 232, .88);
  backdrop-filter: blur(10px);
}
.story-directory-card h2 { margin-bottom: 12px; font-size: 28px; }
.directory-intro { margin-bottom: 21px; color: var(--muted); font-size: 13px; }
.story-category-list { display: grid; border-top: 1px solid var(--line); }
.story-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
  transition: color .18s ease, padding-left .18s ease;
}
.story-category-list a:hover { color: var(--orange); padding-left: 5px; }
.story-category-list small { color: var(--muted); font: 700 9px/1 monospace; text-transform: uppercase; white-space: nowrap; }
.story-archive { min-width: 0; }
.story-category { scroll-margin-top: 95px; margin-bottom: 66px; }
.story-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.story-category-heading h2 { margin: 0; font-size: clamp(29px, 3.4vw, 43px); }
.story-category-heading > span { padding-bottom: 5px; color: var(--muted); font: 700 9px/1 monospace; text-transform: uppercase; letter-spacing: .08em; }
.story-category-kicker { margin: 0 0 8px; color: var(--orange); font: 700 9px/1 monospace; text-transform: uppercase; letter-spacing: .09em; }
.story-card-stack { display: grid; gap: 12px; }
.story-card {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 180px;
  background: rgba(231, 224, 210, .86);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(28, 29, 26, .20);
  box-shadow: 0 15px 35px rgba(40, 33, 25, .10);
}
.story-card-image { position: relative; overflow: hidden; background: #ded8cb; }
.story-card-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.story-card-image img { height: 100%; min-height: 180px; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card-image img { transform: scale(1.025); }
.story-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 26px 20px; }
.story-card-meta { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-bottom: 10px; color: var(--orange); font: 700 9px/1.3 monospace; text-transform: uppercase; letter-spacing: .07em; }
.story-card-meta span { position: relative; }
.story-card-meta span::before { content: "•"; position: absolute; left: -11px; color: var(--muted); }
.story-card h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.04; }
.story-card p { max-width: 620px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.story-read-link { margin-top: auto; padding-bottom: 2px; border-bottom: 1px solid rgba(28,29,26,.5); font-size: 11px; font-weight: 800; }
.story-read-link b { margin-left: 5px; color: var(--orange); }

@media (max-width: 900px) {
  .stories-library { grid-template-columns: 1fr; gap: 38px; }
  .story-directory { position: static; }
  .story-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
}

@media (max-width: 620px) {
  .stories-library { width: min(var(--content), calc(100% - 32px)); padding-top: 28px; }
  .story-category-list { grid-template-columns: 1fr; }
  .story-category { margin-bottom: 48px; }
  .story-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 145px; }
  .story-card-image img { min-height: 145px; }
  .story-card-copy { padding: 15px 16px; }
  .story-card h3 { font-size: 19px; }
  .story-card p { display: none; }
  .story-read-link { font-size: 10px; }
  .story-category-heading > span { display: none; }
}


/* Latest stories — added 17 Sep 2026 */
.story-directory { display: grid; gap: 18px; }
.story-latest-card {
  padding: 22px 20px 12px;
  border: 1px solid var(--line);
  background: rgba(243, 240, 232, .88);
  backdrop-filter: blur(10px);
}
.story-latest-heading h2 { margin: 0 0 14px; font-size: 24px; }
.story-latest-list { display: grid; border-top: 1px solid var(--line); }
.story-latest-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: transform .18s ease, color .18s ease;
}
.story-latest-item:hover { color: var(--orange); transform: translateX(3px); }
.story-latest-item img { width: 66px; height: 58px; object-fit: cover; background: #ded8cb; }
.story-latest-meta { display: block; margin-bottom: 5px; color: var(--orange); font: 700 8px/1.3 monospace; text-transform: uppercase; letter-spacing: .055em; }
.story-latest-item h3 { margin: 0; font-size: 14px; line-height: 1.18; letter-spacing: -.02em; }

.home-latest-stories { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.home-latest-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.home-latest-title h2 { margin: 0; font-size: clamp(25px, 2.7vw, 34px); }
.home-latest-title .eyebrow { margin-bottom: 8px; }
.home-latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-latest-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  background: rgba(231, 224, 210, .64);
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-latest-item:hover { transform: translateY(-2px); border-color: rgba(28,29,26,.16); box-shadow: 0 9px 22px rgba(40,33,25,.08); }
.home-latest-item img { width: 88px; height: 72px; object-fit: cover; background: #ded8cb; }
.home-latest-meta { display: block; margin-bottom: 6px; color: var(--orange); font: 700 8px/1.3 monospace; text-transform: uppercase; letter-spacing: .055em; }
.home-latest-item h3 { margin: 0; font-size: 16px; line-height: 1.15; }

@media (max-width: 900px) {
  .story-directory { position: static; }
  .story-latest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-top: 0; }
  .story-latest-item { grid-template-columns: 60px minmax(0, 1fr); border: 1px solid var(--line); padding: 10px; }
  .story-latest-item img { width: 60px; height: 54px; }
  .home-latest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .story-latest-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .story-latest-item { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .home-latest-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-latest-item { grid-template-columns: 76px minmax(0, 1fr); }
  .home-latest-item img { width: 76px; height: 64px; }
}
