:root {
  --aml-paper: #f4f1eb;
  --aml-ink: #11100e;
  --aml-muted: #68645e;
  --aml-line: #aaa59c;
  --aml-red: #c8241d;
  --aml-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --aml-max: 92rem;
  --aml-mono: "Courier New", Courier, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--aml-paper);
}

body.aml-page {
  margin: 0;
  color: var(--aml-ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.68), transparent 30rem),
    linear-gradient(110deg, rgba(255,255,255,.28), transparent 42%),
    var(--aml-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  overflow-x: clip;
}

.aml-page a { color: inherit; }
.aml-page img { display: block; max-width: 100%; }

.aml-skip {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .5rem .75rem;
  background: var(--aml-ink);
  color: #fff !important;
  transform: translateY(-150%);
}
.aml-skip:focus { transform: translateY(0); }

.aml-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.aml-header,
.aml-hero,
.aml-story-preview,
.aml-projects,
.aml-about,
.aml-project-hero,
.aml-project-body,
.aml-project-story-note,
.aml-project-cta,
.aml-story,
.aml-footer {
  width: min(100%, var(--aml-max));
  margin-inline: auto;
  padding-inline: var(--aml-gutter);
}

.aml-header {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--aml-mono);
  letter-spacing: .16em;
}

.aml-brand {
  display: inline-flex;
  gap: .9em;
  align-items: baseline;
  font-weight: 700;
  font-size: clamp(.93rem, 2.3vw, 1.28rem);
  text-decoration: none;
}
.aml-brand__ai { color: var(--aml-red); }

.aml-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.2vw, 1.8rem);
  font-size: clamp(.68rem, 1.7vw, .84rem);
}
.aml-nav a { text-decoration: none; }
.aml-nav a:hover, .aml-nav a:focus-visible { text-decoration: underline; text-underline-offset: .35rem; }
.aml-nav__rule { width: 1px; height: 1.25rem; background: var(--aml-line); }

.aml-hero {
  position: relative;
  padding-top: clamp(2rem, 5vw, 5.5rem);
  padding-bottom: clamp(3.8rem, 7vw, 7.5rem);
}
.aml-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 34%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aml-ink);
  box-shadow: -32px 41px 0 -1px var(--aml-ink), 24px 68px 0 -1px var(--aml-ink), -8px 92px 0 -2px var(--aml-ink);
  opacity: .7;
}
.aml-hero__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}
.aml-hero__lead {
  display: block;
  margin-left: clamp(.3rem, 5vw, 4.2rem);
  font-size: clamp(1.75rem, 4.8vw, 5rem);
  letter-spacing: .035em;
}
.aml-hero__ink {
  width: min(100%, 74rem);
  height: auto;
  margin: clamp(-2.2rem, -2vw, -.4rem) auto clamp(-2.5rem, -2vw, -.5rem);
  filter: contrast(1.08);
}
.aml-hero__tail {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: clamp(0rem, 5vw, 5rem);
  font-size: clamp(1.45rem, 4.1vw, 4rem);
  letter-spacing: .035em;
}
.aml-hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(2.7rem, 6vw, 6rem);
  padding-inline: clamp(0rem, 5vw, 4rem);
}
.aml-hero__support {
  margin: 0;
  font-size: clamp(.92rem, 2vw, 1.18rem);
  letter-spacing: .12em;
}
.aml-hero__mark { display: flex; align-items: flex-end; gap: 1.6rem; }
.aml-micro, .aml-kicker, .aml-meta, .aml-section-number {
  font-family: var(--aml-mono);
  letter-spacing: .14em;
}
.aml-micro { font-size: .66rem; line-height: 1.6; }
.aml-stamp {
  display: inline-grid;
  place-items: center;
  padding: .35rem .28rem;
  border: 2px solid var(--aml-red);
  outline: 1px solid rgba(200,36,29,.65);
  outline-offset: 3px;
  color: var(--aml-red);
  font-family: serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  transform: rotate(-1deg);
}

.aml-story-preview {
  display: grid;
  grid-template-columns: minmax(8rem, .45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 7rem);
  border-top: 1px solid var(--aml-line);
  padding-top: clamp(2.8rem, 5vw, 5rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}
.aml-story-preview .aml-kicker { margin-top: .55rem; }
.aml-story-preview__body { max-width: 49rem; }
.aml-story-preview h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  line-height: 1.5;
  letter-spacing: .04em;
}
.aml-story-preview__body > p {
  margin: 0;
  font-size: clamp(.92rem, 1.6vw, 1.08rem);
  letter-spacing: .045em;
}
.aml-story-link {
  display: inline-block;
  margin-top: 1.8rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--aml-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.aml-story-link:hover,
.aml-story-link:focus-visible { color: var(--aml-red); }

.aml-projects { padding-bottom: clamp(5rem, 9vw, 9rem); }
.aml-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--aml-ink);
  padding-block: 1.55rem 1.15rem;
  font-family: var(--aml-mono);
}
.aml-section-head h2 { margin: 0; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .14em; }
.aml-section-head > span { font-size: 1.8rem; }

