:root {
  color-scheme: light;
  --paper: #faf2e8;
  --ink: #201b16;
  --muted: #554b41;
  --accent: #a6381e;
  --rule: #d8cabd;
  --dark: #282923;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; object-fit: cover; }
p { margin: 0 0 .75em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .99; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 8vw, 1180px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .6rem; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; font: 2rem/.95 var(--serif); text-decoration: none; }
.wordmark img { width: .88em; height: auto; flex: none; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .88rem; }
.desktop-nav a { text-decoration: none; white-space: nowrap; padding-block: .45rem; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--accent); text-decoration: underline; }
.lang { font-weight: 700; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(470px, 41vw, 670px); max-width: 1560px; margin-inline: auto; width: calc(100% - 36px); overflow: hidden; }
.hero-picture { position: absolute; z-index: -2; inset: 0; }
.hero-picture img { height: 100%; object-position: center 55%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #f4dfc9a8, #f4dfc95c 32%, transparent 48%); }
.hero-inner { padding: clamp(30px, 6vw, 100px); }
.hero h1 { font-size: clamp(4.1rem, 8.3vw, 8.5rem); letter-spacing: -.045em; }
.hero p { max-width: 27ch; margin: .65rem 0 1.3rem; font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.33; }
.button { display: inline-flex; gap: .6em; align-items: center; padding: .7em 1.02em; color: #fff5e9; background: var(--accent); border-radius: 4px; text-decoration: none; font-size: .92rem; }
.button:hover { background: #7f2915; }

.home-section { padding-block: clamp(24px, 3.4vw, 50px); scroll-margin-top: 1rem; }
.home-section + .home-section { border-top: 1px solid var(--rule); }
.section-heading { display: flex; gap: 1.25rem; align-items: center; font-size: clamp(2.65rem, 4.5vw, 4.4rem); margin-bottom: clamp(14px, 2.2vw, 30px); }
.section-heading::after { content: ""; flex-grow: 1; border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1fr .87fr; gap: clamp(1.35rem, 4vw, 3.8rem); align-items: center; }
.split img { aspect-ratio: 2.45; }
.lead-card { text-decoration: none; }
.lead-card h3 { max-width: 15ch; margin: .1em 0 .25em; font-size: clamp(2.65rem, 5.1vw, 5rem); }
.lead-card:hover h3, .entry-list a:hover { color: var(--accent); }
.theme { color: var(--accent); margin: 0 0 .35em; font-size: .85rem; font-weight: 700; }
.text-link { font-weight: 600; color: var(--accent); text-decoration: underline; }
.row-heading { font-size: clamp(1.9rem, 3vw, 2.7rem); margin: 1.3rem 0 .3rem; }
.entry-list { border-top: 1px solid var(--rule); }
.entry-list li { border-bottom: 1px solid var(--rule); }
.entry-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .37em .3em; font: clamp(1.28rem, 2.25vw, 1.9rem)/1.14 var(--serif); text-decoration: none; }
.entry-list span { color: var(--accent); font: 1.15rem/1 var(--sans); }
.view-all { display: inline-block; margin-top: .85rem; }
.about-space { grid-template-columns: .72fr 1fr; }
.section-copy { max-width: 49ch; }
.section-copy h3 { margin-bottom: .25em; font-size: clamp(2rem, 3vw, 3rem); }
.section-copy p:last-child { margin-bottom: 0; }

.contact-section { margin-top: clamp(20px, 4vw, 65px); padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.contact-layout { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.contact-intro h3 { margin-bottom: .25em; font-size: clamp(3rem, 5.8vw, 5.8rem); }
.contact-intro p { max-width: 38ch; color: var(--muted); }
.contact-intro p + p { margin-top: 1.5rem; }
.contact-intro a { color: var(--accent); font-weight: 700; }
.contact-form label { display: block; margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .035em; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: .8rem; padding: .78rem .9rem; border: 1px solid #9f9589; border-radius: 4px; color: var(--ink); background: #fffaf4; font: inherit; }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.contact-submit-row { display: flex; align-items: center; gap: 1rem; }
.contact-submit-row button { padding: .86rem 1.25rem; border: 1px solid var(--accent); border-radius: 4px; color: #fff; background: var(--accent); font: 700 .86rem/1 var(--sans); cursor: pointer; }
.contact-submit-row button:hover { background: #7f2915; border-color: #7f2915; }
.contact-submit-row button:disabled { cursor: wait; opacity: .65; }
.contact-submit-row span { color: var(--muted); font-size: .84rem; }

.site-footer { color: var(--paper); background: var(--dark); }
.site-footer a:focus-visible { outline-color: var(--paper); }
.footer-subscribe { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: 1.6rem; border-bottom: 1px solid #6f6b62; }
.footer-subscribe h2 { margin-bottom: .08em; font-size: clamp(2rem, 3.2vw, 3rem); }
.footer-subscribe p { margin: 0; color: #d8d0c4; font: italic clamp(1.05rem, 1.7vw, 1.35rem)/1.2 var(--serif); }
.footer-subscribe input { width: 100%; min-width: 0; padding: .82rem .9rem; border: 1px solid #8d877c; border-radius: 4px; color: var(--paper); background: #20211d; font: inherit; }
.footer-subscribe input:focus { outline: 2px solid #e4b8a5; outline-offset: 2px; border-color: transparent; }
.footer-subscribe button { padding: .83rem 1.05rem; border: 1px solid var(--paper); border-radius: 4px; color: var(--dark); background: var(--paper); font: 700 .86rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.footer-subscribe button:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-subscribe button:disabled { cursor: wait; opacity: .65; }
.footer-subscribe-form .form-status { position: absolute; }
.footer-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.form-status { min-height: 1.5em; margin: .75rem 0 0 !important; font-size: .82rem; }
.form-status[data-state="success"] { color: #39755e; }
.site-footer .form-status[data-state="success"] { color: #a9d9c5; }
.form-status[data-state="error"] { color: #ffb4a3; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.15rem 1.35rem; font-size: .82rem; }
.footer-brand { font: 2rem/1 var(--serif); text-decoration: none; }
.footer-closing { margin: 0; color: #d8d0c4; font: italic 1.25rem/1.1 var(--serif); }

.journal { padding-block: clamp(30px, 6vw, 84px) clamp(22px, 4vw, 54px); }
.journal-header { border-bottom: 1px solid var(--rule); padding-bottom: clamp(1rem, 2.5vw, 2rem); margin-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.journal-header h1, .article h1 { font-size: clamp(4rem, 8vw, 7.4rem); letter-spacing: -.025em; }
.journal-header p { margin: .2em 0 0; font-size: clamp(1rem, 1.65vw, 1.3rem); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.45rem) clamp(.9rem, 2.7vw, 2.35rem); }
.journal-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.journal-card img { aspect-ratio: 1.2; margin-bottom: .8rem; }
.journal-card h2 { margin-bottom: .24em; font-size: clamp(2.1rem, 4vw, 3.55rem); }
.journal-card:hover h2 { color: var(--accent); }
.card-summary { color: var(--muted); line-height: 1.35; margin-bottom: .8rem; }
.card-arrow { display: block; margin-top: auto; padding-top: .22rem; border-top: 1px solid var(--rule); color: var(--accent); font-size: 1.24rem; }

.article { max-width: 900px; padding-block: clamp(30px, 6vw, 80px) 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.8rem; }
.article h1 { max-width: 14ch; }
.article-summary { margin: .45rem 0 1.4rem; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--muted); }
.article-image { aspect-ratio: 1.9; }
.article-copy { max-width: 64ch; margin: clamp(1.5rem, 4vw, 3rem) auto 0; font-size: 1.1rem; }
.article-copy p { margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .hero { min-height: 410px; }
  .hero-inner { padding-inline: 5vw; }
  .hero h1 { font-size: clamp(4rem, 9vw, 5.25rem); }
  .hero::after { background: linear-gradient(90deg, #f3dfc9df, #f3dfc9a8 36%, transparent 58%); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 0; flex-wrap: wrap; padding-block: .55rem; gap: .15rem 1rem; }
  .desktop-nav { flex-wrap: wrap; font-size: .78rem; gap: clamp(.7rem, 3vw, 1.25rem); }
  .hero { display: flex; align-items: flex-start; flex-direction: column; width: 100%; min-height: 0; background: #ead2b9; }
  .hero::after { display: none; }
  .hero-inner { padding: 1.15rem 18px 1.25rem; width: min(100%, 35rem); }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 5.6rem); }
  .hero-picture { position: static; z-index: auto; order: 1; width: 100%; height: clamp(240px, 66vw, 430px); }
  .hero-picture img { object-position: center 52%; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .lead-card h3 { max-width: 22ch; }
  .article-image { aspect-ratio: 1.55; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .footer-subscribe { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

@media (max-width: 495px) {
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-card img { aspect-ratio: 1.55; }
  .contact-submit-row { align-items: flex-start; flex-direction: column; }
  .footer-main { flex-wrap: wrap; }
  .footer-field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-subscribe button { width: 100%; }
  .journal-header h1, .article h1 { font-size: clamp(2.75rem, 11vw, 4rem); overflow-wrap: anywhere; }
}

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

.profile .article-summary { max-width: 60ch; }
.profile .article-image { aspect-ratio: 4 / 3; height: auto; }
.profile blockquote {
  margin: 1.6rem 0;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--accent);
  font: clamp(1.7rem, 3vw, 2.2rem)/1.15 var(--serif);
}


.profile .author-portrait {
  width: min(100%, 320px);
  aspect-ratio: 1173 / 1341;
  margin-inline: auto;
}


.menu-toggle, .menu-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle { display: none; }
.menu-toggle:focus-visible, .menu-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.menu-icon {
  width: 20px;
  height: 14px;
  border-block: 2px solid currentColor;
  display: grid;
  align-items: center;
}
.menu-icon::before { content: ""; border-top: 2px solid currentColor; }
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 22rem);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) 1.25rem;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu::backdrop { background: rgb(32 27 22 / .5); }
html:has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mobile-menu-header h2 { font-size: 2.25rem; }
.menu-close { font: 1.75rem/1 var(--sans); }
.mobile-menu nav { display: grid; border-top: 1px solid var(--rule); }
.mobile-menu nav a {
  display: block;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--accent); text-decoration: underline; }

@media (max-width: 768px) {
  .menu-toggle:not([hidden]) { display: grid; place-items: center; }
  .header-inner.has-mobile-menu .desktop-nav { display: none; }
}

.article-image-portrait { width: min(100%, 34rem); height: auto; aspect-ratio: auto; margin-inline: auto; }
.article-inline-image { height: auto; margin: 1.5rem 0; }

.lead-card .portrait-thumbnail { aspect-ratio: 16 / 9; }
.portrait-thumbnail { object-position: center 10%; }

/* Give the social icons their own visual rhythm in the footer. */
.social-links { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-shrink: 0; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: inherit; }
.social-icon svg { display: block; width: 1.25rem; height: 1.25rem; }
@media (max-width: 768px) { .social-links { justify-content: flex-start; gap: 1rem; } }
