@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-semibold-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --surface: #f5ede2;
  --paper: #fffdfa;
  --paper-warm: #fff3e8;
  --orange-soft: #ffe8d0;
  --orange: #e85d04;
  --orange-strong: #b94700;
  --orange-light: #ff7a1a;
  --amber: #ffb347;
  --ink: #2b1b10;
  --muted: #765a43;
  --green: #647d37;
  --red: #a32020;
  --shadow: 0 24px 70px rgba(81, 42, 16, 0.12);
  --shadow-small: 0 12px 32px rgba(81, 42, 16, 0.1);
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  color: var(--orange);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.site-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange-strong);
}

.hero {
  width: var(--page);
  min-height: 690px;
  margin: 0 auto;
  padding: 78px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7.5vw, 6.9rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--orange-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 93, 4, 0.28);
}

.text-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.memory-stage {
  position: relative;
  min-height: 530px;
  isolation: isolate;
}

.sun-disc {
  position: absolute;
  z-index: -2;
  inset: 20px -20px auto auto;
  width: min(410px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--amber), var(--orange-light));
  box-shadow: var(--shadow);
}

.tiggy {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: 4px;
  width: min(360px, 78%);
  filter: drop-shadow(0 20px 26px rgba(81, 42, 16, 0.15));
}

.memory-card {
  position: absolute;
  right: 40px;
  bottom: 0;
  width: min(370px, calc(100% - 24px));
  padding: 28px;
  background: rgba(255, 253, 250, 0.97);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.memory-date {
  margin: 0 0 22px;
  color: var(--orange-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.memory-name-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.memory-card h2 {
  margin-bottom: 6px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.rating {
  flex: none;
  color: var(--orange-strong);
  font-weight: 600;
}

.memory-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.memory-note {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--orange-light);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  line-height: 1.45;
}

.privacy-stamp {
  position: absolute;
  left: 6px;
  bottom: 58px;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(5deg);
  box-shadow: var(--shadow-small);
}

.section {
  padding: 110px 0;
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-section {
  color: white;
  background: var(--ink);
}

.feature-section .eyebrow {
  color: var(--amber);
}

.feature-section .section-heading p:last-child {
  color: #dbc8b7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 290px;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 24px;
}

.feature-card:nth-child(2) {
  transform: translateY(24px);
}

.feature-card:nth-child(3) {
  transform: translateY(-10px);
}

.feature-kicker {
  display: block;
  margin-bottom: 60px;
  color: var(--orange-strong);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.private-section {
  overflow: hidden;
  background: var(--orange-soft);
}

.private-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(50px, 10vw, 140px);
}

.private-copy p {
  max-width: 620px;
  color: var(--muted);
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  padding-left: 30px;
  position: relative;
}

.privacy-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 600;
}

.plate-note {
  position: relative;
  display: grid;
  min-height: 400px;
  place-items: center;
}

.plate {
  display: grid;
  width: min(390px, 88vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 70px;
  background: var(--paper);
  border: 20px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(196, 149, 106, 0.25), var(--shadow);
  text-align: center;
}

.plate p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-section h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.cta-section p {
  max-width: 610px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.site-footer {
  padding: 56px 0 34px;
  color: #d7c1ae;
  background: var(--ink);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-wordmark {
  margin-bottom: 12px;
  color: var(--amber);
}

.footer-tagline {
  max-width: 360px;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 30px;
}

.footer-links a {
  color: white;
  font-size: 0.86rem;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.draft-banner {
  padding: 10px 20px;
  color: #fff;
  background: var(--red);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.page-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 78px 0 70px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.updated {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  align-items: start;
  justify-content: space-between;
  gap: 70px;
}

.legal-nav {
  position: sticky;
  top: 28px;
  padding: 22px;
  background: var(--paper-warm);
  border-radius: 20px;
}

.legal-nav strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--orange-strong);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 48px;
  scroll-margin-top: 30px;
}

.legal-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin-top: 30px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
}

.legal-content p,
.legal-content li {
  color: #503b2b;
}

.legal-content li + li {
  margin-top: 10px;
}

.legal-content table {
  width: 100%;
  border-spacing: 0;
  margin: 26px 0;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
  font-size: 0.86rem;
}

.legal-content th,
.legal-content td {
  padding: 16px;
  vertical-align: top;
  text-align: left;
}

.legal-content th {
  background: var(--orange-soft);
}

.legal-content tr + tr td {
  border-top: 1px solid #f1dfcf;
}

.notice,
.contact-card,
.action-card {
  padding: 24px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-small);
}

.notice {
  margin-bottom: 38px;
  background: #fff0dc;
}

.notice strong {
  color: var(--red);
}

.placeholder {
  padding: 0.12em 0.35em;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  font-weight: 600;
}

.support-grid {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-grid .contact-card {
  min-height: 240px;
  padding: 30px;
}

.contact-card p {
  color: var(--muted);
}

.step-list {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 60px;
  padding: 4px 0 28px 68px;
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  content: counter(steps);
  color: white;
  background: var(--orange-strong);
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.error-main {
  width: var(--page);
  margin: 0 auto;
  padding: 70px 0 110px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: center;
  gap: 60px;
}

.error-main h1 {
  font-size: clamp(4rem, 12vw, 9rem);
}

.error-main img {
  filter: drop-shadow(0 24px 28px rgba(81, 42, 16, 0.15));
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-content {
    max-width: 760px;
  }

  .memory-stage {
    width: min(560px, 100%);
    margin: 0 auto;
  }

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

  .feature-card:nth-child(n) {
    transform: none;
  }

  .private-layout,
  .error-main {
    grid-template-columns: 1fr;
  }

  .plate-note {
    order: -1;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-nav {
    position: static;
    columns: 2;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px 16px;
    text-align: right;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero {
    padding-bottom: 72px;
  }

  .memory-stage {
    min-height: 470px;
  }

  .sun-disc {
    right: 0;
  }

  .memory-card {
    right: 0;
    padding: 23px;
  }

  .privacy-stamp {
    bottom: 16px;
  }

  .section {
    padding: 78px 0;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-kicker {
    margin-bottom: 34px;
  }

  .footer-top {
    display: grid;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 48px;
  }

  .legal-nav {
    columns: 1;
  }

  .legal-content table,
  .legal-content thead,
  .legal-content tbody,
  .legal-content tr,
  .legal-content th,
  .legal-content td {
    display: block;
  }

  .legal-content thead {
    display: none;
  }

  .legal-content td {
    padding: 10px 16px;
  }

  .legal-content td:first-child {
    padding-top: 18px;
    color: var(--ink);
    font-weight: 600;
  }

  .legal-content td:last-child {
    padding-bottom: 18px;
  }

  .error-main {
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
