/* ShadlockShop shared stylesheet
   Styles index.html (body.page-home) and privacy.html (body.page-doc).
   Brand palette and type are defined once below. */

:root {
  --bg: #F8F6F2;          /* warm off-white */
  --text: #1A1A1A;        /* soft black */
  --meta: #8A8A8A;        /* warm gray */
  --accent: #C9A0A0;      /* dusty rose */
  --accent-deep: #B68888; /* darker rose for hover contrast */
  --rule: #E8E4DD;        /* hairline rule */

  --measure-doc: 720px;
  --measure-home: 960px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Links ---- */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-deep);
}

/* ---- Focus states ---- */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* ============================================================
   Shared header
   ============================================================ */
.site-header {
  width: 100%;
  max-width: var(--measure-home);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--meta);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

/* ============================================================
   Shared footer
   ============================================================ */
.site-footer {
  margin-top: auto;
  width: 100%;
  max-width: var(--measure-home);
  margin-left: auto;
  margin-right: auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--rule);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--meta);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.footer-meta {
  margin: 0;
  color: var(--meta);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   Landing page (body.page-home)
   ============================================================ */
.home {
  width: 100%;
  max-width: var(--measure-home);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 64px;
}

.hero-logo {
  width: 260px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto 36px;
}

.hero-title {
  margin: 0 auto 18px;
  max-width: 16ch;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.hero-subline {
  margin: 0 auto 34px;
  max-width: 54ch;
  color: var(--text);
  font-size: 1.075rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-secondary:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Pull-quote / positioning band */
.quote-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 52px var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  text-align: center;
}

.pull-quote {
  position: relative;
  margin: 0 auto;
  max-width: 30ch;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.pull-quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 26px;
  background: var(--accent);
}

/* What we make */
.about {
  max-width: 60ch;
  margin: 0 auto;
  padding: 64px 0 8px;
  text-align: center;
}

.about h2 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.about p {
  margin: 0;
  font-size: 1.075rem;
  line-height: 1.65;
}

/* Transparency line */
.transparency {
  max-width: 60ch;
  margin: 56px auto 8px;
  text-align: center;
  color: var(--meta);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============================================================
   Document / privacy page (body.page-doc, main.doc)
   ============================================================ */
.doc {
  width: 100%;
  max-width: var(--measure-doc);
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
}

.doc h1 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.doc .doc-meta {
  margin: 0 0 36px;
  color: var(--meta);
  font-size: 0.9rem;
}

.doc section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.doc h2 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 28px 0 8px;
  font-weight: 600;
  font-size: 1.075rem;
  line-height: 1.4;
}

.doc p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.doc a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.doc a:hover {
  color: var(--text);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 22px var(--gutter);
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-logo {
    width: 200px;
    margin-bottom: 28px;
  }

  /* Stack the two CTAs on narrow screens */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .quote-band {
    padding: 44px var(--gutter);
  }

  .about {
    padding: 48px 0 8px;
  }

  .transparency {
    margin-top: 44px;
  }

  .doc section {
    margin-top: 36px;
    padding-top: 32px;
  }
}

/* Honor reduced-motion preference (no animations are used, but disable transitions) */
@media (prefers-reduced-motion: reduce) {
  a,
  .btn {
    transition: none;
  }
}
