@font-face {
  font-family: "Rena Garamond";
  src: url("fonts/eb-garamond-roman.fcc26eb8aba7.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Rena Garamond";
  src: url("fonts/eb-garamond-italic.3b44912009d9.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Rena Mono";
  src: url("fonts/jetbrains-mono-roman.1a5f20725a57.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f7f1e7;
  --paper-deep: #eee3d2;
  --paper-light: #fffaf2;
  --ink: #28211d;
  --ink-soft: #574a42;
  --wine: #823c38;
  --wine-dark: #5f2927;
  --gold: #b4874e;
  --line: #d9c9b3;
  --shadow: 0 24px 60px -38px rgb(45 29 22 / 58%);
  --max: 1120px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Rena Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgb(180 135 78 / 9%), transparent 22rem),
    var(--paper);
}

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

a {
  color: var(--wine-dark);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 500;
  line-height: 1.08;
}

button,
input,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--wine-dark);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--wine);
  font-family: "Rena Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgb(130 60 56 / 15%);
  background: rgb(247 241 231 / 91%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(var(--max), calc(100% - 3rem));
  min-height: 76px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--wine);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.desktop-nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-family: "Rena Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 0.4rem 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--wine);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  color: var(--wine-dark);
  font-family: "Rena Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: 2.1rem;
  right: 0;
  display: grid;
  width: 13rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  gap: 0.35rem;
}

.mobile-nav nav a {
  padding: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  place-items: center;
  overflow: hidden;
  padding: 7rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(180 135 78 / 16%) 50%, transparent 50.1%),
    radial-gradient(ellipse at 50% 10%, rgb(180 135 78 / 19%), transparent 55%);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgb(130 60 56 / 5%);
  font-size: clamp(26rem, 58vw, 48rem);
  font-style: italic;
  line-height: 0.65;
  pointer-events: none;
  transform: translate(-51%, -48%);
  user-select: none;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(4.1rem, 10vw, 7.5rem);
  letter-spacing: -0.045em;
}

.tagline {
  margin: 0.3rem 0 0;
  color: var(--wine);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
}

.hero-intro {
  width: min(620px, 100%);
  margin: 1.6rem auto 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-intro p {
  margin: 0;
}

.rule {
  width: 4rem;
  height: 1px;
  margin: 2rem auto;
  background: var(--gold);
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.75rem 1.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentcolor;
  border-radius: 2px;
  font-family: "Rena Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-solid {
  color: var(--paper-light);
  border-color: var(--wine);
  background: var(--wine);
}

.button-solid:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.welcome {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.welcome::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 3.5rem;
  background: var(--gold);
  content: "";
}

.welcome-title {
  margin: 1rem 0 1.4rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-style: italic;
}

.welcome p:not(.eyebrow, .signature) {
  color: var(--ink-soft);
}

.signature {
  margin: 1.8rem 0 0;
  color: var(--wine);
  font-size: 1.8rem;
  font-style: italic;
}

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: -0.035em;
}

