/* ---------------------------------------------------------------------------
   Fonts
   Spectral is licensed under the SIL Open Font License.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Spectral";
  src: url("fonts/Spectral-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("fonts/Spectral-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("fonts/Spectral-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("fonts/Spectral-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Tokens and reset
   --------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #000000;
  --button-bg: #000000;
  --button-fg: #ffffff;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #a3a3a3;
    --line: #262626;
    --accent: #ffffff;
    --button-bg: #ffffff;
    --button-fg: #000000;
  }
}

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

html {
  font-size: 19px;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--serif);
  line-height: 1.66;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 38px;
  text-align: center;
}

.hero-logo-link {
  display: block;
  color: var(--fg);
}

.hero-logo {
  width: clamp(110px, 20vw, 150px);
  height: auto;
  margin: 0 auto;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------------
   Page
   --------------------------------------------------------------------------- */

main {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 52px var(--gutter) 84px;
  flex: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose p,
.prose li {
  max-width: 60ch;
}

.prose h2 {
  margin: 2em 0 0.5em;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose ul,
.prose ol {
  padding-left: 1.15em;
}

.prose li {
  margin: 0.2em 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.prose a:hover {
  opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   Keepsake
   --------------------------------------------------------------------------- */

.product {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.product-logo-link {
  display: inline-block;
  color: var(--fg);
}

.product-logo {
  width: clamp(170px, 34vw, 220px);
}

.product-logo img {
  width: 100%;
  height: auto;
}

.product .prose {
  margin-top: 18px;
}

.product-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
}

/* ---------------------------------------------------------------------------
   Buttons and links
   --------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--button-bg);
  border-radius: 5px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.button:hover {
  border-color: var(--fg);
  background: var(--bg);
  color: var(--fg);
}

.text-link {
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.text-link:hover {
  opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */

.contact {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 26px var(--gutter) 34px;
}

.footer-inner {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  line-height: 1.65;
}

.footer-inner p {
  margin: 0 0 8px;
}

.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ---------------------------------------------------------------------------
   Legal pages
   --------------------------------------------------------------------------- */

.legal {
  max-width: 660px;
}

.legal-brand {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-brand a {
  color: var(--fg);
  text-decoration: none;
}

.legal-brand a:hover {
  opacity: 0.6;
}

.legal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-header .eyebrow {
  margin: 0;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
}

.legal-body h1 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-body h2 {
  margin: 2.1em 0 0.55em;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.legal-body p,
.legal-body li {
  max-width: 64ch;
  font-size: 0.96rem;
  line-height: 1.72;
}

.legal-body ul,
.legal-body ol {
  margin: 1em 0;
  padding-left: 1.2em;
}

.legal-body li {
  margin: 0.35em 0;
}

.legal-body li::marker {
  color: var(--accent);
}

.legal-body a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  opacity: 0.6;
}

.legal-body strong {
  font-weight: 600;
}

.legal-back {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.legal-back a {
  color: var(--muted);
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--fg);
}

/* ---------------------------------------------------------------------------
   Responsive and print
   --------------------------------------------------------------------------- */

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  main {
    padding-top: 34px;
    padding-bottom: 64px;
  }

  .hero-logo {
    width: 104px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.98rem;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-footer,
  .skip-link,
  .legal-back,
  .legal-header .eyebrow {
    display: none;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .legal {
    max-width: none;
  }

  .legal-body a {
    color: #000;
  }
}
