:root {
  --clay: #8e4f3c;
  --clay-deep: #6e382d;
  --cream: #f3e8d8;
  --paper: #f8f2e8;
  --ink: #2f201a;
  --muted: #795f53;
  --line: rgba(47, 32, 26, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  border: 1.25rem solid var(--clay);
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 4.5vw;
  color: var(--cream);
  border-bottom: 1px solid rgba(243,232,216,.35);
}
.wordmark {
  display: block;
  width: fit-content;
  text-decoration: none;
}
.brand-logo {
  display: block;
  aspect-ratio: 3840 / 1332;
  background: var(--cream);
  -webkit-mask: url('halcyon-logo-official.png') center / contain no-repeat;
  mask: url('halcyon-logo-official.png') center / contain no-repeat;
}
.brand-logo-header { width: clamp(16rem, 22vw, 21rem); }
nav { display: flex; gap: 1.35rem; }
nav a, .book-link { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.header-book { justify-self: end; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 56% 44%;
  background: var(--clay);
  color: var(--cream);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 7vw 4rem;
}
.eyebrow, .section-number, .footer-label {
  margin: 0 0 2rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
}
h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); max-width: 11ch; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.5rem); }
h2 em { font-weight: 400; }
.hero-intro { max-width: 32rem; font-size: 1.08rem; margin: 2rem 0 2.4rem; }
.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 17rem;
  padding: 1rem 1.2rem;
  border: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.button-light:hover, .button-light:focus-visible { background: var(--cream); color: var(--clay); }
.button-dark:hover, .button-dark:focus-visible { background: var(--ink); color: var(--cream); }
.location { margin: auto 0 0; padding-top: 4rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-image-wrap { position: relative; min-height: 680px; overflow: hidden; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.image-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: .9rem;
}

.manifesto { padding: 7rem 7vw 6rem; }
.manifesto-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: start; }
.manifesto-grid > div { max-width: 34rem; padding-top: .5rem; }
.manifesto-grid p:first-child { font-size: 1.25rem; margin-top: 0; }
.image-break { position: relative; height: min(58vw, 650px); min-height: 420px; overflow: hidden; background: var(--ink); }
.image-break img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.83); }
.image-break blockquote {
  position: absolute;
  margin: 0;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: var(--cream);
  white-space: nowrap;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-style: italic;
}

