@font-face {
  font-family: Cormorant Garamond;
  src: url("cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Source Sans 3;
  src: url("source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ground: #f4f0e6;
  --surface: #ede7da;
  --panel: #f9f5eb;
  --ink: #142d23;
  --muted: #4d5b51;
  --accent: #1a6541;
  --rule: #cfc6b5;
  --track: #ded5c5;
  --hero: #10291f;
  --nav: #15372a;
  --hero-ink: #faf3e3;
  --hero-muted: #dfd2ba;
  --hero-rule: #5a6751;
  --metal: #d4c4a8;
  --grain-opacity: .26;
  --photo-saturation: 1;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1.0625rem;
  --text-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --text-subhead: clamp(1.55rem, 2.6vw, 2rem);
  --text-heading: clamp(2.6rem, 5.4vw, 4.5rem);
  --text-title: clamp(3.5rem, 7vw, 7rem);
  --serif: Cormorant Garamond, Georgia, serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  color-scheme: light;
}

[data-theme="mid"] {
  --ground: #c4b8a8;
  --surface: #d2c7b7;
  --panel: #e1d6c5;
  --ink: #17291f;
  --muted: #3b453b;
  --accent: #145635;
  --rule: #a69a87;
  --track: #baae9a;
  --hero: #254334;
  --nav: #294838;
  --hero-rule: #6f795c;
  --grain-opacity: .15;
}

[data-theme="grey"] {
  color-scheme: dark;
  --ground: #2a2a2a;
  --surface: #333735;
  --panel: #353a37;
  --ink: #f1efea;
  --muted: #c2c8c2;
  --accent: #a8c4ad;
  --rule: #555e58;
  --track: #535d56;
  --hero: #303934;
  --nav: #383e3a;
  --hero-ink: #f1efea;
  --hero-muted: #ccd0ca;
  --hero-rule: #687870;
  --metal: #c9c6c0;
  --grain-opacity: 0;
  --photo-saturation: .32;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0b0f0d;
  --surface: #11211a;
  --panel: #14271e;
  --ink: #f4f0e6;
  --muted: #b8c6bb;
  --accent: #88cba1;
  --rule: #374c3e;
  --track: #32483b;
  --hero: #0a241c;
  --nav: #102b21;
  --grain-opacity: 0;
}

[data-theme="monochrome"] {
  color-scheme: dark;
  --ground: #101010;
  --surface: #1d1d1d;
  --panel: #232323;
  --ink: #f4f2ec;
  --muted: #c9c6c0;
  --accent: #e3e0d9;
  --rule: #4c4c4c;
  --track: #515151;
  --hero: #171717;
  --nav: #222;
  --hero-ink: #f4f2ec;
  --hero-muted: #d0cdc7;
  --hero-rule: #656565;
  --metal: #c9c6c0;
  --grain-opacity: 0;
  --photo-saturation: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: var(--space-5); }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--ground);
  color: var(--ink);
  font: var(--text-base)/1.55 "Source Sans 3", system-ui, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(64rem, 100%);
  z-index: -1;
  background-image: image-set(url("leather.avif") type("image/avif"), url("leather.webp") type("image/webp"));
  background-size: 240px;
  opacity: var(--grain-opacity);
  pointer-events: none;
}
:is([data-theme="grey"], [data-theme="dark"], [data-theme="monochrome"]) body::before { content: none; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
p, h1, h2, h3, ul, ol { margin: 0; }
h1, h2, h3, .wordmark, .footer-name {
  font-family: var(--serif);
  font-weight: 600;
}
h1 { font-size: var(--text-title); line-height: .9; letter-spacing: -.055em; }
h2 { font-size: var(--text-heading); line-height: .94; letter-spacing: -.035em; }
h3 { font-size: var(--text-subhead); line-height: 1; letter-spacing: -.02em; }
.shell { width: min(75rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  inset: var(--space-2) auto auto var(--space-2);
  transform: translateY(-160%);
  background: var(--panel);
  padding: var(--space-2) var(--space-4);
}
.skip:focus { transform: none; }

.masthead {
  margin-block: clamp(1rem, 3vw, 2rem) var(--space-5);
  color: var(--hero-ink);
  background: var(--nav);
  border: 1px solid var(--hero-rule);
  border-radius: 7px 7px 3px 3px;
  overflow: hidden;
}
.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  min-height: 4.375rem;
  padding-inline: clamp(.75rem, 2.5vw, 2rem);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: start;
  font-size: var(--text-subhead);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.monogram {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--metal);
  border-radius: 50%;
  color: var(--metal);
  font-size: 1.5rem;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  font-size: var(--text-sm);
}
.masthead nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration-color: transparent;
}
.masthead nav a:hover, .footer a:hover { text-decoration-color: currentColor; }
.appearance {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.appearance label { font-size: var(--text-xs); color: var(--hero-muted); }
.appearance select {
  max-width: 100%;
  min-height: 2.75rem;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--hero-rule);
  border-radius: 3px;
  background: var(--nav);
  color: var(--hero-ink);
  font: 600 var(--text-sm)/1.2 "Source Sans 3", system-ui, sans-serif;
  color-scheme: dark;
}
.masthead-seam {
  height: .45rem;
  border-top: 1px solid var(--hero-rule);
  background: var(--nav) center / 600px auto repeat-x;
  background-image: image-set(url("stitch-600.avif") type("image/avif") 1x, url("stitch-1200.avif") type("image/avif") 2x, url("stitch-600.webp") type("image/webp") 1x, url("stitch-1200.webp") type("image/webp") 2x);
  filter: saturate(var(--photo-saturation));
}

