/* Epoch Foundry: iron, paper and ember; since #264 (the owner, 28 Nov 2026) the Heritage Studio's header, footer and home page.
   No scripts or outside hosts: the three typefaces are served from this site (fonts/, SIL Open Font License). No slanted type
   anywhere (the owner: "changes in font style are a distraction to me"). */
:root {
  --iron: #17140f; --iron-2: #231e18; --on-iron: #efe6d6; --on-iron-quiet: #b4a68f;
  --paper: #f4eee3; --card: #fbf8f2; --ink: #1d1a16; --quiet: #5f574c; --rule: #ddd2c0;
  --ember: #d4621f; --ember-hot: #f08a3c; --brass: #b8925a; --ember-ink: #a8481a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wide: 72rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
h1, h2, h3, .brand-name, .numeral, .year { font-family: var(--serif); font-weight: 600; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }
a { color: var(--ember-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; }

/* ---- the iron band: header, hero, page heads, footer ---- */
.top {
  background:
    radial-gradient(48rem 26rem at 88% 120%, rgba(212, 98, 31, 0.42), transparent 62%),
    radial-gradient(30rem 16rem at 8% -20%, rgba(184, 146, 90, 0.16), transparent 70%),
    var(--iron);
  color: var(--on-iron);
  position: relative; overflow: hidden;
}
.top::before {           /* faint ledger rules, like a register page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2.3rem, rgba(239, 230, 214, 0.045) 2.3rem calc(2.3rem + 1px));
}
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; position: relative; }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-top: 3.5rem; padding-bottom: 6rem; }
.kicker { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.1rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.0; margin: 0 0 1.6rem; color: #fff; }
.hero h1 em { color: var(--ember-hot); }
.hero .lede { font-size: 1.2rem; max-width: 34rem; color: var(--on-iron); margin: 0 0 2.2rem; }
.hero-mark { justify-self: center; width: min(100%, 22rem); }
.hero-mark img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 3rem rgba(240, 138, 60, 0.28)); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; }
.button { display: inline-block; background: var(--ember); color: #fff; text-decoration: none; font-weight: 600; padding: 0.75rem 1.3rem; border-radius: 3px; }
.button:hover { background: var(--ember-hot); color: var(--iron); }
.link-quiet { color: var(--on-iron); text-decoration-color: var(--brass); }
.link-quiet:hover { color: #fff; }

.page-head { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 0.8rem; color: #fff; }
.page-head h1 em { color: var(--ember-hot); }
.page-head p { margin: 0; max-width: 40rem; font-size: 1.15rem; color: var(--on-iron); }

/* ---- paper sections ---- */
main { display: block; }
.band { padding: 5rem 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 0.8rem; }
.band .intro { max-width: 40rem; color: var(--quiet); margin: 0 0 2.8rem; font-size: 1.08rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 1.4rem 1.4rem 0.4rem 0; margin: 0; }
.steps li + li { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.numeral { display: block; font-size: 2.6rem; line-height: 1; color: var(--ember); margin-bottom: 0.7rem; }
.steps h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.steps p { margin: 0; color: var(--quiet); font-size: 0.98rem; }

.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--brass); }
.timeline li { position: relative; margin: 0 0 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ember); }
.year { display: block; font-size: 1.3rem; color: var(--ink); }
.timeline p { margin: 0.1rem 0 0; color: var(--quiet); font-size: 0.98rem; }

.specs { margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.specs > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.specs dd { margin: 0; color: var(--quiet); font-size: 0.98rem; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.principle { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ember); padding: 1.4rem 1.5rem; }
.principle h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--quiet); font-size: 0.98rem; }

.invite { background: var(--iron-2); color: var(--on-iron); }
.invite .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.invite h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.4rem; color: #fff; }
.invite p { margin: 0; color: var(--on-iron-quiet); max-width: 36rem; }

.prose { max-width: 44rem; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.prose h2 { font-size: 1.7rem; margin: 2.6rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.22rem; margin: 1.9rem 0 0.4rem; color: var(--ember-ink); }
.prose li { margin-bottom: 0.6rem; }
.prose ol { padding-left: 1.4rem; }
.prose ol li::marker { color: var(--ember); font-family: var(--serif); font-weight: 600; }
.prose .callout { background: var(--card); border-left: 3px solid var(--ember); padding: 1.1rem 1.3rem; margin: 2rem 0; }
.prose .callout p { margin: 0; }
.prose .film { margin: 1.6rem 0 2rem; }
.prose .film video { display: block; width: 100%; height: auto; background: var(--ink); }
.prose .film figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--quiet); }
.prose .table-wrap { overflow-x: auto; margin: 0.8rem 0 1.6rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.5rem 0.7rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }


