@font-face { font-family: "HB Blackletter"; src: url(../fonts/UnifrakturMaguntia-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "HB Caslon"; src: url(../fonts/LibreCaslonText-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "HB Caslon"; src: url(../fonts/LibreCaslonText-Italic.ttf) format("truetype"); font-style: italic; font-display: swap; }
@font-face { font-family: "HB Caslon"; src: url(../fonts/LibreCaslonText-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "HB Caslon Italic"; src: url(../fonts/LibreCaslonText-Italic.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "HB Fell"; src: url(../fonts/IMFellFrenchCanon-Italic.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "HB Fell SC"; src: url(../fonts/IMFellEnglishSC-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  --paper: #f6f0e3;
  --paper-2: #efe7d6;
  --ink: #181615;
  --ink-2: #3a3633;
  --rule: 1px solid var(--ink);
  --black: "HB Blackletter", "UnifrakturMaguntia", "Old English Text MT", serif;
  --serif: "HB Caslon", "Libre Caslon Text", Georgia, serif;
  --fell: "HB Fell", "IM Fell French Canon", Georgia, serif;
  --sc: "HB Fell SC", "IM Fell English SC", Georgia, serif;
  --max: 1240px;
  --oval: 440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: var(--ink); background: var(--paper) url(../assets/paper.png);
  font: 18px/1.62 var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(246,240,227,.94); backdrop-filter: blur(4px); border-bottom: 3px double var(--ink); }
.masthead__inner { max-width: var(--max); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--black); font-size: 24px; text-decoration: none; white-space: nowrap; }
.brand__mark { font-family: var(--serif); font-size: 18px; vertical-align: 2px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--sc); font-size: 16px; letter-spacing: .08em; text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--ink); }
.nav a.nav__cta { border: 1.5px solid var(--ink); padding: 2px 12px; }
.nav a.nav__cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- shared */
.kicker { font-family: var(--sc); letter-spacing: .38em; text-transform: uppercase; font-size: 14px; margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.kicker::before, .kicker::after { content: ""; height: 1px; background: currentColor; flex: 0 0 42px; }
.section-head { max-width: 880px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { justify-content: center; }
h2 { font-family: var(--black); font-weight: normal; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; margin: 0 0 22px; text-wrap: balance; }
.lede { font-family: var(--fell); font-size: 24px; line-height: 1.45; margin: 0 auto; max-width: 720px; }
.band { height: 34px; background: url(../assets/band.svg) center/100% 100% no-repeat; border-top: var(--rule); border-bottom: var(--rule); opacity: .9; }
section { position: relative; }
.plaque {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: 17px/1 var(--sc); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--ink); border: 0; padding: 18px 30px;
  outline: 1.5px solid var(--ink); outline-offset: 4px; transition: transform .15s ease, outline-offset .15s ease;
}
.plaque:hover:not(:disabled) { transform: translateY(-1px); outline-offset: 6px; }
.plaque:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.plaque:disabled { opacity: .35; cursor: not-allowed; }
.plaque--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); outline-color: transparent; }
.plaque--ghost:hover:not(:disabled) { background: var(--ink); color: var(--paper); }

/* ---------- hero */
.hero { overflow: hidden; border-bottom: 0; display: flex; flex-direction: column; }
.hero__rays { position: absolute; width: 1800px; height: 1800px; left: 50%; top: calc(var(--oval) * 1424 / 1320 / 2); margin: -900px 0 0 -900px; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(24,22,21,.11) 0deg .35deg, transparent .35deg 3deg); animation: spin 240s linear infinite; pointer-events: none; mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 58%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 58%); }
.hero__rosette { position: absolute; width: 1040px; height: 1040px; left: 50%; top: calc(var(--oval) * 1424 / 1320 / 2); transform: translate(-50%, -50%); background: url(../assets/guilloche.svg) center/contain no-repeat; opacity: .38; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-family: var(--black); font-weight: normal; margin: 0 0 26px; font-size: clamp(54px, 7.6vw, 118px); line-height: .94; letter-spacing: -.005em; }
.hero__title span { display: block; }
.hero__title span + span { font-family: var(--fell); font-size: .5em; line-height: 1.15; margin-top: .45em; padding-top: .35em; border-top: 3px double var(--ink); max-width: 15em; }
.hero__sub { font-size: 20px; max-width: 34em; margin: 0 0 34px; }
.hero__copy { position: relative; z-index: 1; }
.hero__founder { margin: 0; justify-self: center; text-align: center; position: relative; z-index: 0; }
.oval { position: relative; z-index: 1; width: min(var(--oval), 80vw); aspect-ratio: 1320/1424; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink), 0 0 0 10px var(--paper), 0 0 0 11px var(--ink), 0 30px 60px -30px rgba(0,0,0,.45); background: var(--paper); }
.oval img { width: 100%; height: 100%; object-fit: cover; }
.hero__founder figcaption { position: relative; z-index: 1; font-family: var(--fell); font-size: 16px; margin-top: 22px; }