.hero {
  display: grid;
  grid-template-columns: 54fr 46fr;
  color: var(--hero-ink);
  background: var(--hero);
  border: 1px solid var(--hero-rule);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 12px 30px #0b0b0b24;
}
.hero-body {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.eyebrow {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { margin-bottom: var(--space-5); color: var(--hero-muted); }
.hero-lede {
  max-width: 30ch;
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--hero-muted);
}
.hero-photo {
  display: block;
  position: relative;
  min-height: 29rem;
  border-left: 1px solid var(--hero-rule);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--photo-saturation));
}
.entrance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-6);
  gap: var(--space-2) var(--space-4);
}
.entrance button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  color: var(--hero);
  background: var(--metal);
  border: 1px solid var(--metal);
  border-radius: 3px;
  font: 650 var(--text-sm)/1.25 "Source Sans 3", system-ui, sans-serif;
}
.entrance small { color: var(--hero-muted); font-size: var(--text-xs); }

.section { margin-top: clamp(3.5rem, 7vw, var(--space-9)); }
.section h2 { margin-top: var(--space-3); }
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: clamp(2rem, 5vw, var(--space-8));
  border-bottom: 1px solid var(--rule);
}
.prose { max-width: 55ch; font-size: var(--text-lead); }
.prose p + p { margin-top: var(--space-4); color: var(--muted); }
.membership-grid, .showcase {
  display: grid;
  margin-top: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.membership-grid { grid-template-columns: repeat(4, 1fr); padding: 0; list-style: none; }
.showcase { grid-template-columns: 1fr 1fr; background: var(--surface); }
:is(.membership-grid, .showcase) > * { padding: clamp(1.25rem, 3vw, var(--space-6)); }
:is(.membership-grid, .showcase) > * + * { border-left: 1px solid var(--rule); }
:is(.membership-grid, .showcase) p { color: var(--muted); margin-top: var(--space-3); max-width: 42ch; }

.ledger-heading {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: end;
  justify-content: space-between;
}
.example {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 650;
}
.ledger-panel {
  margin-top: var(--space-6);
  padding: clamp(1rem, 3vw, var(--space-6));
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.ledger-intro { color: var(--muted); margin-bottom: var(--space-5); }
.ledger-list { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding-block: var(--space-2);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  width: 1.25rem;
  color: var(--accent);
  text-align: center;
}
details[open] > summary::after { content: "−"; }
summary small { color: var(--muted); font-size: var(--text-xs); font-weight: 400; text-align: right; }
.ledger-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-6);
  padding: var(--space-3) 0 var(--space-5);
}
.ledger-content p { color: var(--muted); max-width: 42ch; }
.ledger-content p strong { color: var(--ink); }
.chart { display: grid; gap: var(--space-2); list-style: none; padding: 0; }
.chart li { display: grid; grid-template-columns: 3.75rem 1fr 3rem; align-items: center; gap: var(--space-2); }
.chart strong { text-align: right; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: .875rem; }
meter::-webkit-meter-bar { background: var(--track); border: 0; border-radius: 2px; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 2px; }
meter::-moz-meter-bar { background: var(--accent); border-radius: 2px; }
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
  padding-block: var(--space-5) var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--text-sm);
}
.footer-name { color: var(--ink); font-size: 1.5rem; }
.footer a { margin-left: auto; }

@media (max-width: 820px) {
  .masthead-row { column-gap: var(--space-3); padding-inline: var(--space-4); }
  .masthead nav { gap: var(--space-3); }
  .hero-photo { min-height: 24rem; }
  .membership-grid { grid-template-columns: 1fr 1fr; }
  .membership-grid > :nth-child(3) { border-left: 0; }
  .membership-grid > :nth-child(n+3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 740px) {
  .masthead-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-2); padding: var(--space-2) var(--space-3) 0; }
  .wordmark { gap: var(--space-2); font-size: 1.25rem; }
  .monogram { width: 1.5rem; height: 1.5rem; font-size: 1.125rem; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); border-top: 1px solid var(--hero-rule); }
}

@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; }
  .hero-body { padding: var(--space-6) var(--space-5); }
  .hero .eyebrow { margin-bottom: var(--space-4); }
  .hero-photo { min-height: 0; aspect-ratio: 2 / 1; border-left: 0; border-top: 1px solid var(--hero-rule); }
  .editorial, .ledger-content { grid-template-columns: 1fr; gap: var(--space-4); }
  :is(.membership-grid, .showcase) h3 { font-size: 1.375rem; }
  .footer { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--space-4); }
  .footer a { grid-area: 1 / 2 / 3 / 3; }
}

@media (max-width: 380px) {
  .monogram { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .showcase > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}
