/* Cloverfield Confectionery — heritage ledger stylesheet
   Palette: Southern Pecan & Porch
   Hand-written, human-readable, one declaration per line. */

:root {
  --roast: #2C1810;
  --roast-soft: #4A2E22;
  --buttermilk: #FDF8F0;
  --linen: #F4EDE2;
  --parchment: #EDE0CB;
  --praline: #C86D51;
  --praline-deep: #A9523B;
  --sage: #5F7464;
  --sage-pale: #E6EBE3;
  --rule: #D8CBB9;
  --shadow-card: 0 16px 30px -24px rgba(44, 24, 16, 0.65);
  --shadow-deep: 0 28px 56px -36px rgba(44, 24, 16, 0.6);
  --serif: Baskerville, "Palatino Linotype", Palatino, Garamond, Georgia, serif;
  --sans: "Segoe UI", Verdana, Tahoma, Geneva, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--buttermilk);
  background-image: radial-gradient(circle at 12% 8%, rgba(200, 109, 81, 0.09), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(95, 116, 100, 0.12), transparent 38%);
  color: var(--roast);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--praline-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--roast);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--roast);
}

h1 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
}

[hidden] {
  display: none !important;
}

/* ---------- Masthead ---------- */

.masthead {
  background-color: var(--roast);
  background-image: linear-gradient(140deg, #33200F 0%, #2C1810 55%, #20110A 100%);
  color: var(--buttermilk);
  border-bottom: 5px solid var(--praline);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--buttermilk);
  text-decoration: none;
}

.brandmark img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(200, 109, 81, 0.55);
}

.brandmark__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brandmark__strap {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #E4CFAE;
  text-transform: uppercase;
}

.nav-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-block a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--linen);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-block a:hover,
.nav-block a:focus-visible {
  color: var(--buttermilk);
  background-color: rgba(200, 109, 81, 0.24);
  border-color: rgba(200, 109, 81, 0.6);
}

.nav-block a[aria-current="page"] {
  color: var(--roast);
  background-color: var(--parchment);
  border-color: var(--parchment);
}

/* ---------- Sticky sub-rail ---------- */

.sub-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--linen);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 6px 18px -14px rgba(44, 24, 16, 0.6);
}

.sub-rail__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 28px;
}

.sub-rail__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-right: 6px;
}

.sub-rail a {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--roast-soft);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.sub-rail a:hover,
.sub-rail a:focus-visible {
  color: var(--praline-deep);
  border-bottom-color: var(--praline);
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 12px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.hero__lede {
  font-size: 1.09rem;
  color: var(--roast-soft);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background-color: var(--praline);
  color: #FFF8F1;
  box-shadow: var(--shadow-card);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--praline-deep);
  color: #FFF8F1;
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--roast);
  border-color: var(--sage);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--sage);
  color: var(--buttermilk);
  transform: translateY(-2px);
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-deep);
  background-color: var(--linen);
}

.hero__figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-transform: uppercase;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--rule);
  list-style: none;
}

.hero__stats li {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--roast-soft);
}

.hero__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--praline-deep);
  letter-spacing: 0.02em;
}

/* ---------- Tag ledger (keyword directory) ---------- */

.tag-ledger {
  padding: 44px 0 38px;
  background-color: var(--linen);
  border-bottom: 1px solid var(--rule);
}

.tag-ledger__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tag-ledger__head p {
  margin: 0;
  max-width: 46ch;
  font-size: 0.94rem;
  color: var(--roast-soft);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-ticket {
  display: inline-block;
  padding: 7px 15px 7px 17px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--roast);
  background-color: var(--buttermilk);
  border: 1px dashed var(--praline);
  border-radius: 4px 14px 14px 4px;
  box-shadow: 0 8px 16px -16px rgba(44, 24, 16, 0.9);
}

.tag-ticket:nth-child(3n + 2) {
  border-color: var(--sage);
  background-color: var(--sage-pale);
}

.tag-ticket:nth-child(4n + 3) {
  background-color: #F7E6D9;
}