/* ---------- origin */
.origin { padding: 110px 24px 100px; max-width: 1400px; margin: 0 auto; }
.plates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: plate; }
.plate { display: flex; flex-direction: column; }
.plate__frame { border: var(--rule); padding: 7px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.plate:hover .plate__frame { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.plate__frame img { border: var(--rule); aspect-ratio: 251/190; object-fit: cover; width: 100%; }
.plate__num { font-family: var(--sc); letter-spacing: .3em; font-size: 14px; margin: 30px 0 2px; }
.plate h3 { font-family: var(--black); font-weight: normal; font-size: 34px; line-height: 1.05; margin: 0 0 8px; }
.plate p { margin: 0; font-size: 17px; }
.coda { font-family: var(--fell); font-size: clamp(24px, 3vw, 36px); line-height: 1.35; text-align: center; max-width: 900px; margin: 90px auto 0; padding: 36px 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }

/* ---------- doctrine (the plate in negative) */
.doctrine { background: var(--ink); color: var(--paper); padding: 120px 24px; overflow: hidden; }
.doctrine::before { content: ""; position: absolute; inset: 0; background: url(../assets/guilloche.svg) -240px -120px/900px no-repeat, url(../assets/guilloche.svg) calc(100% + 300px) calc(100% + 260px)/1000px no-repeat; filter: invert(1); opacity: .12; pointer-events: none; }
.doctrine__inner { position: relative; max-width: var(--max); margin: 0 auto; }
.doctrine .kicker { color: var(--paper); }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(246,240,227,.5); }
.article { padding: 44px 40px 48px; border-bottom: 1px solid rgba(246,240,227,.5); position: relative; }
.article:nth-child(odd) { border-right: 1px solid rgba(246,240,227,.5); }
.article__num { font-family: var(--black); font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1.2px var(--paper); position: absolute; right: 30px; top: 30px; opacity: .55; }
.article h3 { font-family: var(--sc); font-weight: normal; letter-spacing: .14em; text-transform: uppercase; font-size: 18px; margin: 0 0 18px; padding-right: 150px; }
.article p { margin: 0 0 10px; font-size: 19px; }
.article p.em { font-family: var(--black); font-size: 40px; line-height: 1.1; margin: 4px 0 12px; }
.article--wide { grid-column: 1 / -1; border-right: 0 !important; }
.article--center { text-align: center; padding: 70px 40px 80px; }
.article--center h3 { padding-right: 0; }
.article--center p.em { font-size: clamp(48px, 7vw, 104px); }
.article--center .article__num { left: 50%; right: auto; transform: translateX(-50%); top: 18px; opacity: .2; font-size: 160px; }
.steps { list-style: none; padding: 0; margin: 6px 0 22px; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(246,240,227,.5); }
.steps li { counter-increment: step; padding: 18px 18px 18px 64px; position: relative; font-family: var(--fell); font-size: 22px; line-height: 1.25; border-right: 1px solid rgba(246,240,227,.5); border-bottom: 1px solid rgba(246,240,227,.5); }
.steps li:nth-child(3n) { border-right: 0; }
.steps li:nth-last-child(-n+3) { border-bottom: 0; }
.steps li::before { content: counter(step, upper-roman) "."; position: absolute; left: 18px; top: 18px; font-family: var(--sc); font-size: 18px; }
.stamp { display: inline-block; max-width: 100%; border: 3px solid var(--paper); padding: 10px 18px 8px; font-family: var(--sc); letter-spacing: .12em; text-transform: uppercase; font-size: 22px !important; line-height: 1.25; transform: rotate(-3deg); margin: 6px 0 22px !important; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--paper); }
.cite { display: block; font-size: 13px; font-family: var(--sc); letter-spacing: .06em; opacity: .75; margin-top: 2px; }