.work-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card {
  position: relative;
  min-height: 330px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgb(255 250 242 / 56%);
  text-align: center;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.work-card .roman {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 3.2rem;
  font-style: italic;
}

.work-card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.work-card p {
  color: var(--ink-soft);
}

.latest {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: left;
}

.text-link,
.back-link {
  color: var(--wine-dark);
  font-family: "Rena Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-transform: uppercase;
}

.post-card {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 0 0 transparent;
  flex-direction: column;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.post-visual {
  position: relative;
  display: grid;
  height: 220px;
  place-items: center;
  overflow: hidden;
  color: rgb(255 250 242 / 62%);
  background:
    linear-gradient(145deg, rgb(180 135 78 / 72%), rgb(95 41 39 / 92%)),
    var(--wine);
  text-decoration: none;
}

.post-card:nth-child(2n) .post-visual {
  background: linear-gradient(145deg, #7d845a, #3e4e37);
}

.post-card:nth-child(3n) .post-visual {
  background: linear-gradient(145deg, #a66e4d, #61382d);
}

.post-visual::after {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgb(255 255 255 / 28%);
  content: "";
}

.post-visual span {
  font-size: 5rem;
  font-style: italic;
}

.post-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-card:hover .post-visual img {
  transform: scale(1.035);
}

.post-copy {
  display: flex;
  padding: 1.7rem;
  flex: 1;
  flex-direction: column;
}

.post-copy h2,
.post-copy h3 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.post-copy h2 a,
.post-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  flex: 1;
}

.contact-section {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  overflow: hidden;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 80% 20%, rgb(180 135 78 / 18%), transparent 22rem),
    var(--ink);
  text-align: center;
}

.contact-section::after {
  position: absolute;
  right: -2rem;
  bottom: -8rem;
  color: rgb(255 255 255 / 3%);
  content: "&";
  font-size: 30rem;
  font-style: italic;
  line-height: 1;
}

.contact-inner {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-inline: auto;
}

.contact-section .eyebrow {
  color: #d8af75;
}

.contact-section p:not(.eyebrow) {
  margin: 1.4rem auto 2rem;
  color: #ddd2c5;
}

.button-light {
  color: var(--paper-light);
}

.button-light:hover {
  color: var(--ink);
  background: var(--paper-light);
}

.site-footer {
  display: grid;
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  padding: 3rem 0;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 3rem;
}

.footer-brand {
  display: inline-block;
}

.site-footer p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-style: italic;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer small {
  color: #8b7d70;
  font-family: "Rena Mono", monospace;
  font-size: 0.62rem;
  grid-column: 1 / -1;
}

.page-hero {
  padding: clamp(5rem, 11vw, 9rem) 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(180 135 78 / 20%), transparent 60%),
    var(--paper);
  text-align: center;
}

.page-hero .lead {
  width: min(650px, 100%);
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.page-hero .lead p {
  margin: 0;
}

.archive-section {
  background: var(--paper-deep);
}

.archive-grid {
  row-gap: 2.5rem;
}

.story-hero {
  display: grid;
  width: min(1320px, calc(100% - 3rem));
  min-height: 650px;
  margin: 3rem auto 0;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--wine-dark);
  grid-template-columns: 1.04fr 0.96fr;
}

.story-heading {
  display: flex;
  padding: clamp(2.5rem, 7vw, 6rem);
  justify-content: center;
  flex-direction: column;
}

.story-heading .eyebrow {
  color: #e1bd89;
}

.story-heading h1 {
  margin: 0.3rem 0 1.2rem;
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: -0.045em;
}

.story-heading .lead {
  color: #eadfd3;
  font-size: 1.2rem;
}

.article-meta {
  display: flex;
  margin-top: 1.2rem;
  color: #d3c1b0;
  font-family: "Rena Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  gap: 0.65rem;
  text-transform: uppercase;
}

.story-image,
.story-image img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.story-image img {
  object-fit: cover;
}

.story-hero-text {
  position: relative;
  grid-template-columns: 1fr 0.42fr;
}

.story-monogram {
  display: grid;
  overflow: hidden;
  place-items: center;
  color: rgb(255 250 242 / 9%);
  background: linear-gradient(160deg, var(--wine), var(--wine-dark));
  font-size: 25rem;
  font-style: italic;
  line-height: 1;
}

.article-layout,
.legal-content {
  width: min(760px, calc(100% - 3rem));
  margin: clamp(4rem, 8vw, 7rem) auto;
}

.article-body {
  color: #3e332d;
  font-size: 1.08rem;
}

.article-body > .content-block:first-child > p:first-of-type::first-letter {
  float: left;
  margin: 0.03em 0.12em 0 0;
  color: var(--wine);
  font-size: 4.7rem;
  line-height: 0.82;
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2,
.legal-content h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.content-block h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.55rem;
}

.content-block blockquote,
.quote-block blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  color: var(--wine-dark);
  font-size: 1.45rem;
  font-style: italic;
}

.summary-block,
.callout,
.facts {
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.facts dt {
  color: var(--wine);
  font-family: "Rena Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.3rem 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery figure,
.media-block {
  margin: 0;
}

.media-block figcaption,
.gallery figcaption,
.quote-block figcaption {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-style: italic;
}

.faq-block details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  cursor: pointer;
  font-weight: 700;
}

.tags {
  display: flex;
  margin: 3rem 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Rena Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-hero {
  padding-bottom: 5rem;
}

.legal-content {
  color: var(--ink-soft);
}

.legal-content h2 {
  font-size: 1.8rem;
}

.empty-state {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  grid-column: 1 / -1;
  text-align: center;
}

.reveal {
  animation: rise 760ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .work-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }

  .post-card {
    display: grid;
    grid-template-columns: minmax(160px, 0.42fr) 1fr;
  }

  .post-visual {
    height: 100%;
    min-height: 230px;
  }

  .story-hero,
  .story-hero-text {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-image {
    max-height: 520px;
  }

  .story-monogram {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    font-size: 17px;
  }

  .wrap,
  .narrow,
  .header-inner,
  .site-footer,
  .article-layout,
  .legal-content,
  .story-hero {
    width: min(100% - 2rem, var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 1.32rem;
  }

  .home-hero {
    min-height: calc(100svh - 66px);
    padding-block: 5.5rem;
  }

  .home-hero h1 {
    font-size: clamp(3.6rem, 20vw, 5rem);
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .post-card {
    display: flex;
  }

  .post-visual {
    height: 200px;
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .site-footer small {
    grid-column: auto;
  }

  .facts,
  .gallery {
    grid-template-columns: 1fr;
  }

  .story-heading {
    padding: 2.5rem 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