.treatments { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; padding: 7rem 7vw; }
.treatment-heading { position: sticky; top: 2rem; align-self: start; }
.treatment-heading h2 { font-size: clamp(2.2rem, 3.8vw, 4rem); }
.treatment-heading > p:last-child { color: var(--muted); max-width: 29rem; margin-top: 2rem; }
.menu-groups { border-top: 1px solid var(--line); }
.treatment-category { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.treatment-category strong { display: block; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 400; line-height: 1.2; }
.treatment-category small { display: block; color: var(--muted); margin-top: .4rem; font-size: .85rem; }
.treatment-category b { font-size: 1.2rem; font-weight: 400; transition: transform .2s; }
.treatment-category:hover b, .treatment-category:focus-visible b { transform: translate(.2rem, -.2rem); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  padding: 1.8rem 0;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}
summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; top: 50%; left: 0; width: 100%; height: 1px; }
.plus::after { transform: rotate(90deg); transition: transform .2s; }
details[open] .plus::after { transform: rotate(0); }
.menu-list { padding-bottom: 1rem; }
.menu-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(47,32,26,.1);
}
.menu-list strong { display: block; font-weight: 500; line-height: 1.3; }
.menu-list small { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.menu-list b { font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem; }
.full-menu { display: flex; justify-content: space-between; margin-top: 2rem; padding-bottom: .4rem; text-decoration: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; border-bottom: 1px solid currentColor; }

.journal-note { display: flex; align-items: center; gap: 2rem; width: min(86%, 920px); margin: 2.5rem auto; padding: 1.35rem 1.6rem; border: 1px solid var(--line); background: var(--paper); }
.journal-note .article-kicker { flex: 0 0 auto; margin: 0; }
.journal-note a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex: 1; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.2; text-decoration: none; }
.journal-note b { flex: 0 0 auto; font-family: Arial, sans-serif; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.article-kicker { margin: 0 0 1.5rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.journal-card h2 { max-width: 18ch; margin: 0 0 1.5rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 3.3rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.text-link { display: inline-flex; gap: 2rem; margin-top: 1rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; text-decoration: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; }

.subpage-header { position: absolute; }
.journal-index-hero, .article-hero { padding: 11rem 7vw 6rem; background: var(--clay); color: var(--cream); }
.journal-index-hero h1 { max-width: none; }
.journal-index-hero p:last-child { max-width: 40rem; margin: 2rem 0 0; font-size: 1.08rem; }
.journal-list { padding: 7rem 7vw; }
.journal-card { display: grid; grid-template-columns: .35fr 1.65fr; gap: 7vw; padding: 2.5rem 0 4rem; border-top: 1px solid var(--line); }
.journal-card-copy > p:not(.article-kicker) { max-width: 42rem; color: var(--muted); }
.article-hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 5.5vw, 5.8rem); }
.article-standfirst { max-width: 48rem; margin: 2.5rem 0 0; font-family: Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.45; }
.article-layout { display: grid; grid-template-columns: .35fr 1.65fr; gap: 7vw; padding: 6rem 7vw 8rem; }
.article-aside { color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.article-aside a { display: inline-block; margin-top: 1.5rem; text-underline-offset: .3em; }
.article-body { max-width: 46rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.8; }
.article-body p { margin: 0 0 1.6rem; }
.article-body .article-emphasis { margin: 3rem 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.18; letter-spacing: -.02em; }
.article-signoff { margin-top: 4rem; font-style: italic; font-size: 1.5rem; }

.book-section { text-align: center; padding: 6rem 2rem 5rem; background: var(--cream); overflow: hidden; }
.book-section .section-number { margin-bottom: 3rem; }
.book-section p:not(.section-number) { margin: 2rem auto; color: var(--muted); }
.book-section .button { margin: 0 auto; }
.sun-mark { width: 15rem; height: 7.5rem; margin: 5rem auto -6rem; border-radius: 15rem 15rem 0 0; background: var(--clay); position: relative; }
.sun-mark::before { content: ''; position: absolute; width: 1px; height: 19rem; background: var(--clay); left: 50%; top: -6rem; box-shadow: -45px 12px 0 var(--clay), 45px 12px 0 var(--clay), -85px 48px 0 var(--clay), 85px 48px 0 var(--clay); }

footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 5vw; padding: 5rem 7vw 2rem; background: var(--clay); color: var(--cream); }
.footer-wordmark { display: block; width: fit-content; text-decoration: none; }
.brand-logo-footer { width: min(22rem, 76vw); }
.footer-brand p { font-family: Georgia, serif; font-style: italic; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a { text-decoration-thickness: 1px; text-underline-offset: .25em; overflow-wrap: anywhere; }
.footer-links p { margin-top: 0; }
.footer-label { opacity: .7; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(243,232,216,.3); margin: 3rem 0 0; padding-top: 1.5rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.mobile-book { display: none; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 820px) {
  body { padding-bottom: 58px; border-width: .75rem; }
  .site-header { height: auto; min-height: 104px; gap: .5rem; grid-template-columns: 1fr auto; padding: .9rem 1.2rem; align-content: center; }
  .site-header nav { grid-column: 1 / -1; order: 3; width: 100%; display: flex; gap: 1.1rem; overflow-x: auto; padding-top: .65rem; border-top: 1px solid rgba(243,232,216,.22); scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; font-size: .68rem; }
  .brand-logo-header { width: min(16rem, 58vw, calc(100vw - 10rem)); }
  .header-book { display: block; font-size: .68rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 70svh; padding: 10rem 1.25rem 3rem; }
  h1 { font-size: clamp(2.4rem, 10.5vw, 3.8rem); max-width: 9ch; }
  .hero-intro { max-width: 26rem; }
  .location { padding-top: 4rem; }
  .hero-image-wrap { min-height: 62svh; }
  .manifesto { padding: 6rem 1.25rem 5rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto-grid h2 { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .image-break { height: 72svh; }
  .image-break blockquote { white-space: normal; text-align: center; width: 90%; }
  .treatments { grid-template-columns: 1fr; padding: 6rem 1.25rem; gap: 4rem; }
  .treatment-heading { position: static; }
  summary { padding: 1.4rem 0; }
  .journal-note { align-items: flex-start; flex-direction: column; gap: .7rem; width: calc(100% - 2.5rem); margin: 1.5rem auto; padding: 1.25rem; }
  .journal-note a { align-items: flex-start; width: 100%; gap: 1rem; }
  .journal-card h2 { font-size: clamp(1.8rem, 8vw, 2.7rem); }
  .journal-index-hero, .article-hero { padding: 10rem 1.25rem 5rem; }
  .journal-index-hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .article-hero h1 { max-width: 10ch; font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .journal-list { padding: 5rem 1.25rem; }
  .journal-card, .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-layout { padding: 4rem 1.25rem 6rem; }
  .book-section { padding: 6rem 1.25rem 5rem; }
  footer { grid-template-columns: 1fr; padding: 5rem 1.25rem 2rem; gap: 2.5rem; }
  .copyright { grid-column: auto; }
  .mobile-book { display: block; position: fixed; z-index: 20; inset: auto .75rem .75rem; background: var(--cream); color: var(--ink); text-align: center; padding: .95rem; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; border-top: 1px solid var(--ink); }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .site-header { padding-inline: 2.5vw; gap: 1rem; }
  nav { gap: .8rem; }
  nav a, .book-link { font-size: .66rem; }
  .hero-copy { padding-inline: 5vw; }
  .hero-intro { max-width: 29rem; }
}