@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; padding-bottom: 4rem; }
  .hero-mark { order: -1; justify-self: start; width: 7rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 1rem; }
  .field { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 36rem) {
  body { font-size: 17px; }
  .wrap { padding: 0 1rem; }
  .band { padding: 3.5rem 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); margin-top: 1rem; }
  .principles { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .brand, .masthead nav a, .btn, .card a { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}

/* ---- the Heritage Studio (#264): typefaces, header and footer on every page, and the home page ---- */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/eb-garamond-latin.woff2) format("woff2");
  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; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/eb-garamond-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-english-latin.woff2) format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-english-sc-latin.woff2) format("woff2"); }

:root {
  --hs-ground: #F3EBDD; --hs-ink: #2B211A; --hs-text: #3D3128; --hs-rule: #8A7A66; --hs-blue: #2F4E7A; --hs-accent: #8E3B2A;
  --hs-card: #EADFCB; --hs-card-rule: #B9A88E; --hs-shadow: #D9CBB4; --hs-grey: #5A5E5D; --hs-green: #4F6B3A;
  --hs-body: "EB Garamond", Garamond, Georgia, serif;
  --hs-display: "IM Fell English", "EB Garamond", Georgia, serif;
  --hs-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
}
em, i, cite, address, dfn, var { font-style: normal; }
.hs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.hs-paper { background: var(--hs-ground) url(/paper.svg) repeat; background-size: 600px 600px; color: var(--hs-ink); }

.masthead header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 28px 0 22px; border-bottom: 3px double var(--hs-ink); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--hs-ink); }
.brand:hover { color: var(--hs-ink); }
.brand img { width: 34px; height: 28px; flex: none; }
.brand-words { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.brand-name { font-family: var(--hs-sc); font-weight: 400; font-size: 30px; letter-spacing: 0.06em; text-transform: none; }
.brand-studio { display: flex; align-items: center; gap: 8px; width: 100%; font-family: var(--hs-sc); font-size: 13px; letter-spacing: 0.32em; }
.brand-studio::before, .brand-studio::after { content: ""; flex: 1; border-top: 1px solid var(--hs-rule); }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-family: var(--hs-sc); font-size: 19px; letter-spacing: 0.05em; }
.masthead nav a { color: var(--hs-ink); text-decoration: none; }
.masthead nav a:hover { color: var(--hs-accent); }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--hs-accent); }
.masthead nav a.nav-letter { background: var(--hs-accent); color: var(--hs-ground); padding: 10px 20px; border-radius: 2px; }
.masthead nav a.nav-letter:hover { color: var(--hs-ground); background: var(--hs-ink); }

.colophon { font-family: var(--hs-body); font-size: 16px; color: var(--hs-grey); }
.colophon .hs-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-top: 26px; padding-bottom: 32px; }
.colophon .hs-wrap::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 1px solid var(--hs-rule); }
.colophon p { margin: 0; }
.colophon a { color: var(--hs-grey); }
.colophon a:hover { color: var(--hs-accent); }
.colophon .brand { gap: 10px; color: var(--hs-grey); }
.colophon .brand img { width: 24px; height: 20px; }
.colophon .brand-line { font-family: var(--hs-body); font-size: 16px; }