/* ---------- Archive collection ---------- */

.archive {
  padding: 56px 0 50px;
}

.archive__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.archive__head p {
  margin: 0;
  color: var(--roast-soft);
  font-size: 0.97rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.chip {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background-color: var(--buttermilk);
  color: var(--roast-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--praline);
  color: var(--praline-deep);
}

.chip[aria-pressed="true"] {
  background-color: var(--roast);
  border-color: var(--roast);
  color: var(--parchment);
}

.chip-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 26px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #FFFCF6;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-card);
}

.archive-card__no {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  margin: 0;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--buttermilk);
  background-color: var(--roast);
  border-radius: 3px;
}

.archive-card__figure {
  margin: 0 0 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--linen);
}

.archive-card__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.archive-card__note {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--roast-soft);
  margin-bottom: 12px;
}

.spec {
  margin: 0 0 14px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rule);
  font-size: 0.82rem;
  line-height: 1.5;
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.spec dd {
  margin: 1px 0 9px;
  color: var(--roast);
}

.spec dd:last-child {
  margin-bottom: 0;
}

.archive-card__foot {
  margin: auto 0 0;
  font-size: 0.82rem;
}

.archive-card__foot a {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Craft ledger ---------- */

.craft-ledger {
  padding: 54px 0 52px;
  background-color: var(--sage-pale);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.craft-ledger__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.ledger-cols {
  columns: 2;
  column-gap: 34px;
  margin: 0;
}

.ledger-cols dt {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--roast);
  margin-top: 18px;
  break-after: avoid;
}

.ledger-cols dt:first-child {
  margin-top: 0;
}

.ledger-cols dd {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--roast-soft);
  break-inside: avoid;
}

.craft-ledger__figure {
  margin: 0;
  background-color: #FFFCF6;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.craft-ledger__figure img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.craft-ledger__figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--roast-soft);
}

/* ---------- Pairing cabinet widget ---------- */

.cabinet {
  padding: 58px 0 56px;
  background-color: var(--roast);
  background-image: radial-gradient(circle at 20% 0%, rgba(200, 109, 81, 0.28), transparent 46%),
    radial-gradient(circle at 82% 92%, rgba(95, 116, 100, 0.4), transparent 44%);
  color: var(--linen);
}

.cabinet h2,
.cabinet h3 {
  color: var(--buttermilk);
}

.cabinet__head {
  max-width: 62ch;
  margin-bottom: 28px;
}

.cabinet__head p {
  color: #EADBCB;
  margin: 0;
}

.cabinet__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.cabinet__step {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(244, 237, 226, 0.28);
  border-radius: var(--radius-md);
  background-color: rgba(253, 248, 240, 0.06);
}

.cabinet__step legend {
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E4CFAE;
}

.cabinet__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.cabinet__option {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 237, 226, 0.3);
  background-color: rgba(253, 248, 240, 0.04);
  color: var(--linen);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cabinet__option:hover,
.cabinet__option:focus-visible {
  border-color: var(--praline);
  background-color: rgba(200, 109, 81, 0.2);
}

.cabinet__option[aria-pressed="true"] {
  background-color: var(--parchment);
  border-color: var(--parchment);
  color: var(--roast);
  font-weight: 600;
}

.cabinet__panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background-color: var(--buttermilk);
  color: var(--roast);
  box-shadow: var(--shadow-deep);
}

.cabinet__panel img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.cabinet__verdict h3 {
  color: var(--roast);
  margin-bottom: 8px;
}

.cabinet__verdict p {
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.cabinet__verdict p:last-of-type {
  margin-bottom: 0;
}

.cabinet__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 6px;
}

.cabinet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.cabinet__actions .btn--ghost {
  color: var(--linen);
  border-color: rgba(244, 237, 226, 0.5);
}

.cabinet__actions .btn--ghost:hover,
.cabinet__actions .btn--ghost:focus-visible {
  background-color: var(--linen);
  color: var(--roast);
}

.cabinet__hint {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E4CFAE;
}

