@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --wine: #681f2a;
  --wine-dark: #45151d;
  --ivory: #f7f3eb;
  --charcoal: #191817;
  --crimson: #b42332;
  --gold: #b99a62;
  --white: #ffffff;
  --line-dark: rgba(25, 24, 23, 0.2);
  --line-light: rgba(247, 243, 235, 0.25);
  --display: "Cormorant Garamond", "Iowan Old Style", "Noto Serif TC", "Songti TC", serif;
  --body: Inter, "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  --container: 1280px;
  --page-gutter: clamp(24px, 4vw, 64px);
  --section-space: clamp(80px, 12vw, 160px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ivory);
  background: var(--crimson);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--wine);
  background: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wine-surface {
  color: var(--ivory);
  background: var(--wine);
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.wordmark,
.footer-wordmark {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  text-decoration: none;
}

.primary-nav,
.footer-bottom nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.primary-nav a,
.footer-bottom a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .language-link {
  padding-left: clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--line-light);
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  letter-spacing: 0.16em;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 88px);
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 5vw, 92px);
  padding-block: clamp(60px, 8vh, 100px) clamp(90px, 11vh, 124px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow.light {
  color: var(--ivory);
}

h1,
h2,
.manifesto-statement {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.88;
}

h1 em,
h2 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-intro {
  max-width: 610px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  color: rgba(247, 243, 235, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.hero-actions p {
  margin: 0;
  color: rgba(247, 243, 235, 0.66);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease;
}

.button-light {
  color: var(--wine);
  background: var(--ivory);
}

.button-light:hover {
  color: var(--ivory);
  border-color: var(--ivory);
  background: transparent;
}

.button-outline-light {
  color: var(--ivory);
  border-color: rgba(247, 243, 235, 0.55);
  background: transparent;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.wing-composition {
  position: relative;
  align-self: stretch;
  min-height: 560px;
}

.wing-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 650px);
  max-width: none;
  transform: translate(-48%, -50%);
}

.wing-mark path {
  fill: none;
  stroke: rgba(247, 243, 235, 0.2);
  stroke-linecap: square;
  stroke-width: 1.2;
}

.wing-mark .wing-outline {
  fill: rgba(69, 21, 29, 0.22);
  stroke: rgba(247, 243, 235, 0.32);
}

.wing-mark .wing-spine {
  stroke: var(--gold);
  stroke-width: 1.6;
}

.wing-caption {
  position: absolute;
  right: 0;
  bottom: 11%;
  color: rgba(247, 243, 235, 0.55);
  font-family: var(--display);
  font-size: 0.84rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(247, 243, 235, 0.62);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span:last-child {
  color: var(--gold);
  font-size: 1rem;
}

.section {
  padding-block: var(--section-space);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 130px);
}

.section-index {
  padding-top: 10px;
}

.section-index span {
  display: block;
  color: var(--crimson);
  font-family: var(--display);
  font-size: 1.4rem;
}

.section-index p {
  margin: 13px 0 0;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.editorial-copy h2,
.cohort-copy h2,
.membership h2 {
  font-size: clamp(3rem, 6.2vw, 6.25rem);
  line-height: 0.94;
}

.copy-columns {
  display: grid;
  max-width: 900px;
  margin-top: clamp(48px, 7vw, 84px);
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 6vw, 90px);
}

.copy-columns p,
.cohort-copy > p:last-child,
.membership-inner > p:not(.eyebrow),
.privacy-copy p,
.privacy-copy li {
  margin: 0;
  color: rgba(25, 24, 23, 0.67);
  line-height: 1.75;
}

.copy-columns .lead-copy {
  color: var(--charcoal);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.35;
}

.standard {
  border-top: 1px solid var(--line-dark);
  background: var(--ivory);
}

.standard-heading {
  align-items: end;
}

.standard-heading .eyebrow {
  margin-bottom: 28px;
}

.principles {
  display: grid;
  margin: clamp(72px, 10vw, 128px) 0 0;
  border-top: 1px solid var(--charcoal);
  grid-template-columns: repeat(4, 1fr);
}

.principle {
  padding: 28px 26px 20px 0;
  border-right: 1px solid var(--line-dark);
}

.principle + .principle {
  padding-left: 26px;
}

.principle:last-child {
  border-right: 0;
}

.principle dt {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
}

.principle dt span {
  display: block;
  margin-bottom: 60px;
  color: var(--crimson);
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.principle dd {
  margin: 20px 0 0;
  color: rgba(25, 24, 23, 0.62);
  font-size: 0.9rem;
  line-height: 1.65;
}

.manifesto {
  color: var(--ivory);
  background: var(--charcoal);
}

.manifesto-inner {
  padding-block: clamp(110px, 15vw, 210px);
}

.manifesto-statement {
  max-width: 1050px;
  font-size: clamp(3.4rem, 7.7vw, 8rem);
  line-height: 0.9;
}

.manifesto-note {
  max-width: 550px;
  margin: clamp(46px, 6vw, 76px) 0 0 auto;
  color: rgba(247, 243, 235, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
}

.cohort {
  background: var(--ivory);
}

.cohort-layout {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(70px, 12vw, 180px);
}

.cohort-copy > p:last-child {
  max-width: 610px;
  margin-top: 42px;
}

.cohort-copy h2 em {
  color: var(--wine);
}

.cohort-facts {
  border-top: 1px solid var(--charcoal);
}

.cohort-facts > div {
  display: grid;
  align-items: baseline;
  padding-block: 25px;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: 42px 0.65fr 1fr;
  gap: 16px;
}

.cohort-facts span,
.cohort-facts p {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cohort-facts span {
  color: var(--crimson);
}

.cohort-facts p {
  margin: 0;
  color: rgba(25, 24, 23, 0.58);
}

.cohort-facts strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.membership {
  color: var(--ivory);
  background: var(--wine);
}

.membership-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.44fr);
  column-gap: clamp(50px, 10vw, 150px);
}

.membership-inner .eyebrow,
.membership-inner h2 {
  grid-column: 1;
}

.membership-inner > p:not(.eyebrow),
.membership-inner .button {
  grid-column: 2;
}

.membership-inner > p:not(.eyebrow) {
  align-self: end;
  color: rgba(247, 243, 235, 0.7);
}

.membership-inner .button {
  width: fit-content;
  margin-top: 34px;
}

.site-footer {
  color: var(--ivory);
  background: var(--wine-dark);
}

.footer-top {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.footer-wordmark {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: 0.18em;
}

.footer-top p {
  max-width: 290px;
  margin: 0;
  color: rgba(247, 243, 235, 0.62);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer-bottom {
  display: grid;
  align-items: center;
  padding-block: 26px;
  color: rgba(247, 243, 235, 0.62);
  grid-template-columns: 1fr auto 1fr;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-bottom > p:last-child {
  text-align: right;
}

.privacy-page {
  min-height: 100vh;
  background: var(--ivory);
}

.privacy-header {
  color: var(--ivory);
  background: var(--wine);
}

.privacy-main {
  padding-block: var(--section-space);
}

.privacy-main h1 {
  max-width: 900px;
  color: var(--wine);
  font-size: clamp(3.6rem, 7vw, 7rem);
}

.privacy-copy {
  max-width: 720px;
  margin: 72px auto 0;
}

.privacy-copy h2 {
  margin: 56px 0 20px;
  font-size: 2.2rem;
  line-height: 1.05;
}

.privacy-copy p + p {
  margin-top: 20px;
}

.privacy-copy ul {
  padding-left: 22px;
}

@media (min-width: 981px) and (max-height: 900px) {
  .hero {
    padding-block: 44px 72px;
  }

  h1 {
    font-size: clamp(4rem, 6vw, 5.75rem);
  }

  .hero-intro {
    margin-top: 28px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .wing-composition {
    min-height: 460px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .wing-composition {
    min-height: 500px;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle:nth-child(2) {
    border-right: 0;
  }

  .principle:nth-child(3),
  .principle:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .principle:nth-child(3) {
    padding-left: 0;
  }

  .cohort-layout {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .cohort-facts {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 24px;
  }

  .site-header {
    min-height: 72px;
  }

  .wordmark {
    font-size: 0.96rem;
    letter-spacing: 0.22em;
  }

  .primary-nav {
    gap: 16px;
  }

  .primary-nav .nav-optional {
    display: none;
  }

  .primary-nav .language-link {
    padding-left: 16px;
  }

  .hero {
    min-height: calc(100svh - 72px);
    grid-template-columns: 1fr;
    padding-block: 72px 120px;
  }

  .hero-copy {
    align-self: start;
  }

  h1 {
    font-size: clamp(3.6rem, 17vw, 5.6rem);
    line-height: 0.9;
  }

  .hero-intro {
    max-width: 92%;
    margin-top: 34px;
    font-size: 0.96rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
  }

  .wing-composition {
    position: absolute;
    right: -25%;
    bottom: 0;
    width: 82%;
    min-height: 52%;
    opacity: 0.48;
  }

  .wing-mark {
    width: 150%;
  }

  .wing-caption {
    display: none;
  }

  .scroll-cue {
    bottom: 24px;
  }

  .editorial-grid,
  .copy-columns,
  .membership-inner {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    gap: 48px;
  }

  .section-index {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 0;
  }

  .section-index p {
    margin: 0;
  }

  .editorial-copy h2,
  .cohort-copy h2,
  .membership h2 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .copy-columns {
    margin-top: 46px;
    gap: 28px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle,
  .principle:nth-child(3) {
    padding: 26px 0 30px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .principle dt span {
    margin-bottom: 26px;
  }

  .manifesto-statement {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .manifesto-note {
    margin-left: 0;
  }

  .cohort-facts > div {
    grid-template-columns: 32px 0.7fr 1.15fr;
    gap: 10px;
  }

  .cohort-facts strong {
    font-size: 1.05rem;
  }

  .membership-inner > p:not(.eyebrow),
  .membership-inner .button {
    grid-column: 1;
  }

  .membership-inner > p:not(.eyebrow) {
    margin-top: 38px;
  }

  .footer-top {
    min-height: 240px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
  }

  .footer-wordmark {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .footer-bottom {
    align-items: start;
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .footer-bottom nav {
    align-items: flex-end;
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom > p:last-child {
    text-align: left;
  }
}

html[lang="zh-Hant"] h1,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] .manifesto-statement,
html[lang="zh-Hant"] .footer-wordmark {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", var(--display);
  letter-spacing: 0.02em;
}

html[lang="zh-Hant"] h1 {
  line-height: 1.08;
}

html[lang="zh-Hant"] .wordmark,
html[lang="zh-Hant"] .footer-wordmark {
  font-family: var(--display);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform: translateY(18px);
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 240ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 360ms;
  }

  .wing-mark {
    opacity: 0;
    animation: wing-reveal 1400ms 220ms ease forwards;
  }

  @keyframes reveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes wing-reveal {
    from {
      opacity: 0;
      transform: translate(-45%, -48%);
    }

    to {
      opacity: 1;
      transform: translate(-48%, -50%);
    }
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
