/* Nine & Me website. Colours, type and radius from the brand kit (branding/app-and-web/brand-tokens.css). */
:root {
  --nine-plum: #56324F;
  --nine-peach: #EEC5AF;
  --nine-ivory: #FCF9F4;
  --nine-rose: #C5828B;
  --nine-ink: #302830;
  --nine-sage: #A5AE91;
  --nine-font-heading: Georgia, "Times New Roman", serif;
  --nine-font-body: Arial, Helvetica, sans-serif;
  --nine-radius: 20px;
  --nine-space: 8px;
  --muted: #5E525C;
  --line: #E8DDD6;
  --card: #FFFFFF;
  --soft: #F4ECE6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nine-ivory);
  color: var(--nine-ink);
  font: 17px/1.55 var(--nine-font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--nine-plum); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--nine-plum); outline-offset: 3px; border-radius: 4px; }
button.btn {
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--nine-plum); color: var(--nine-ivory); font: inherit;
  font-weight: bold; cursor: pointer; margin-bottom: 16px;
}
button.btn:disabled { opacity: 0.6; cursor: default; }

h1, h2, h3 {
  font-family: var(--nine-font-heading);
  font-weight: normal;
  color: var(--nine-plum);
  line-height: 1.15;
  margin: 0 0 calc(var(--nine-space) * 2);
}
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 calc(var(--nine-space) * 2); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { width: 220px; height: auto; }
.site-header nav a { margin-left: 20px; text-decoration: none; font-weight: bold; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 48px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 34em; }
.hero .symbol { justify-self: center; width: min(380px, 80%); }
.hero::before {
  /* A soft peach curve behind the symbol: the brand's "simple curved shapes". */
  content: ""; position: absolute; right: -120px; top: 40px; width: 560px; height: 560px;
  border-radius: 50%; background: var(--nine-peach); opacity: 0.35; z-index: -1;
}
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--nine-plum); color: var(--nine-ivory); font-weight: bold; text-decoration: none;
}
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 64px 0; }
.soft { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--nine-radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 14px; }
.dot.peach { background: var(--nine-peach); }
.dot.rose { background: var(--nine-rose); }
.dot.sage { background: var(--nine-sage); }

.privacy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.privacy ul { margin: 0; padding-left: 20px; }
.privacy li { margin-bottom: 10px; }

.quiet { text-align: center; }
.quiet p { color: var(--muted); max-width: 40em; margin: 0 auto 16px; }

/* Legal pages */
.legal { padding: 24px 0 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--nine-plum); color: var(--nine-ivory); padding: 40px 0; font-size: 15px; }
.site-footer a { color: var(--nine-ivory); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer img { width: 160px; }
.site-footer nav a { margin-right: 18px; }
.site-footer .small { opacity: 0.85; font-size: 13px; max-width: 40em; }

@media (max-width: 820px) {
  .hero .wrap, .privacy { grid-template-columns: 1fr; }
  .hero .symbol { width: 220px; order: -1; }
  .hero::before { width: 300px; height: 300px; right: -90px; top: 10px; }
  .grid { grid-template-columns: 1fr; }
  .site-header .logo img { width: 180px; }
  .site-header nav a { margin-left: 12px; }
}

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

/* Join pages: the four invite words, large and easy to read aloud. */
.invite-words { font-family: Georgia, "Gelasio", serif; font-size: 1.75rem; color: #56324F; background: #F8E3D3; border-radius: 20px; padding: 16px 20px; letter-spacing: 0.02em; }
[hidden] { display: none !important; }
