:root {
  --bg: #faf6f0;
  --bg-soft: #fff8f2;
  --ink: #1f1a17;
  --ink-soft: rgba(31, 26, 23, 0.78);
  --accent: #e73555;
  --accent-soft: rgba(231, 53, 85, 0.12);
  --line: rgba(231, 53, 85, 0.18);
  --shadow: 0 28px 70px rgba(31, 26, 23, 0.08);
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(231, 53, 85, 0.1), transparent 26rem),
    radial-gradient(circle at left bottom, rgba(230, 216, 203, 0.4), transparent 22rem),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  position: relative;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 0.5rem 0 1.25rem;
}

.brand-link,
.header-link {
  text-decoration: none;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 600;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
}

.brand-script {
  color: var(--accent);
  font-family: "LXGW WenKai Mono TC", "Noto Serif SC", "Songti SC", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand-tea {
  color: var(--accent);
  font-family: "EB Garamond", "Iowan Old Style", "Baskerville", serif;
  font-size: 1.08rem;
  font-style: italic;
  letter-spacing: 0.01em;
  margin-left: 0.08rem;
}

.brand-roman {
  color: var(--ink-soft);
  font-family: "EB Garamond", "Iowan Old Style", "Baskerville", serif;
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.header-link {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-link {
  position: relative;
  padding-bottom: 0.15rem;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

main {
  display: grid;
  gap: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 12rem);
  padding: 1rem 0 0.5rem;
}

.hero-copy {
  max-width: 34rem;
}

h1 {
  margin: 0;
  font-family: "EB Garamond", "Iowan Old Style", "Baskerville", serif;
  font-size: clamp(3.9rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 8ch;
  text-wrap: balance;
}

.supporting-copy,
.origin-copy,
.search-line p,
.site-footer p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
}

.supporting-copy {
  margin-top: 1.5rem;
  max-width: 30ch;
  color: var(--ink);
}

.origin-copy {
  margin-top: 0.85rem;
  max-width: 41ch;
  color: var(--ink-soft);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(31, 26, 23, 0.05);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cta-link:hover,
.cta-link:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  color: var(--accent);
}

.cta-link:hover,
.cta-link:focus-visible {
  border-color: rgba(231, 53, 85, 0.34);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 30px rgba(31, 26, 23, 0.08);
  transform: translateY(-2px);
}

.hero-mark {
  margin: 0;
  min-height: 28rem;
  display: grid;
  align-items: center;
}

.mark-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(30rem, 100%);
  aspect-ratio: 1;
  margin-left: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 249, 243, 0.98) 58%, rgba(231, 53, 85, 0.08) 100%),
    var(--bg-soft);
  box-shadow: 0 24px 52px rgba(31, 26, 23, 0.05);
  overflow: hidden;
}

.mark-frame::before,
.mark-frame::after {
  content: "";
  position: absolute;
}

.mark-frame::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(231, 53, 85, 0.06), transparent 20%);
}

.mark-frame::after {
  inset: 0;
  background: radial-gradient(circle at 82% 78%, rgba(231, 53, 85, 0.11), transparent 28%);
}

.mark-frame img {
  width: min(74%, 22rem);
  height: auto;
  position: relative;
  z-index: 1;
}

.search-line {
  padding: 1.5rem 0 0;
}

.search-line p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.site-footer {
  padding-top: 2.25rem;
  margin-top: 2rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.brand-link:focus-visible,
.header-link:focus-visible,
.cta-link:focus-visible {
  outline: 2px solid rgba(231, 53, 85, 0.35);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise-in 700ms ease-out both;
  }

  .hero-mark {
    animation: float-in 850ms ease-out both;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 1.5rem, 1200px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-top: 0.5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .mark-frame {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-link {
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
    max-width: 7ch;
  }

  .supporting-copy,
  .origin-copy,
  .search-line p {
    max-width: 100%;
  }

  .cta-link {
    width: 100%;
  }

  .hero-mark {
    min-height: 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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