/* HumanUse shared styles: warm paper palette, type, header, footer, buttons. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Parisienne";
  src: url("/assets/fonts/parisienne.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand board palette: Ivory, Sand, Blush, Mauve, Charcoal */
  --ivory: #faf7f2;
  --paper: #f6f1ea;
  --linen: #efe6dc;
  --sand: #e2c9b3;
  --sand-soft: #f2e7dc;
  --rose: #f5b7c8;
  --rose-deep: #a8466a;
  --rose-soft: #fbe6ec;
  --lavender: #cbbbd9;
  --lavender-soft: #eee8f4;
  --slate: #4a4a55;
  --slate-soft: #62626d;
  --muted: #64626b;
  --line: rgba(74, 74, 85, 0.14);
  --line-soft: rgba(74, 74, 85, 0.08);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Parisienne", "Snell Roundhand", cursive;

  --shadow-soft: 0 14px 40px rgba(71, 56, 44, 0.08);
  --shadow: 0 28px 70px rgba(71, 56, 44, 0.13);
  --radius: 22px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--slate);
  background-color: var(--paper);
  /* Soft paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 55%, #f3ede5 100%);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--slate);
  letter-spacing: -0.005em;
}
h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.04; }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.1; }
h3 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose-deep); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead { color: var(--slate-soft); font-size: clamp(1.1rem, 1.8vw, 1.22rem); line-height: 1.75; max-width: 34em; }
.body { color: var(--slate-soft); line-height: 1.8; }
.body + .body { margin-top: 14px; }
.script { font-family: var(--script); font-weight: 400; color: var(--slate); }

/* HumanUse wordmark (typeset) */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate);
}
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-soft);
}
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--slate); border-bottom-color: var(--rose); }
.site-nav a[aria-current="page"] { color: var(--slate); border-bottom-color: var(--rose); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--slate);
  background: var(--slate);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #3a3a44; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.6); border-color: var(--slate-soft); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Cards / paper ---------- */
.paper-card {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.swatches { display: flex; gap: 10px; }
.swatches span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(74, 74, 85, 0.08);
}

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 0.94rem; }
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--slate); text-decoration: underline; text-underline-offset: 4px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--slate-soft); }

section { padding: 96px 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  section { padding: 68px 0; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .wordmark-text { font-size: 1.4rem; }
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
}
