/* ==========================================================================
   ART DECO — one page. Loaded on a/art-deco.html.

   Founder, 2026-09-26: the page is Annie's Claude artifact, shell excepted.
   One centre axis the whole way down. A stepped tower at the crown with a
   sun rising behind it (once, on arrival; never under reduced motion), two
   banded pillars, chevron courses before every heading, stepped-corner
   frames, gold hairlines wherever a rule is drawn. The shell (rail, top
   bar, community drawer) is never restyled: every rule here is scoped to
   .ad-hero or .ad-rec.

   Colour: the record says "jewel plus metallic". Deep viridian + gold +
   cream are OUR reading of those two words. Contrast: cream #F2E9D8 on
   #10312B is 12.4:1; gold #C8A24B on the same ground is 6.7:1 and is used
   for lines, caps and short display runs only.
   ========================================================================== */
@font-face {
  font-family: "PoiretOneX";
  src: url("fonts/poiret-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JostX";
  src: url("fonts/jost.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
.ad-page {
  --ad-cream: #F2E9D8; --ad-green: #10312B; --ad-gold: #C8A24B; --ad-deep: #0B2622; --ad-stone: #CBC2AE; --ad-bronze: #8F7A45;
  --ad-gold-half: rgba(200, 162, 75, 0.5);
  --ad-body: "JostX", "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
  --ad-disp: "PoiretOneX", "Poiret One", "JostX", sans-serif;
  background: var(--paper); /* shell mat; the room ground lives on main */
}
.ad-page main { background: var(--ad-green); color: var(--ad-cream); }
.ad-hero, .ad-rec { font: 300 1.125rem/1.7 var(--ad-body); letter-spacing: 0.01em; color: var(--ad-cream); font-synthesis: weight style; }
.ad-rec a { color: var(--ad-gold); }
.ad-rec a:hover { color: var(--ad-cream); }
.ad-hero :focus-visible, .ad-rec :focus-visible { outline: 2px solid var(--ad-gold); outline-offset: 4px; }
.ad-caps { text-transform: uppercase; letter-spacing: 0.32em; font-weight: 500; font-size: 13px; }
.ad-caps--gold { color: var(--ad-gold); }
.ad-caps--bronze { color: var(--ad-bronze); }
.ad-caps--stone { color: var(--ad-stone); }
.ad-disp { font-family: var(--ad-disp); font-weight: 400; }

/* ---- hero ---- */
.ad-hero {
  position: relative; min-height: min(100vh, 1000px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  overflow: hidden; text-align: center; padding: 0 16px 70px;
  /* The shell's rail narrows main below the viewport: the title is sized by the hero, not the window. */
  container-type: inline-size;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(200, 162, 75, 0.10) 22px 23px), var(--ad-deep);
}
.ad-sun {
  position: absolute; left: 50%; bottom: 34%; width: 170vmax; height: 170vmax; transform: translate(-50%, 50%); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(200, 162, 75, 0.55) 0deg 0.35deg, transparent 0.35deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 9%, #000 9.2%, #000 40%, transparent 60%);
  mask: radial-gradient(circle, transparent 9%, #000 9.2%, #000 40%, transparent 60%);
}
.ad-disc {
  position: absolute; left: 50%; bottom: 34%; width: min(34vw, 300px); aspect-ratio: 1; transform: translate(-50%, 50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--ad-gold) 0 2px, var(--ad-deep) 2px 12px); box-shadow: 0 0 0 3px var(--ad-gold);
}
.ad-tower { position: relative; width: min(760px, 100%); margin-top: auto; }
.ad-tower svg { display: block; width: 100%; height: auto; }
.ad-hero-text { position: relative; margin-top: -4px; width: min(900px, 100%); padding: 34px 20px 0; border-top: 1px solid var(--ad-gold); }
/* A plinth under the tower (founder, 2026-09-26: text not readable). The sun
   and disc rise from the gold rule and stop there; the title, kicker and caps
   line sit on the plain ground. It runs the hero's full width and down to its
   foot; the pillars stay in front of it. */
.ad-hero-text { z-index: 1; }
.ad-hero-text::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: -70px; left: -100vw; right: -100vw;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(200, 162, 75, 0.10) 22px 23px), var(--ad-deep);
}
.ad-pillar { z-index: 2; }
.ad-h1 { margin: 0; font-family: var(--ad-disp); font-weight: 400; font-size: clamp(58px, 12cqi, 160px); line-height: 0.95; letter-spacing: 0.12em; color: var(--ad-cream); text-shadow: 0 0 1px var(--ad-gold); }
.ad-h1 span { display: block; font-size: 0.26em; letter-spacing: 0.9em; color: var(--ad-gold); margin-bottom: 0.6em; padding-left: 0.9em; }
.ad-hero-line { margin: 18px auto 0; max-width: 40ch; font-size: 13px; line-height: 2; }
.ad-pillar { position: absolute; top: 0; bottom: 0; width: clamp(26px, 5vw, 70px); background: repeating-linear-gradient(90deg, var(--ad-deep) 0 6px, var(--ad-gold) 6px 7px, var(--ad-deep) 7px 12px); border-inline: 2px solid var(--ad-gold); }
.ad-pillar--l { left: clamp(10px, 4vw, 60px); }
.ad-pillar--r { right: clamp(10px, 4vw, 60px); }

/* ---- the record ---- */
.ad-rec { position: relative; }
:where(.ad-rec) p { margin: 0 0 18px; } /* zero specificity: every .ad-* margin below outranks it */
.ad-chev { display: block; width: min(360px, 70%); margin: 0 auto 26px; height: 34px; }
.ad-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.ad-s { margin: clamp(90px, 12vw, 150px) 0; text-align: center; }
.ad-rec h2 { margin: 0 0 28px; font-family: var(--ad-disp); font-weight: 400; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ad-cream); }
.ad-lede { max-width: 44ch; margin: 0 auto; }
.ad-lede--after { margin-top: 22px; }
.ad-aside { margin: 24px 0 0; font-style: italic; }