.aml-project-card {
  border: 1px solid var(--aml-line);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5.2rem);
}
.aml-project-card__copy { align-self: stretch; display: flex; flex-direction: column; }
.aml-kicker { margin: 0 0 1rem; font-size: .74rem; }
.aml-project-card h3,
.aml-project-hero h1 {
  margin: 0;
  font-family: var(--aml-mono);
  font-size: clamp(2.25rem, 5.3vw, 5.8rem);
  line-height: 1.12;
  letter-spacing: .08em;
}
.aml-status { margin: 1.2rem 0 1.7rem; font-family: var(--aml-mono); letter-spacing: .1em; }
.aml-status strong, .aml-accent { color: var(--aml-red); font-weight: 400; }
.aml-project-card__description { margin: 0; font-size: clamp(.92rem, 1.5vw, 1.05rem); letter-spacing: .06em; }
.aml-short-rule { width: 2.5rem; height: 1px; background: var(--aml-line); margin: auto 0 1.5rem; }
.aml-meta { margin: 0; font-size: .7rem; }
.aml-project-card__visual { min-width: 0; display: flex; flex-direction: column; }
.aml-project-card__visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: contrast(1.04); }
.aml-text-link, .aml-back-link {
  align-self: flex-end;
  margin-top: 1.8rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--aml-mono);
  letter-spacing: .12em;
  text-decoration: none;
}

.aml-about {
  display: grid;
  grid-template-columns: .55fr 1.2fr;
  gap: clamp(2rem, 6vw, 7rem);
  border-top: 1px solid var(--aml-line);
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}
.aml-about .aml-kicker { grid-row: 1 / span 3; }
.aml-about h2 { margin: 0; font-size: clamp(1.55rem, 3.5vw, 3.3rem); line-height: 1.5; letter-spacing: .04em; }
.aml-about > p:not(.aml-kicker) { max-width: 43rem; margin: 0; }
.aml-back-link { justify-self: start; align-self: start; font-size: .75rem; }

.aml-footer {
  border-top: 1px solid var(--aml-line);
  padding-top: 1.8rem;
  padding-bottom: 2.2rem;
  font-family: var(--aml-mono);
  font-size: .65rem;
  letter-spacing: .13em;
  text-align: center;
}
.aml-footer p { margin: 0; }

/* Project page */
.aml-project-hero {
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(3rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}
.aml-project-hero__copy { align-self: center; }
.aml-project-hero__description { margin: 2rem 0 0; max-width: 30rem; letter-spacing: .05em; }
.aml-project-hero__visual { margin: 0; position: relative; }
.aml-project-hero__visual::after {
  content: "PROJECT 001 / 2026";
  position: absolute;
  right: .75rem;
  bottom: .55rem;
  color: #fff;
  font: .58rem/1.4 var(--aml-mono);
  letter-spacing: .16em;
}
.aml-project-hero__visual img { width: 100%; height: 100%; min-height: 28rem; object-fit: cover; }

.aml-project-body { border-top: 1px solid var(--aml-ink); }
.aml-note-section {
  display: grid;
  grid-template-columns: minmax(3rem, .28fr) 1.72fr;
  gap: clamp(1rem, 4vw, 5rem);
  padding-block: clamp(3rem, 6vw, 6.5rem);
  border-bottom: 1px solid var(--aml-line);
}
.aml-section-number { margin: .2rem 0 0; color: var(--aml-red); font-size: .72rem; }
.aml-note-section h2 { margin: 0 0 2rem; font: 700 clamp(1.6rem, 3.2vw, 3rem)/1.2 var(--aml-mono); letter-spacing: .12em; }
.aml-note-section > div > p { max-width: 48rem; margin: 0 0 1rem; }

.aml-data-grid { margin: 0; border-top: 1px solid var(--aml-line); }
.aml-data-grid > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-bottom: 1px solid var(--aml-line); padding: .8rem 0; }
.aml-data-grid dt, .aml-data-grid dd { margin: 0; font-family: var(--aml-mono); letter-spacing: .1em; }
.aml-data-grid dt { color: var(--aml-muted); font-size: .7rem; }
.aml-data-grid dd { font-size: clamp(.92rem, 2vw, 1.18rem); }
.aml-fact-note { margin-top: 1.25rem !important; color: var(--aml-muted); font-size: .72rem; }

