:root {
  --paper: #fbf7f2;
  --wine: #5a1022;
  --wine-soft: #7c3243;
  --rose: #eadcdf;
  --ink: #211a1c;
  --muted: #786b6e;
  --line: #dfcfd1;
  --sage: #8d9783;
  --max: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--rose); color: var(--wine); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}

/* HEADER */
.site-header {
  width: 100%;
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 5.8%;
  position: relative;
  z-index: 20;
}

.brand {
  position: relative;
  display: block;
  justify-self: start;
  width: 270px;
  height: 72px;
  overflow: hidden;
}

.brand img {
  position: absolute;
  width: 420px;
  max-width: none;
  height: auto;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a {
  color: var(--wine);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--wine);
  transition: right 0.25s ease;
}

.desktop-nav a:hover::after { right: 0; }

.header-mark {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-mark span {
  display: block;
  width: 1px;
  height: 44px;
  background: #b87988;
}

.header-mark img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 1px;
  background: var(--wine);
  margin: 7px 0;
  transition: transform 0.25s ease;
}

.menu-button.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 78px 0 0;
  z-index: 18;
  background: var(--paper);
  padding: 42px 7%;
  flex-direction: column;
  gap: 26px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  color: var(--wine);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

/* HERO */
.hero {
  min-height: 365px;
  height: 44vh;
  max-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #e1c8cd;
}

.hero-name-wrap {
  margin-left: 9%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.hero-line {
  width: 1px;
  min-height: 132px;
  background: #c46d7d;
}

.hero h1 {
  margin: 0;
  color: var(--wine);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero-a {
  position: absolute;
  width: min(430px, 32vw);
  right: -3.5%;
  top: 50%;
  transform: translateY(-49%);
  opacity: 0.11;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}

/* HOME WRITINGS */
.home-writings {
  width: min(var(--max), 88%);
  margin: 0 auto;
  padding: 72px 0 112px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--wine);
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
}

.section-head h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.05;
}

.section-intro {
  max-width: 625px;
  margin: 20px 0 0;
  color: var(--muted);
}

.section-head-right {
  max-width: 260px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

.section-head-right a {
  display: inline-block;
  margin-top: 9px;
  color: var(--wine);
  border-bottom: 1px solid #c6919c;
}

.writing-list { border-top: 1px solid var(--line); }

.writing-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.writing-no {
  color: var(--wine-soft);
  font-family: "Lora", Georgia, serif;
  font-size: 15px;
  padding-top: 7px;
}

.writing-main h3 {
  margin: 0 0 11px;
  max-width: 790px;
  color: var(--wine);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(27px, 3vw, 41px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.writing-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.writing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.writing-actions a:first-child {
  color: var(--wine);
  font-weight: 500;
}

.writing-actions .external { color: var(--muted); }
.writing-actions a:hover { color: var(--wine); }

.more-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 30px;
}

.more-link {
  color: var(--wine);
  font-size: 13px;
  border-bottom: 1px solid #c6919c;
}

.empty-state {
  padding: 36px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* FOOTER */
.site-footer {
  min-height: 145px;
  border-top: 1px solid var(--line);
  padding: 28px 5.8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-brand {
  position: relative;
  display: block;
  width: 230px;
  height: 62px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-brand img {
  position: absolute;
  width: 360px;
  max-width: none;
  height: auto;
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--wine);
  font-size: 12px;
}

.footer-divider {
  height: 25px;
  width: 1px;
  background: var(--line);
}

/* LIST PAGE */
.inner-header { border-bottom: 1px solid var(--line); }

.page-shell {
  width: min(1080px, 88%);
  margin: 0 auto;
}

.page-hero { padding: 100px 0 64px; }

.page-hero h1 {
  font-size: clamp(52px, 6vw, 82px);
  line-height: 1;
}

.page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
}

.page-list { padding-bottom: 110px; }
.page-list .writing-row { grid-template-columns: 72px minmax(0, 1fr) auto; }

/* ARTICLE */
.article-shell {
  width: min(820px, 88%);
  margin: 0 auto;
}

.article-header { padding: 88px 0 46px; }

.article-kicker {
  color: var(--wine);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.article-header h1 {
  margin-top: 19px;
  font-size: clamp(43px, 5.5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

.article-lead {
  margin: 0 0 46px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--wine-soft);
  font-family: "Lora", Georgia, serif;
  font-size: 23px;
  line-height: 1.5;
}

.article-body {
  color: #342b2d;
  font-size: 17px;
}

.article-body p { margin: 0 0 22px; }

.article-body h2 {
  margin: 52px 0 16px;
  color: var(--wine);
  font-family: "Lora", Georgia, serif;
  font-size: 33px;
  line-height: 1.2;
  font-weight: 400;
}

.article-body ol,
.article-body ul {
  margin: 0 0 25px;
  padding-left: 22px;
}

.article-body li { margin-bottom: 12px; }

.code {
  margin: 18px 0 24px;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #f5eeee;
  color: #4c1b27;
  font: 14px/1.65 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.note {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--wine);
  background: #f6eff0;
  color: #55464a;
}

.source-box {
  margin: 60px 0 30px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

.source-box a {
  color: var(--wine);
  font-weight: 500;
  border-bottom: 1px solid #c6919c;
}

.article-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 95px;
  font-size: 13px;
}

.article-bottom a { color: var(--wine); }
.small-note { color: var(--muted); font-size: 13px; }

/* TABLET + MOBILE */
@media (max-width: 820px) {
  .site-header {
    height: 78px;
    grid-template-columns: 1fr auto;
    padding: 0 7%;
  }

  .brand {
    width: 220px;
    height: 60px;
  }

  .brand img {
    width: 350px;
    left: -67px;
  }

  .desktop-nav,
  .header-mark { display: none; }

  .menu-button { display: block; }

  .hero {
    min-height: 320px;
    height: 42vh;
    max-height: 390px;
  }

  .hero-name-wrap {
    margin-left: 7%;
    gap: 20px;
  }

  .hero-line { min-height: 108px; }

  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .hero-a {
    width: 58vw;
    right: -18%;
    opacity: 0.09;
  }

  .home-writings {
    width: 86%;
    padding: 72px 0 85px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head-right {
    text-align: left;
    max-width: 600px;
  }

  .writing-row,
  .page-list .writing-row {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 30px 0;
  }

  .writing-no { padding: 0; }

  .writing-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px 18px;
    padding-top: 5px;
  }

  .site-footer {
    padding: 30px 7%;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand {
    width: 205px;
    height: 56px;
  }

  .footer-brand img {
    width: 320px;
    left: -61px;
  }

  .footer-links { flex-wrap: wrap; }
  .page-shell,
  .article-shell { width: 86%; }
  .page-hero { padding: 70px 0 45px; }
  .article-header { padding: 66px 0 38px; }
  .article-lead { font-size: 21px; }
  .article-body { font-size: 16px; }
  .article-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .hero {
    min-height: 290px;
    height: 38vh;
  }

  .hero-name-wrap { gap: 15px; }
  .hero-line { min-height: 100px; }
  .hero h1 { font-size: 38px; }

  .hero-a {
    width: 72vw;
    right: -26%;
  }

  .section-head h2 { font-size: 40px; }
  .writing-main h3 { font-size: 28px; }
  .footer-divider { display: none; }
}
.site-header {
  background-color: var(--paper);
  isolation: isolate;
}

.site-header .brand img,
.site-header .header-mark img {
  mix-blend-mode: multiply;
}