:root {
  --paper: #f3e6d0;
  --paper-2: #e8d4b5;
  --ink: #2a1a10;
  --muted: #6a5340;
  --rule: #d2b48c;
  --clay: #c46a3a;
  --clay-2: #8c3d1c;
  --moss: #3d4f2f;
  --gold: #d9a15a;
  --white: #fbf4e8;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --col: 70rem;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Source Serif 4", Palatino, Georgia, serif;
  --ui: "Figtree", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 var(--body);
}
body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(196, 106, 58, 0.08), transparent 36%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
::selection { background: #e2c08a; color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-2); }
a:hover { color: var(--moss); }

.wrap {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-left: auto;
  margin-right: auto;
}

.mast {
  position: relative;
  padding: 0 0 22px;
  overflow: hidden;
}
.mast::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--clay-2), var(--gold) 55%, var(--moss));
}
.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.wordmark {
  display: block;
  margin: 10px 0 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-decoration: none;
  animation: paperIn 0.9s ease both;
}
.wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
}
.wordmark:hover { color: var(--clay-2); }
.tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  animation: paperIn 1s ease 0.12s both;
}
.nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  animation: paperIn 1s ease 0.2s both;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 0.28s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--clay-2); }

.bleed {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}
.bleed img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bleed {
  height: min(68vh, 620px);
}
.hero-bleed img {
  object-position: 50% 58%;
  animation: ken 22s ease-in-out alternate infinite;
  transform-origin: 50% 60%;
}
.essay-bleed { height: min(48vh, 440px); margin: 8px 0 0; }

.pic {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--paper-2);
}
.pic img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.pic:hover img { transform: scale(1.04); }
.pic-card { height: 280px; }
.pic-trio { height: 200px; }
.pic-lead { height: min(46vh, 420px); margin: 0 0 8px; }

.hero { margin-top: 26px; margin-bottom: 8px; animation: paperIn 0.8s ease 0.1s both; }
.kicker {
  margin: 16px 0 6px;
  color: var(--clay);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1, .story h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.lede {
  max-width: 44rem;
  font-size: 21px;
  line-height: 1.45;
  font-family: var(--display);
  font-weight: 500;
}
.byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 12px;
}
.hero > p:nth-of-type(4)::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--clay-2);
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-top: 48px;
  margin-bottom: 48px;
}
.card h2, .essay h2, .legal h1, .story h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.essay {
  margin-top: 22px;
  margin-bottom: 56px;
}
.note {
  padding: 22px 24px;
  background: var(--paper-2);
  border-top: 8px solid var(--clay);
  animation: paperIn 0.9s ease 0.18s both;
}
.note h2 { font-size: 22px; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
  margin-bottom: 56px;
}
.trio article { animation: paperIn 0.8s ease both; }
.trio article:nth-child(2) { animation-delay: 0.08s; }
.trio article:nth-child(3) { animation-delay: 0.16s; }
.trio h3 { margin: 10px 0 6px; font-family: var(--display); font-size: 20px; }
.trio p { margin: 0; color: var(--muted); font-size: 15px; }
.trio a { color: inherit; text-decoration: none; }
.trio a:hover h3 { color: var(--clay); }

.more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clay-2);
  border-bottom: 1px solid transparent;
}
.more:hover { border-bottom-color: var(--clay); }

.legal, .story {
  width: min(760px, calc(100% - 2 * var(--pad)));
  margin: 36px auto 80px;
}
.story { width: min(820px, calc(100% - 2 * var(--pad))); }
.legal h1, .page-head h1 { font-family: var(--display); font-size: 36px; }
.legal h2, .story h2 { margin: 28px 0 8px; font-size: 20px; }
.legal ul, .story ul { padding-left: 1.2em; }
.page-head {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin: 36px auto 8px;
}
.page-head h1 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(32px, 5vw, 44px); }

.archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 12px;
  margin-bottom: 64px;
}
.archive article a { color: inherit; text-decoration: none; }
.archive h2 { margin: 8px 0 8px; font-family: var(--display); font-size: 22px; }
.archive p { margin: 0; color: var(--muted); }

.form {
  display: grid;
  gap: 12px;
  margin: 24px 0 8px;
  max-width: 32rem;
}
.form label {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 var(--body);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form button {
  justify-self: start;
  padding: 10px 18px;
  border: 0;
  background: var(--clay-2);
  color: var(--white);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.form button:hover { background: var(--ink); }

.expediente {
  margin-top: 0;
  margin-bottom: 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.55;
}
.expediente h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 700 12px/1.2 var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.expediente p { margin: 0 0 8px; }

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 28px 0 88px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 13px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--clay); }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: 16px var(--pad);
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.45;
}
.cookie.is-on { display: block; }
html.has-cookie { padding-bottom: 92px; }
.cookie-inner {
  width: min(var(--col), 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cookie p { margin: 0; flex: 1 1 18rem; }
.cookie a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie button {
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--white);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.cookie button[data-cookie="all"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.err {
  min-height: 48vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px var(--pad);
}
.err p { color: var(--muted); }

@keyframes paperIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  .grid, .trio, .archive { grid-template-columns: 1fr; }
  .hero-bleed { height: min(48vh, 380px); }
  .pic-card { height: 220px; }
  .hero > p:nth-of-type(4)::first-letter { font-size: 2.6rem; }
}