/* stepped frame */
.ad-frame {
  position: relative; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 50px); border: 1px solid var(--ad-gold); outline: 1px solid var(--ad-gold); outline-offset: 6px;
  clip-path: polygon(0 24px, 12px 24px, 12px 12px, 24px 12px, 24px 0, calc(100% - 24px) 0, calc(100% - 24px) 12px, calc(100% - 12px) 12px, calc(100% - 12px) 24px, 100% 24px, 100% calc(100% - 24px), calc(100% - 12px) calc(100% - 24px), calc(100% - 12px) calc(100% - 12px), calc(100% - 24px) calc(100% - 12px), calc(100% - 24px) 100%, 24px 100%, 24px calc(100% - 12px), 12px calc(100% - 12px), 12px calc(100% - 24px), 0 calc(100% - 24px));
  background: linear-gradient(180deg, rgba(200, 162, 75, 0.06), transparent 40%);
}
.ad-frame--cream { background: var(--ad-cream); color: var(--ad-deep); }
.ad-frame--cream h2 { color: var(--ad-deep); }
.ad-rec .ad-frame--cream a { color: #5e4c1f; }
.ad-rec .ad-frame--cream a:hover { color: var(--ad-deep); }

/* meta */
.ad-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ad-gold); border-bottom: 1px solid var(--ad-gold); text-align: center; }
.ad-meta div { padding: 24px 14px; border-left: 1px solid var(--ad-gold-half); }
.ad-meta div:nth-child(3n+1) { border-left: 0; }
.ad-meta div:nth-child(n+4) { border-top: 1px solid var(--ad-gold-half); }
.ad-meta dt { color: var(--ad-gold); }
.ad-meta dd { margin: 8px 0 0; font-size: 20px; font-family: var(--ad-disp); letter-spacing: 0.06em; font-weight: 400; }

/* carries */
.ad-car { list-style: none; margin: 0; padding: 0; }
.ad-car li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(15, 49, 43, 0.25); }
.ad-car li > :first-child { text-align: right; }
.ad-car li > :last-child { text-align: left; }
.ad-dia { display: block; width: 10px; height: 10px; background: var(--ad-bronze); transform: rotate(45deg); }
.ad-rec .ad-car a { font-family: var(--ad-disp); font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; font-weight: 400; }
.ad-car small { display: block; color: var(--ad-bronze); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.ad-none { color: #6b6450; font-style: italic; }
.ad-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 6px; }
.ad-rec .ad-tags a { font-family: var(--ad-body); font-size: inherit; letter-spacing: 0.04em; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.ad-spec { font-family: var(--ad-disp); font-weight: 400; font-size: 26px; letter-spacing: 0.1em; } /* the specimen is set in the face it names */
.ad-pal { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0; }
.ad-pal span { width: 64px; height: 88px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: 12px; letter-spacing: 0.04em; clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); }

/* argues */
.ad-big { font-family: var(--ad-disp); font-size: clamp(30px, 5vw, 58px); line-height: 1.2; letter-spacing: 0.04em; max-width: 18ch; margin: 0 auto; }
.ad-refuse { margin: 48px auto 0; max-width: 640px; padding: 26px; border-top: 3px double var(--ad-gold); border-bottom: 3px double var(--ad-gold); }
.ad-refuse b { display: block; color: var(--ad-gold); margin-bottom: 8px; }

/* recognise */
.ad-recog p { max-width: 62ch; margin: 0 auto 20px; }
.ad-diag { max-width: none; }
.ad-combo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 820px; margin: 34px auto; }
.ad-combo div { padding: 22px 10px; border: 1px solid var(--ad-gold); }
.ad-combo div:nth-child(2) { background: var(--ad-gold); color: var(--ad-deep); }
.ad-combo b { display: block; font-family: var(--ad-disp); font-size: 26px; letter-spacing: 0.1em; font-weight: 400; }
.ad-combo small { font-size: 14px; }