/* the home page */
body.home { font: 19px/1.55 var(--hs-body); }
.home main { display: block; }
.home a { color: var(--hs-accent); }
.home .masthead .brand, .home .masthead .brand:hover { color: var(--hs-ink); }
.home .colophon .brand { color: var(--hs-grey); }
.home h1, .home h2, .home h3 { font-family: var(--hs-display); font-weight: 400; letter-spacing: 0; }
.hs-hero { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; padding: 72px 0 64px; }
.hs-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hs-kicker { margin: 0; font-family: var(--hs-sc); font-size: 18px; letter-spacing: 0.12em; color: var(--hs-accent); }
.hs-hero h1 { margin: 0; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; color: var(--hs-ink); }
.hs-hero h1 span { display: block; }
.hs-hero h1 .hs-carried { margin-top: 0.7em; font-size: 0.72em; color: var(--hs-blue); }
.hs-lede { margin: 0; max-width: 34em; font-size: 21px; color: var(--hs-text); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.home .btn { text-decoration: none; font-family: var(--hs-sc); font-size: 20px; letter-spacing: 0.05em; border-radius: 2px; }
.home .btn-solid { background: var(--hs-accent); color: var(--hs-ground); padding: 14px 26px; }
.home .btn-solid:hover { background: var(--hs-ink); color: var(--hs-ground); }
.home .btn-line { color: var(--hs-ink); padding: 13px 24px; border: 1.5px solid var(--hs-ink); }
.home .btn-line:hover { background: var(--hs-ink); color: var(--hs-ground); }
.hs-places { margin: 6px 0 0; font-family: var(--hs-sc); font-size: 18px; letter-spacing: 0.12em; color: var(--hs-grey); }

.hs-film { flex: 1 1 520px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.hs-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1E2A2E; border: 10px solid var(--hs-ink);
  box-shadow: 0 0 0 1px var(--hs-rule), 8px 10px 0 var(--hs-shadow); }
.hs-film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 17px; color: var(--hs-text); }
.hs-film figcaption p { margin: 0; }
.hs-film .hs-film-link { font-family: var(--hs-sc); font-size: 17px; letter-spacing: 0.05em; }

.hs-divider { display: flex; align-items: center; gap: 24px; }
.hs-divider::before, .hs-divider::after { content: ""; flex: 1; border-top: 1px solid var(--hs-rule); }
.hs-divider img { width: 220px; height: 99px; max-width: 50%; }