.aml-timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--aml-line); }
.aml-timeline li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; border-bottom: 1px solid var(--aml-line); padding: 1rem 0; }
.aml-timeline span { color: var(--aml-red); font: .68rem/1.8 var(--aml-mono); letter-spacing: .1em; }
.aml-timeline p { margin: 0; }
.aml-coming-soon { border: 1px dashed var(--aml-line); padding: clamp(1.5rem, 4vw, 3rem); }
.aml-coming-soon span { font: 700 clamp(1.4rem, 3vw, 2.5rem)/1.2 var(--aml-mono); letter-spacing: .14em; }
.aml-coming-soon p { margin: 1.2rem 0 0; color: var(--aml-muted); }

.aml-build-log-entry {
  display: block;
  padding: clamp(1.35rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--aml-line);
  border-bottom: 1px solid var(--aml-line);
  color: inherit;
  text-decoration: none;
}
.aml-build-log-entry:hover .aml-build-log-entry__title,
.aml-build-log-entry:focus-visible .aml-build-log-entry__title { color: var(--aml-red); }
.aml-build-log-entry:focus-visible {
  outline: 2px solid var(--aml-ink);
  outline-offset: .4rem;
}
.aml-build-log-entry__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--aml-muted);
  font: .7rem/1.6 var(--aml-mono);
  letter-spacing: .14em;
}
.aml-build-log-entry__meta span { color: var(--aml-red); }
.aml-build-log-entry__title {
  display: block;
  max-width: 48rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  line-height: 1.75;
  letter-spacing: .045em;
}
.aml-build-log-entry__arrow {
  display: inline-block;
  margin-left: .45rem;
  font-family: var(--aml-mono);
}

.aml-project-story-note {
  display: grid;
  grid-template-columns: minmax(8rem, .35fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  border-top: 1px solid var(--aml-ink);
  border-bottom: 1px solid var(--aml-line);
  padding-block: clamp(2.25rem, 5vw, 4.25rem);
}
.aml-project-story-note .aml-kicker { margin: 0; }
.aml-project-story-note h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.55;
  letter-spacing: .035em;
}
.aml-project-story-note div > p {
  margin: .65rem 0 0;
  color: var(--aml-muted);
  font-size: clamp(.88rem, 1.4vw, 1rem);
  letter-spacing: .035em;
}
.aml-project-story-note a {
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--aml-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.aml-project-story-note a:hover,
.aml-project-story-note a:focus-visible { color: var(--aml-red); }

.aml-project-cta { padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); text-align: center; }
.aml-project-cta a { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: .35rem; font: 700 clamp(1.3rem, 4vw, 3.6rem)/1.3 var(--aml-mono); letter-spacing: .08em; text-decoration: none; }
.aml-project-cta a:hover, .aml-project-cta a:focus-visible { color: var(--aml-red); }
.aml-footer--project { display: flex; justify-content: space-between; text-align: left; }
.aml-footer--project a { text-decoration: none; }

