/* MakeMe legal pages. The app's tokens, straight from DESIGN.md: warm ivory
   canvas, cream surfaces, charcoal-plum ink, blush used once or twice. */
:root {
  --canvas: #FAF7F2;
  --surface: #F4EEE7;
  --ink: #2B2225;
  --ink-secondary: #6A5D61;
  --ink-tertiary: #9A8E92;
  --blush: #F3D4D8;
  --accent-ink: #8C5A66;
  --plum: #5A3A45;
  --hairline: rgba(43, 34, 37, 0.10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 56px 24px 96px; }

header { margin-bottom: 40px; }

.wordmark {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

h1 {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}

h2 {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

p, li { color: var(--ink); }
p { margin: 0 0 16px; }

.dates { color: var(--ink-tertiary); font-size: 15px; margin: 0; }

.lede { font-size: 19px; line-height: 1.55; color: var(--ink-secondary); margin-bottom: 8px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--accent-ink); text-underline-offset: 2px; }

strong { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 0 0 24px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card.accent { background: var(--blush); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hairline);
}
th { font-weight: 600; color: var(--ink-secondary); font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  font-size: 15px;
}
footer a { color: var(--ink-secondary); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  .wrap { padding: 40px 20px 72px; }
}

/* ---------------------------------------------------------------------------
   Landing page (index.html). The legal pages above stay a single column of
   text; the home page needs a wider measure, the photography, and the shelf.
   Same tokens, same two families, same three radii.
   --------------------------------------------------------------------------- */

.wrap--wide { max-width: 68rem; padding-top: 0; }

/* Top bar: the wordmark centred the way it sits in the app's navigation bar,
   with the two legal links kept quiet on the right. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 0;
  margin-bottom: 0;
}
.topbar .wordmark { font-size: 21px; }
.topbar nav { display: flex; gap: 20px; font-size: 15px; }
.topbar nav a { color: var(--ink-secondary); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 96px;
}
.hero-copy { max-width: 30rem; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.026em;
  margin: 0 0 20px;
  /* "reverse-engineered" must not break at its own hyphen. */
  hyphens: manual;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); white-space: nowrap; }
.hero .lede { font-size: 19px; line-height: 1.55; margin: 0 0 32px; max-width: 27rem; }

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: 0 10px 28px rgba(43, 34, 37, 0.10);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Buttons: ink pill primary, cream-and-hairline secondary, exactly as in
   DesignTokens.swift. One primary on the page. */
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.note { color: var(--ink-tertiary); font-size: 15px; margin: 16px 0 0; }

/* Alternating editorial rows. No icon grid, no column of three. */
.section-title {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 0 0 72px;
}
.row:nth-child(even) .row-photo { order: -1; }
.row h3 {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.row p { color: var(--ink-secondary); font-size: 17px; margin: 0; max-width: 27rem; }
.row-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The looks shelf, borrowed from the app's horizontal shelves. */
.shelf {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 24px 8px;
  margin: 0 -24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.look { flex: 0 0 200px; scroll-snap-align: start; }
.look-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; margin-bottom: 10px; }
.look-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look h4 { font-size: 15px; font-weight: 500; margin: 0 0 2px; }
.look p { font-size: 13px; color: var(--ink-tertiary); margin: 0; }

/* The one blush surface on the page. */
.card.accent .card-title {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.card.accent { padding: 28px 30px; margin: 96px 0 0; }
.card.accent p { color: var(--plum); }
.card.accent a { color: var(--plum); }

/* Entrances: fade and an 8px rise, once, the way the app enters a section. */
.enter { opacity: 0; transform: translateY(8px); }
.enter.seen { opacity: 1; transform: none; transition: opacity 0.28s ease-out, transform 0.28s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .enter, .enter.seen { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 72px; }
  .hero-copy { max-width: none; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .row:nth-child(even) .row-photo { order: 0; }
  .row-photo { aspect-ratio: 16 / 10; }
  .card.accent { margin-top: 72px; }
}

@media (max-width: 480px) {
  .topbar nav { gap: 16px; font-size: 14px; }
  .hero .lede { font-size: 17px; }
  .btn { width: 100%; text-align: center; }
  .actions { gap: 10px; }
  .look { flex-basis: 156px; }
}
