/* Shared styles for privacy.html and 404.html. Mirrors the tokens and chrome of index.html. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/jost.woff2') format('woff2');
}

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

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --sand: #e8dcc8;
  --teak: #8b6340;
  --teak-dark: #5c3d1e;
  --charcoal: #2e2a25;
  --light-text: #665b50;
  --gold: #c4983a;
  --gold-text: #7d5f1c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible { outline: 2px solid var(--teak); outline-offset: 3px; }
footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--teak-dark);
  color: var(--cream);
  padding: .7rem 1.2rem;
  border-radius: 2px;
  font-size: .85rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(139, 99, 64, 0.12);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--teak-dark);
  text-decoration: none;
}
.nav-logo span { color: var(--gold-text); }

.back-link {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: .7rem 0;
}
.back-link:hover { color: var(--teak); }

/* buttons */
.btn-primary {
  display: inline-block;
  background: var(--teak-dark);
  color: var(--cream);
  padding: .85rem 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s;
}
.btn-primary:hover { background: var(--teak); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teak-dark);
  padding: .85rem 2.2rem;
  font-family: 'Jost', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1.5px solid var(--teak-dark);
  border-radius: 2px;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { background: var(--teak-dark); color: var(--cream); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* content */
main { flex: 1; }

.page-inner { max-width: 760px; margin: 0 auto; padding: 5rem 2rem 6rem; }

.section-tag {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .8rem;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--teak-dark);
}

.divider { width: 48px; height: 2px; background: var(--gold); margin: 1.4rem 0 2rem; }

.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--teak-dark);
  margin: 2.4rem 0 .7rem;
}
.prose p, .prose li { font-size: 1rem; line-height: 1.8; color: var(--light-text); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose a, .page-inner > p a { color: var(--teak-dark); text-underline-offset: 3px; }
.prose a:hover { color: var(--teak); }
.updated { font-size: .85rem; color: var(--light-text); margin-bottom: 1rem; }

.notfound { text-align: center; padding-top: 7rem; }
.notfound .divider { margin: 1.4rem auto 2rem; }
.notfound p { color: var(--light-text); line-height: 1.8; max-width: 460px; margin: 0 auto 2.4rem; }
.notfound .btn-group { justify-content: center; }
.big-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 1rem;
}

/* footer */
footer {
  background: var(--charcoal);
  padding: 2.5rem 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem 3rem;
}
footer .footer-copy { order: 10; flex-basis: 100%; padding-top: 1.4rem; border-top: 1px solid rgba(245,240,232,.12); }
.footer-guides { display: flex; flex-direction: column; gap: .2rem; }
.footer-head { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.footer-guides ul { list-style: none; margin: 0; padding: 0; }
.footer-guides .footer-link { display: inline-block; padding: .45rem 0; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--cream); }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: .78rem; color: rgba(245,240,232,.7); }
.footer-link { font-size: .78rem; color: rgba(245,240,232,.7); text-underline-offset: 3px; }
.footer-link:hover { color: var(--gold); }

@media (max-width: 900px) {
  .site-header { padding: 1.1rem 1.6rem; }
  .page-inner { padding: 3.5rem 1.6rem 4rem; }
  footer { flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; padding: 2rem 1.6rem; }
  .footer-guides { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