/* Story page */
.aml-story { padding-top: clamp(3rem, 7vw, 7rem); padding-bottom: clamp(5rem, 10vw, 10rem); }
.aml-story-hero {
  border-top: 1px solid var(--aml-ink);
  border-bottom: 1px solid var(--aml-line);
  padding-block: clamp(2.2rem, 5vw, 4.5rem);
}
.aml-story-hero .aml-kicker { color: var(--aml-muted); }
.aml-story-hero h1 {
  margin: 0;
  font: 700 clamp(3.1rem, 10vw, 9rem)/.95 var(--aml-mono);
  letter-spacing: .08em;
}
.aml-story-author {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--aml-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  letter-spacing: .05em;
}
.aml-story-body {
  width: min(100%, 48rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 8rem);
}
.aml-story-body p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 2.25;
  letter-spacing: .035em;
}
.aml-story-opening {
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  border-left: 2px solid var(--aml-red);
}
.aml-story-opening p { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }
.aml-story-body section { margin-top: clamp(5rem, 10vw, 9rem); }
.aml-story-body h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--aml-line);
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  line-height: 1.5;
  letter-spacing: .035em;
}
.aml-story-emphasis {
  margin-block: clamp(3rem, 7vw, 5.5rem) !important;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 4px solid var(--aml-red);
  background: rgba(255,255,255,.32);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem) !important;
  font-weight: 700;
  line-height: 2 !important;
}
.aml-story-links {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 2fr);
  border-top: 1px solid var(--aml-ink);
  border-bottom: 1px solid var(--aml-line);
}
.aml-story-daily {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem) 0;
  border-right: 1px solid var(--aml-line);
}
.aml-story-project {
  display: grid;
  grid-template-columns: minmax(8rem, .45fr) minmax(0, 1.15fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}
.aml-story-daily .aml-kicker { margin: 0; }
.aml-story-project .aml-kicker { align-self: start; margin: .45rem 0 0; }
.aml-story-project h2 {
  margin: 0;
  font: 700 clamp(1.8rem, 4vw, 3.8rem)/1.15 var(--aml-mono);
  letter-spacing: .08em;
}
.aml-story-daily a,
.aml-story-project a {
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--aml-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.aml-story-daily a { width: fit-content; }
.aml-story-daily a:hover,
.aml-story-daily a:focus-visible,
.aml-story-project a:hover,
.aml-story-project a:focus-visible { color: var(--aml-red); }

@media (max-width: 760px) {
  .aml-header { min-height: 5rem; align-items: flex-start; padding-top: 1.35rem; }
  .aml-nav { padding-top: .12rem; gap: .7rem; }
  .aml-nav__rule { display: none; }
  .aml-hero { padding-top: 2.2rem; }
  .aml-hero::after { right: 3%; top: 38%; }
  .aml-hero__lead { margin-left: 0; font-size: clamp(1.55rem, 8vw, 2.3rem); }
  .aml-hero__ink { width: 115%; max-width: none; margin-left: -7%; margin-top: -1.2rem; margin-bottom: -1.4rem; }
  .aml-hero__tail { margin-right: 0; font-size: clamp(1.2rem, 6.4vw, 1.85rem); }
  .aml-hero__foot { padding-inline: 0; gap: 1rem; align-items: flex-end; }
  .aml-hero__support { font-size: .78rem; letter-spacing: .07em; }
  .aml-hero__mark { gap: .8rem; }
  .aml-micro { display: none; }
  .aml-stamp { font-size: .85rem; }
  .aml-story-preview { grid-template-columns: 1fr; gap: 1.2rem; }
  .aml-story-preview .aml-kicker { margin-top: 0; }
  .aml-project-card { grid-template-columns: 1fr; }
  .aml-short-rule { margin-top: 2rem; }
  .aml-project-card__visual { grid-row: 1; }
  .aml-project-card__copy { grid-row: 2; }
  .aml-project-card h3 { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .aml-text-link { align-self: flex-start; }
  .aml-about { grid-template-columns: 1fr; gap: 1.5rem; }
  .aml-about .aml-kicker { grid-row: auto; }
  .aml-only-wide { display: none; }
  .aml-project-hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .aml-project-hero__copy { order: 2; }
  .aml-project-hero__visual { order: 1; margin-inline: calc(var(--aml-gutter) * -1); }
  .aml-project-hero__visual img { min-height: 20rem; max-height: 70vh; }
  .aml-project-hero h1 { font-size: clamp(2.65rem, 14vw, 4.5rem); }
  .aml-note-section { grid-template-columns: 2.2rem 1fr; gap: .65rem; }
  .aml-note-section h2 { font-size: clamp(1.35rem, 7vw, 2.2rem); letter-spacing: .08em; }
  .aml-data-grid > div { grid-template-columns: .85fr 1.15fr; }
  .aml-project-story-note { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .aml-project-story-note a { width: fit-content; margin-top: .65rem; white-space: normal; }
  .aml-project-cta a { font-size: clamp(1.05rem, 5vw, 1.6rem); }
  .aml-story { padding-top: 2.5rem; }
  .aml-story-body p { line-height: 2.1; }
  .aml-story-links { grid-template-columns: 1fr; }
  .aml-story-daily {
    padding: 2.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--aml-line);
  }
  .aml-story-project { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .aml-story-project { padding: 2.5rem 0; }
  .aml-story-project .aml-kicker { margin: 0; }
  .aml-story-project a { width: fit-content; margin-top: .65rem; white-space: normal; }
}

@media (max-width: 390px) {
  .aml-header { flex-direction: column; gap: .35rem; }
  .aml-nav { padding-top: 0; }
  .aml-hero { padding-top: 1.5rem; }
  .aml-hero__foot { align-items: flex-start; }
  .aml-project-card { padding: 1.15rem; }
  .aml-project-card__description br { display: none; }
  .aml-note-section { grid-template-columns: 1fr; }
  .aml-section-number { margin-bottom: -.5rem; }
  .aml-story-preview__body > p br { display: none; }
  .aml-story-body p { font-size: .96rem; letter-spacing: .02em; }
  .aml-story-author { font-size: .96rem; }
  .aml-story-opening { padding-left: 1rem; }
  .aml-story-emphasis { padding: 1.25rem; }
  .aml-footer--project { gap: 1rem; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
