/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --cream:           #F5F2ED;
  --cream-dark:      #EDE9E1;
  --white:           #FFFFFF;
  --grey-light:      #E4E0D8;
  --grey-mid:        #767068;
  --grey-dark:       #3A3835;
  --black:           #1A1917;
  --dusty-blue:      #7B9BAF;
  --dusty-blue-dark: #5C7D93;
  --dusty-blue-pale: #D6E4EE;
  --footer-bg:       #F5F3F0;
  --footer-text:     rgba(0,0,0,.7);
  --footer-border:   rgba(0,0,0,.1);

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 240ms ease;
}

body {
  font-family: var(--ff-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--dusty-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.sr-only--focusable:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: .75rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 56px;
  padding: 0 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  touch-action: manipulation;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.nav__actions .btn,
.nav__drawer .btn {
  height: 48px;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { background: var(--grey-dark); box-shadow: var(--shadow-md); }
  .btn-outline:hover { background: var(--black); color: var(--white); }
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--grey-light);
  padding-block: .6875rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--ff-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 400;
  color: var(--grey-dark);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--dusty-blue);
  transition: width var(--transition);
}

@media (hover: hover) {
  .nav__links a:hover::after { width: 100%; }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: var(--white);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.nav__drawer.open { transform: none; }

.nav__drawer .drawer-link {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--black);
  padding-block: .75rem;
  border-bottom: 1px solid var(--grey-light);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav__drawer .btn {
  margin-top: .5rem;
  justify-content: center;
  width: 100%;
}

.nav.drawer-open {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--grey-light);
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: flex; visibility: hidden; }
  .nav__drawer.open { visibility: visible; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  padding-block: 3.5rem 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer__brand-name {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: .75rem;
}

.footer__tagline {
  font-size: 1rem;
  line-height: 1.625;
  max-width: 30ch;
  color: var(--footer-text);
}

/* TODO: Social accounts not yet live — remove the display:none below when accounts are ready. Do NOT delete the icon HTML in the footer. */
.footer__socials {
  display: none;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer__social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

@media (hover: hover) {
  .footer__social:hover {
    background: var(--dusty-blue);
    color: var(--white);
  }
}

.footer__col-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer__links a {
  font-size: 1rem;
  color: var(--footer-text);
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer__links a:hover { color: var(--black); }
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: .875rem;
  color: rgba(0,0,0,.6);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Page layout ─────────────────────────────────────────── */
.page-wrap {
  padding-top: 80px;
}

.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--grey-light);
}

.page-hero__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dusty-blue);
  display: block;
  margin-bottom: .75rem;
}

.page-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--black);
}

.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--grey-mid);
  max-width: 52ch;
  margin-top: .875rem;
  line-height: 1.7;
}

.page-content {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  padding-left: 1.5rem;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prose li { margin-bottom: .4rem; }

.prose a {
  color: var(--dusty-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { color: var(--black); font-weight: 600; }

.text-link {
  color: var(--dusty-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Rights grid (privacy, legal pages) ───────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 600px) {
  .rights-grid { grid-template-columns: 1fr; }
}

.rights-card {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
}

.rights-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dusty-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rights-card__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .2rem;
}

.rights-card__body {
  font-size: .8125rem;
  color: var(--grey-mid);
  line-height: 1.6;
}

/* ── Section divider ──────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--grey-light);
  margin: 4rem 0;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .nav__drawer { transition: none; }
}
