/* Shared shell for the pages outside the landing page: /privacy, /terms,
   /delete-account and the 404.

   Everything here is matched to the landing page so arriving on one of these
   is a continuation of the same site, not a jump somewhere else:

     body copy      Inter 300, 17px / 1.7, rgba(13,17,23,0.68)
     lead paragraph Inter 300, clamp(18px,1.6vw,21px) / 1.6
     page title     Playfair 400 UPRIGHT (the landing has no italic headings)
     eyebrow label  Inter 500, 12px, 0.16em tracking, uppercase, gold
     header/footer  the landing page's own, with nav pointing back to it

   On colour: the dark shell used --yellow (#FADC3C) for links and the
   wordmark. On white that is 1.37:1 and unreadable, so links and the brand
   use --gold (#8A6D00) at 4.92:1. --yellow is kept only as the CTA fill,
   where dark text sits on top of it. */

:root {
  --bg:           #FFFFFF;
  --text:         #0D1117;
  --text-muted:   rgba(13, 17, 23, 0.68);
  --text-dim:     rgba(13, 17, 23, 0.60);
  --separator:    rgba(13, 17, 23, 0.09);
  --hairline:     rgba(13, 17, 23, 0.07);
  --field-border: rgba(13, 17, 23, 0.14);
  --field-bg:     rgba(13, 17, 23, 0.025);
  --yellow:       #FADC3C;
  --gold:         #8A6D00;
  --warn-border:  rgba(138, 109, 0, 0.28);
  --warn-bg:      rgba(250, 220, 60, 0.10);
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body { position: relative; overflow-x: hidden; }

::selection { background: rgba(250, 220, 60, 0.22); }

/* Paper grain: same tile, size, opacity and blend as the landing page, and
   like it sits above the header. */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("/img/grain.webp");
  background-size: 180px 180px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 50;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(13, 17, 23, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--yellow);
  color: var(--text) !important;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--text); color: #FFFFFF !important; }

/* ----------------------------------------------------------------- content */

.wrap {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.intro {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(13, 17, 23, 0.72);
  max-width: 52ch;
  text-wrap: pretty;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

.updated {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: block;
}

section {
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 850ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
}

p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}
p + p { margin-top: 14px; }
p strong { color: var(--text); font-weight: 500; }

section p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}
section p strong { color: var(--text); font-weight: 500; }

section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 109, 0, 0.35);
}
section a:hover { color: var(--text); border-bottom-color: rgba(13, 17, 23, 0.35); }

ul.plain { list-style: none; }
ul.plain li {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 13px 0;
  border-bottom: 1px solid var(--separator);
}
ul.plain li:first-child { border-top: 1px solid var(--separator); }
ul.plain li strong { color: var(--text); font-weight: 500; }

.dash {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  opacity: 0.75;
  margin-right: 10px;
}

.notice {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}
.notice strong { color: var(--text); font-weight: 500; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: var(--yellow);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover { background: var(--text); color: #FFFFFF; }

.fallback {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.6;
}
.fallback a { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 40px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--hairline);
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(13, 17, 23, 0.6);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--gold);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(13, 17, 23, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }

.site-footer-note {
  max-width: 1180px;
  margin: 14px auto 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dim);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1, .intro, section { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 44px 20px 60px; }
  .site-nav { padding: 14px 20px; }
  .brand { font-size: 21px; }
  .nav-links { font-size: 13px; gap: 14px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ----------------------------------------------------------------- address

   Shown as selectable text rather than only a mailto link: a mailto dead-ends
   silently for anyone without a configured mail client, which on desktop is
   most people. user-select:all means one click selects the whole address. */

.address-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}

.address {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 14px 18px;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}


/* Copy control beside the address. Hidden when the Clipboard API is absent,
   so what remains is the address as selectable text. */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--gold); }
.copy-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.copy-btn svg { width: 17px; height: 17px; flex: none; }
.copy-btn .tick { display: none; }
.copy-btn .copy-label::after { content: 'Copy'; }

.copy-btn.copied { color: var(--gold); border-color: var(--gold); background: var(--warn-bg); }
.copy-btn.copied .sheets { display: none; }
.copy-btn.copied .tick { display: inline; }
.copy-btn.copied .copy-label::after { content: 'Copied'; }