/* rules: the fan once, then one block per rule */
/* The fan is min(380px, 90%) wide and half as tall; the first rule starts 24px under it. */
.ad-rules { position: relative; max-width: 760px; margin: 0 auto; padding-top: calc(min(190px, 45%) + 24px); }
.ad-rules--plain { padding-top: 0; }
.ad-fan { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(380px, 90%); }
.ad-rule + .ad-rule, .ad-ctx + .ad-rule { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--ad-gold-half); }
.ad-rule .ad-caps { margin: 0; }
.ad-rule__t { font-family: var(--ad-disp); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.35; letter-spacing: 0.03em; margin: 14px 0 0; }
.ad-rule__t em { font-style: italic; color: var(--ad-gold); }
.ad-ev { display: block; margin-top: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ad-stone); }
.ad-ctx { max-width: 52ch; margin: 48px auto 0; font-size: 15px; color: var(--ad-stone); font-style: italic; }

/* behind */
.ad-behind p { max-width: 60ch; margin: 0 auto 16px; }
.ad-nr { font-family: var(--ad-disp); font-size: 32px; letter-spacing: 0.14em; color: var(--ad-gold); text-transform: uppercase; }
.ad-frame--cream .ad-nr { color: var(--ad-bronze); }
.ad-tblw { margin: 34px auto 0; max-width: 60ch; overflow-x: auto; }
.ad-res { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ad-gold); border-bottom: 1px solid var(--ad-gold); font-size: 15px; }
.ad-res th, .ad-res td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--ad-gold-half); vertical-align: top; }
.ad-res thead th { border-top: 0; color: var(--ad-bronze); text-transform: uppercase; letter-spacing: 0.24em; font-size: 12px; font-weight: 500; }
.ad-res tbody th { font-weight: 500; }
.ad-res td + td { border-left: 1px solid var(--ad-gold-half); }
.ad-res td.ad-y { color: var(--ad-green); font-weight: 500; }
.ad-res td.ad-n { color: var(--ad-bronze); }

/* confused 2x2 */
.ad-conf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-conf > * { padding: 26px 20px; border: 1px solid var(--ad-gold); text-decoration: none; color: var(--ad-cream); display: block; }
.ad-rec .ad-conf a { color: var(--ad-cream); }
.ad-conf b { display: block; font-family: var(--ad-disp); font-weight: 400; font-size: 26px; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-conf small { display: block; color: var(--ad-gold); margin: 6px 0; }
.ad-rec .ad-conf a:hover { background: var(--ad-deep); color: var(--ad-cream); }

/* use it */
.ad-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-rec .ad-use a { display: block; padding: 28px 22px; background: var(--ad-gold); color: var(--ad-deep); text-decoration: none; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
.ad-use a b { display: block; font-family: var(--ad-disp); font-weight: 400; font-size: 26px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.ad-rec .ad-use a:hover { background: var(--ad-cream); color: var(--ad-deep); }
.ad-mach { margin-top: 30px; }
.ad-mach a { margin: 0 12px; }

/* footer */
.ad-pf { text-align: center; padding: 50px 16px 70px; border-top: 1px solid var(--ad-gold); background: var(--ad-deep); }
.ad-pf .ad-disp { display: block; font-size: 28px; letter-spacing: 0.4em; color: var(--ad-gold); margin-bottom: 14px; }

@media (max-width: 760px) {
  .ad-meta { grid-template-columns: 1fr 1fr; }
  .ad-meta div { border-left: 0 !important; border-top: 1px solid var(--ad-gold-half); }
  .ad-conf, .ad-use, .ad-combo { grid-template-columns: 1fr; }
  .ad-car li { grid-template-columns: 1fr; gap: 6px; }
  .ad-car li > * { text-align: center !important; }
  .ad-dia { margin: 0 auto; }
  .ad-pal, .ad-tags { justify-content: center; }
  .ad-pillar { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ad-sun { animation: ad-rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes ad-rise { from { opacity: 0; transform: translate(-50%, 60%) scale(0.6); } to { opacity: 1; } }
}

/* the design-grammar board (grammar.css) lives in Build with it, as on Swiss; left-aligned inside the centred page */
.ad-rec .ad-build .gm { text-align: left; margin-top: 28px; }
/* the section heading names the board, so the board's own title is read by assistive tech only */
.ad-rec .ad-build #gm-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