/* ---------- vestment */
.vestment { padding: 120px 24px 110px; max-width: var(--max); margin: 0 auto; }
.vestment__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.vestment__emblem { margin: 0; position: relative; }
.vestment__emblem::before { content: ""; position: absolute; inset: -8%; background: url(../assets/guilloche.svg) center/contain no-repeat; opacity: .25; z-index: -1; }
.vestment__emblem img { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 80%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 80%, transparent 100%); }
.prose p { font-size: 20px; margin: 0 0 18px; }
.prose p:first-child { font-family: var(--fell); font-size: 30px; line-height: 1.3; }
.relics { list-style: none; padding: 0; margin: 90px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.relics img { margin: 0 auto 14px; height: 220px; width: 220px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px var(--paper), 0 0 0 7px var(--ink); }
.relics li:last-child img { width: auto; max-width: 100%; border-radius: 0; box-shadow: 0 0 0 1px var(--ink); }
.relics figcaption { font-family: var(--fell); font-size: 18px; }

/* ---------- ordain */
.ordain { padding: 110px 24px 120px; background: var(--paper-2) url(../assets/paper.png); border-top: 3px double var(--ink); }
.ordain__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.preview { position: sticky; top: 90px; }
.preview canvas, .preview img { width: 100%; height: auto; display: block; box-shadow: 0 0 0 1px var(--ink), 14px 14px 0 var(--ink); background: var(--paper); }
.preview__note { font-family: var(--fell); font-size: 16px; margin: 26px 0 0; text-align: center; }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--sc); letter-spacing: .05em; font-size: 17px; position: relative; }
.field input { font: 26px/1.2 var(--serif); color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--ink); padding: 12px 4px 10px; border-radius: 0; }
#name { font-family: var(--black); font-size: 36px; }
.field input:focus { outline: none; background: #fffaf0; box-shadow: 0 2px 0 var(--ink); }
.field__count { position: absolute; right: 0; top: 2px; font-family: var(--serif); font-size: 13px; letter-spacing: 0; opacity: .7; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.actions .plaque { flex: 1 1 200px; padding: 16px 18px; }
.mail { border: var(--rule); padding: 22px 22px 18px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 18px; background: var(--paper); }
.mail legend { font-family: var(--sc); letter-spacing: .3em; text-transform: uppercase; font-size: 14px; padding: 0 10px; }
.mail .field input { font-size: 20px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; margin: 0; font-family: var(--fell); font-size: 17px; }
.status.is-error { font-family: var(--serif); font-weight: 700; }
.privacy { font-size: 14px; line-height: 1.5; opacity: .8; margin: 0; }

/* ---------- footer */
.footer { text-align: center; padding: 0 24px 60px; }
.footer .band { margin: 0 -24px 40px; }
.footer__sign { font-family: var(--black); font-size: 40px; margin: 0 0 18px; }
.footer__disclaimer { max-width: 780px; margin: 0 auto; font-size: 14px; line-height: 1.6; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .plates { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .ordain__grid { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav a:not(.nav__cta) { display: none; }
  .kicker { letter-spacing: .22em; font-size: 12px; }
  .kicker::before, .kicker::after { flex-basis: 24px; }
  .article h3 { padding-right: 90px; }
  .article__num { font-size: 48px; }
  .hero { --oval: 280px; }
  .hero__rosette { width: 680px; height: 680px; }
  .hero__grid { grid-template-columns: 1fr; padding: 28px 18px 40px; text-align: left; }
  .hero__founder { order: -1; }
  .hero__title { font-size: clamp(40px, 12vw, 64px); }
  .articles { grid-template-columns: 1fr; }
  .article { padding: 36px 8px 40px; border-right: 0 !important; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-right: 1px solid rgba(246,240,227,.5) !important; border-bottom: 1px solid rgba(246,240,227,.5) !important; }
  .vestment__grid { grid-template-columns: 1fr; gap: 40px; }
  .relics { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .plates { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 20px; }
}

/* doctrine bookends */
.article--first { grid-column: 1 / -1; text-align: center; border-right: 0 !important; padding: 56px 40px 60px; }
.article--first h3 { padding-right: 0; }
.article--first p { font-family: var(--fell); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; margin: 0 0 6px; }
.article--first .article__num { left: 50%; right: auto; transform: translateX(-50%); top: 12px; opacity: .16; font-size: 150px; }

/* overflow guards */
html, body { overflow-x: clip; }
.ordain__grid > *, .mail, .field, .field input { min-width: 0; }
.field input { width: 100%; }
@media (max-width: 520px) {
  .masthead__inner { padding: 8px 14px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand__mark { display: none; }
  .nav a.nav__cta { font-size: 13px; padding: 2px 8px; white-space: nowrap; }
  .hero { --oval: 220px; }
  .hero__rosette { width: 520px; height: 520px; }
  .hero__title { font-size: clamp(34px, 11vw, 46px); }
  #name { font-size: 30px; }
  .actions .plaque { flex-basis: 100%; }
}

/* ---- two voices: verbatim quotes (linked) vs. the Order's own text ---- */
q { quotes: "\201C" "\201D"; }
q::before { content: open-quote; } q::after { content: close-quote; }
p.quote { margin-bottom: 14px; }
p.quote q { font-family: var(--fell); font-style: italic; font-size: 1.08em; }
p.quote .cite { margin-top: 4px; text-decoration: none; color: inherit; border-bottom: 1px dotted currentColor; display: table; font-size: 12px; }
.article--first p.quote .cite, .article--center p.quote .cite, #blessing .cite { margin-left: auto; margin-right: auto; }
p.quote .cite:hover { opacity: 1; }
.hero__quote q { font-style: italic; }
.hero__cites { margin: -14px 0 18px; }
.hero__cites .cite { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; display: inline-block; }
#hero-sub { margin: 0 0 34px; } #hero-sub p { margin: 0 0 10px; }
.legend { font-family: var(--sc); letter-spacing: .05em; font-size: 14px; max-width: 640px; margin: 14px auto 0; opacity: .8; text-wrap: balance; }
#blessing { max-width: 640px; margin: 18px auto 0; text-align: center; }
#blessing p.quote q { font-size: 22px; }
.footer__legend { max-width: 780px; margin: 0 auto 10px; font-size: 13px; opacity: .85; }
.plate__frame img { aspect-ratio: 7/4; }
.plate p.quote q { font-size: 1em; }

/* ---------- email-only form (do not alter hero rules above) */
.required-note { font-family: var(--fell); font-size: 18px; margin: 0; }
.check--optional { font-size: 14px; opacity: .95; }
.footer__links { margin: 18px auto 0; font-size: 14px; }
.footer__links a { color: inherit; }
.page { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.page h1 { font-family: var(--black); font-weight: normal; font-size: clamp(36px, 6vw, 64px); margin: 0 0 18px; }
.page .lede, .page p { margin: 0 0 16px; }
.page form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.page .status { min-height: 1.4em; font-family: var(--fell); font-size: 17px; }
