/* Sōng waitlist — DESIGN-1833. Cream #FFF8EE · terracotta #A8442E. */
:root {
  --cream: #FFF8EE;
  --terracotta: #A8442E;
  --ink: #1C1713;
  --muted: #75695F;
  --line: rgba(53, 38, 29, 0.2);
  --soft-line: rgba(53, 38, 29, 0.11);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.38;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 3.5vw, 4rem) 4.5rem;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand span {
  font-family: "EB Garamond", "Noto Serif SC", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem clamp(0.7rem, 1.8vw, 1.65rem);
}
nav a,
.kicker,
.index-label,
label,
.ritual dt,
footer {
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
nav a {
  padding: 0.25rem 0 0.3rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

h1, h2, p, figure, dl { margin-top: 0; }
h1 {
  margin-bottom: 0.8rem;
  font-family: "EB Garamond", "Noto Serif SC", Georgia, serif;
  font-size: clamp(3.6rem, 7vw, 7.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
}
h2 {
  margin: 2.5rem 0 0.7rem;
  font-family: "EB Garamond", "Noto Serif SC", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
p { margin-bottom: 1.35rem; }
.han {
  color: var(--terracotta);
  font-family: "Noto Serif SC", "EB Garamond", serif;
  font-weight: 500;
}
.kicker,
.index-label {
  margin: 0 0 0.8rem;
  color: var(--terracotta);
}
.tagline {
  margin-bottom: 1.55rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-style: italic;
  line-height: 1.08;
}
.lede {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.06;
}

/* Home: the baked manifesto lives inside the photograph, so it remains image-led. */
.home-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(16rem, 0.72fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 6.5rem);
  margin: clamp(2.25rem, 6vw, 6.5rem) 0 clamp(5rem, 10vw, 10rem);
}
.hero-tile { margin: 0; }
.hero-tile img { width: 100%; height: auto; }
.home-introduction { padding-bottom: clamp(0.25rem, 3vw, 2.75rem); }
.home-introduction .lede { margin-bottom: 0; }

.hub {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.6vw, 3.5rem);
  row-gap: clamp(4.5rem, 9vw, 10rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub li { grid-column: span 5; }
.hub li:nth-child(1) { grid-column: 1 / span 5; }
.hub li:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(3rem, 8vw, 8rem); }
.hub li:nth-child(3) { grid-column: 3 / span 5; }
.hub li:nth-child(4) { grid-column: 8 / span 5; margin-top: clamp(3rem, 8vw, 8rem); }
.hub a { display: block; text-decoration: none; }
.hub figure { margin: 0; overflow: hidden; background: #e9ded0; }
.hub img { width: 100%; height: auto; transition: transform 450ms ease; }
.hub a:hover img { transform: scale(1.018); }
.hub .name {
  display: block;
  margin-top: 0.95rem;
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.hub .line {
  display: block;
  max-width: 17rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.1;
}

/* Formula pages: an uncut portrait is paired with the entry point, then reading narrows. */
.formula-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 8rem);
  margin: clamp(2.25rem, 6vw, 6.5rem) 0 clamp(4rem, 8vw, 8.5rem);
}
.page-tile { margin: 0; }
.page-tile img { width: 100%; height: auto; }
.formula-intro { padding-bottom: clamp(0.25rem, 3vw, 2.5rem); }
.formula-intro .lede { margin-bottom: 0; }
.formula-content {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(12rem, 3fr);
  column-gap: clamp(2rem, 8vw, 10rem);
}
.prose { grid-column: 1; max-width: 39rem; }
.prose > p:not(.lede) { max-width: 36rem; }

.ritual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(3rem, 6vw, 5rem) 0 2.75rem;
  padding: 1.05rem 0 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ritual div { min-width: 0; }
.ritual dt { margin-bottom: 0.45rem; color: var(--terracotta); }
.ritual dd { margin: 0; font-size: 1.25rem; line-height: 1.04; }
ul.herbs { margin: 0; padding: 0; list-style: none; }
ul.herbs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--soft-line);
}
ul.herbs .zh { color: var(--terracotta); font-family: "Noto Serif SC", "EB Garamond", serif; }

.cta {
  width: min(100%, 38rem);
  margin: clamp(6rem, 12vw, 12rem) 0 0 auto;
  padding-top: clamp(1.6rem, 3vw, 2.5rem);
  border-top: 2px solid var(--terracotta);
}
.cta h2 { margin-top: 0; }
.fine { color: var(--muted); font-size: 1rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.45rem; color: var(--muted); }
input {
  width: 100%;
  padding: 0.6rem 0 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
input:focus { border-bottom: 2px solid var(--terracotta); padding-bottom: calc(0.65rem - 1px); }
button[type="submit"] {
  justify-self: start;
  margin-top: 0.45rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--terracotta);
  border-radius: 0;
  background: var(--terracotta);
  color: var(--cream);
  cursor: pointer;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
button[type="submit"]:hover { background: #8f3928; border-color: #8f3928; }
.status[hidden] { display: none; }
.status { margin: 0.5rem 0 0; }
footer {
  margin-top: clamp(5rem, 10vw, 10rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  body { font-size: 19px; }
  .wrap { padding: 1rem 1.1rem 3.5rem; }
  .masthead { grid-template-columns: 1fr; gap: 0.75rem; }
  nav { justify-content: flex-start; }
  .home-opening,
  .formula-opening { grid-template-columns: 1fr; gap: 1.7rem; margin-top: 2.5rem; }
  .home-opening { margin-bottom: 5.5rem; }
  .formula-opening { margin-bottom: 5.5rem; }
  .home-introduction,
  .formula-intro { max-width: 34rem; padding-bottom: 0; }
  .hub { grid-template-columns: 1fr 1fr; gap: 3.5rem 1.1rem; }
  .hub li,
  .hub li:nth-child(n) { grid-column: auto; margin-top: 0; }
  .hub li:nth-child(even) { margin-top: 2.75rem; }
  .hub .name { font-size: clamp(1.95rem, 7vw, 2.7rem); }
  .formula-content { display: block; }
  .cta { margin-left: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(3.35rem, 17vw, 4.5rem); }
  .hub { grid-template-columns: 1fr; gap: 3.5rem; }
  .hub li:nth-child(even) { margin-top: 0; }
  .hub .line { max-width: none; }
  .ritual { grid-template-columns: 1fr; gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hub img { transition: none; }
}