.hs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; padding: 56px 0; }
.card { background: var(--hs-card); border: 1px solid var(--hs-card-rule); padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.card p { margin: 0; color: var(--hs-text); }
.card .card-label { font-family: var(--hs-sc); font-size: 16px; letter-spacing: 0.14em; color: var(--hs-green); }
.card h2 { margin: 0; font-size: 34px; line-height: 1.12; color: var(--hs-ink); }
.card .card-link { margin-top: auto; font-family: var(--hs-sc); font-size: 18px; color: var(--hs-accent); text-decoration: none; }
.card a.card-link:hover { text-decoration: underline; }

.hs-about { border-top: 3px double var(--hs-ink); padding: 48px 0 56px; max-width: 52em; scroll-margin-top: 24px; }
.hs-about h2 { margin: 0 0 18px; font-size: 40px; line-height: 1.15; color: var(--hs-blue); }
.hs-about p { margin: 0 0 16px; color: var(--hs-text); }
.hs-footnote { margin: 26px 0 0; background: var(--hs-card); border-top: 1px solid var(--hs-card-rule); border-bottom: 1px solid var(--hs-card-rule);
  padding: 16px 20px; font-size: 16px; color: var(--hs-text); }
.hs-footnote p { margin: 0; }
.hs-footnote .hs-footnote-label { font-family: var(--hs-sc); letter-spacing: 0.08em; color: var(--hs-accent); }

.hs-letter { background: var(--hs-ink); color: var(--hs-ground); padding: 52px 48px; box-shadow: 8px 10px 0 var(--hs-shadow); margin: 0 0 64px; scroll-margin-top: 24px; }
.hs-letter .hs-letter-label { margin: 0; font-family: var(--hs-sc); font-size: 16px; letter-spacing: 0.14em; color: #D9B48A; }
.hs-letter h2 { margin: 6px 0 4px; font-size: 44px; line-height: 1.1; color: var(--hs-ground); }
.hs-letter .hs-letter-sub { margin: 0 0 18px; font-size: 18px; color: var(--hs-shadow); }
.hs-letter p { margin: 0 0 12px; color: #E2D6C2; }
.hs-letter .hs-soon { margin: 20px 0 0; font-family: var(--hs-sc); font-size: 20px; letter-spacing: 0.05em; color: var(--hs-ground); }

/* the language selector (#264, phase 2; Platt dropped on the owner's word, 3 Dec 2026): EN | DE, top right in the nav's small capitals; under the nav on phones */
.hs-lang { margin: 0; font-family: var(--hs-sc); font-size: 17px; letter-spacing: 0.05em; color: var(--hs-grey); }
.hs-lang a { color: var(--hs-ink); text-decoration: none; }
.hs-lang a:hover { color: var(--hs-accent); }
.hs-lang a[aria-current="page"] { color: var(--hs-accent); text-decoration: underline; text-decoration-color: var(--hs-accent); }

@media (max-width: 600px) {
  .masthead nav + .hs-lang { flex-basis: 100%; }
  .hs-letter { padding: 40px 24px; }
  .masthead nav { gap: 6px 18px; }
}
.prose ol.hs-notes { list-style: none; padding-left: 0; }
.prose ol.hs-notes .hs-footnote { margin-top: 12px; }
/* the listen switch (#290, 3 Dec 2026): Listen: EN | DE above the player, no script. The page's own language shows by default;
   a link to #film-en or #film-de shows that one (:target) and hides the default, which follows it in the page. */
.hs-listen { margin: 0 0 8px; font-family: var(--hs-sc); font-size: 17px; letter-spacing: 0.05em; color: var(--hs-grey); }
.hs-listen a { color: var(--hs-ink); text-decoration: none; }
.hs-listen a:hover { color: var(--hs-accent); }
.hs-listen a[aria-current="true"] { color: var(--hs-accent); text-decoration: underline; text-decoration-color: var(--hs-accent); }
.film-set .film-alt { display: none; }
.film-set .film-alt:target { display: block; }
.film-set .film-alt:target ~ .film-default { display: none; }
.film-set > video { width: 100%; height: auto; }
.film-lang { scroll-margin-top: 16px; }
.film-voice { font-size: 0.95em; color: var(--hs-grey); }
/* the one disclaimer (the owner, 3 Dec 2026, #290: "a single disclaimer, much smaller font likely as a true footer"):
   small, muted, no box, the footer's full width above the copyright line */
.colophon .site-note { flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--hs-grey); }
/* One look for every page (#290 presentation pass, 3 Dec 2026; the owner: "the presentation must look to be of highest
   quality"): the home page's faces everywhere, EB Garamond for text and headings at regular weight, IM Fell English SC for
   small capitals; EB Garamond is served at 400 to 500 only, so nothing asks for a faux bold. A measure of about 70
   characters. The home page keeps its own display face for its headings (.home h1, h2, h3 above). */
body { font: 19px/1.6 var(--hs-body); }
h1, h2, h3, .numeral, .year { font-family: var(--hs-body); font-weight: 400; letter-spacing: 0; }
strong, b, th, .specs dt, .button { font-weight: 500; }
.specs dt { font-family: var(--hs-body); }
.kicker { font-family: var(--hs-sc); font-size: 18px; letter-spacing: 0.12em; text-transform: none; font-weight: 400; }
.prose { max-width: 38rem; }
.prose ol li::marker { font-family: var(--hs-body); font-weight: 500; }
.prose .source-note { margin-top: 1rem; font-size: 16px; color: var(--quiet); }
.prose .table-wrap { -webkit-overflow-scrolling: touch; }
/* the listen switch's links are underlined, so they are told from "Listen:" by more than colour (axe link-in-text-block) */
.hs-listen a { text-decoration: underline; text-decoration-color: var(--hs-grey); text-underline-offset: 0.2em; }
.hs-listen a[aria-current="true"] { text-decoration-color: var(--hs-accent); }
/* the same gap under the page head on every content page at phone width (the office's gate 3, 3 Dec 2026): the phone rule
   for .wrap above sets padding: 0 1rem, which took .prose's top padding with it */
@media (max-width: 36rem) { .wrap.prose { padding-top: 3.5rem; padding-bottom: 3rem; } }
.prose > :first-child { margin-top: 0; }
/* No orphans in a banner (the owner's review of #359, 3 Dec 2026: "adjust font size so that a single word or few words are
   forced to the next line"): titles and leads balance their lines; body paragraphs avoid a lone last word. */
.page-head h1, .page-head p, .hs-hero h1 span, .hs-lede { text-wrap: balance; }
.prose p, .prose li { text-wrap: pretty; }
.page-head p { max-width: 34rem; }
@media (max-width: 36rem) {
  .page-head h1 { font-size: 1.8rem; }
  .page-head p { font-size: 1.05rem; }
}