/* ---------- Heritage strip ---------- */

.heritage {
  padding: 56px 0 54px;
}

.heritage__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.heritage__figure {
  margin: 0;
}

.heritage__figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

.heritage__figure figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--sage);
}

.timeline {
  margin: 22px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--rule);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 8px;
  font-size: 0.92rem;
  color: var(--roast-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--praline);
  box-shadow: 0 0 0 3px var(--buttermilk), 0 0 0 4px var(--rule);
}

.timeline strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--roast);
  text-transform: uppercase;
}

.pull-quote {
  margin: 0;
  padding: 46px 0 42px;
  background-color: var(--parchment);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pull-quote blockquote {
  max-width: 44ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.42;
  color: var(--roast);
  text-align: center;
}

.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Invitation band ---------- */

.invitation {
  padding: 52px 0 58px;
}

.invitation__card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  background-color: #FFFCF6;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

.invitation__card h2 {
  margin-bottom: 10px;
}

.invitation__card p {
  color: var(--roast-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.invitation__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.invitation__card li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
}

.invitation__card li:last-child {
  border-bottom: 0;
}

/* ---------- Footer ---------- */

.colophon {
  background-color: var(--roast);
  color: #E7D8C8;
  padding: 48px 0 26px;
  border-top: 5px solid var(--praline);
}

.colophon__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 32px;
}

.colophon h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E4CFAE;
  margin-bottom: 14px;
}

.colophon p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.colophon a {
  color: var(--buttermilk);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 237, 226, 0.35);
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--parchment);
  border-bottom-color: var(--praline);
}

.colophon ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.colophon li {
  padding: 4px 0;
}

.colophon__brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.colophon__brandline img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.colophon__brandline span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--buttermilk);
}

.colophon__legal {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 237, 226, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #C9B6A3;
}

/* ---------- Preferences card ---------- */

.prefs-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(360px, calc(100vw - 40px));
  padding: 18px 20px 20px;
  border-radius: var(--radius-md);
  background-color: var(--buttermilk);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--praline);
  box-shadow: 0 26px 50px -26px rgba(44, 24, 16, 0.7);
}

.prefs-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 14px;
  color: var(--roast-soft);
}

.prefs-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.prefs-card .btn {
  padding: 9px 16px;
  font-size: 0.78rem;
}

/* ---------- Interior pages ---------- */

.page-hero {
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--rule);
  background-color: var(--linen);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.page-hero img {
  width: 100%;
  max-width: 320px;
  justify-self: end;
}

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roast);
  background-color: var(--sage-pale);
  border: 1px dashed var(--sage);
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.prose {
  padding: 46px 0 56px;
  max-width: 78ch;
}

.prose h2 {
  margin-top: 34px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin-top: 22px;
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--roast-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose p {
  font-size: 0.97rem;
  color: var(--roast-soft);
}

.prose__aside {
  margin: 26px 0;
  padding: 20px 22px;
  background-color: var(--sage-pale);
  border-left: 5px solid var(--sage);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.prose__aside p:last-child {
  margin-bottom: 0;
}

.contact-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 0;
  padding: 0;
}

.contact-card {
  padding: 20px;
  background-color: #FFFCF6;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid,
  .archive__head,
  .craft-ledger__grid,
  .heritage__grid,
  .page-hero__grid,
  .cabinet__panel,
  .invitation__card {
    grid-template-columns: 1fr;
  }

  .colophon__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero img {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-block a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .sub-rail__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px 6px;
  }

  .sub-rail__label {
    flex: 0 0 auto;
  }

  .sub-rail a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .shell,
  .masthead__inner,
  .sub-rail__inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cabinet__steps {
    grid-template-columns: 1fr;
  }

  .ledger-cols {
    columns: 1;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-ledger {
    grid-template-columns: 1fr;
  }

  .colophon__grid {
    grid-template-columns: 1fr;
  }

  .prefs-card {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .brandmark__name {
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 38px;
  }
}

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

  .btn,
  .chip,
  .cabinet__option {
    transition: none;
  }
}
