/* Hollowpine Labs — hollowpine.dev
   Self-contained site styles. No frameworks. */

:root {
  --paper: #f3efe4;
  --paper-2: #e8e1d0;
  --ink: #16231b;
  --ink-soft: #2c3c33;
  --muted: #5a6b5f;
  --line: #d2c9b4;
  --pine: #1c4530;
  --pine-mid: #2b5c40;
  --moss: #4a7a58;
  --resin: #c17b24;
  --resin-deep: #8e5614;
  --card: #fffaf0;
  --night: #102019;
  --cream: #f3efe4;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --wide: 70rem;
  --radius: 1.15rem;
  --header-h: 4.5rem;
}

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

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2");
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--resin);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--pine);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
}

.skip:focus { top: 0.75rem; }

/* Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

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

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

.brand .mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  color: var(--pine);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pine);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--resin);
}

/* Hero & typography
   ------------------------------------------------------------------ */

main { flex: 1; }

.hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 6.4vw, 4.35rem);
  line-height: 1.06;
  max-width: 16ch;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.section {
  padding: 2.75rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--moss);
  margin: 0.5rem 0 0;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--line);
}

.ornament svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--pine);
}

/* App card
   ------------------------------------------------------------------ */

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 1.85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--pine) 40%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--pine) 55%, transparent);
}

.app-card img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.2rem;
  flex: none;
}

.app-card h2 { margin-bottom: 0.25rem; }

.app-card p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}

.app-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  background: color-mix(in srgb, var(--moss) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--moss) 28%, var(--line));
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.go {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pine);
  margin-left: auto;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.contact-grid p { margin: 0 0 0.75rem; color: var(--ink-soft); }

address {
  font-style: normal;
  margin: 0;
  color: var(--ink);
}

.email {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--pine);
}

.email:hover { color: var(--resin-deep); text-decoration: underline; }

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

.site-footer {
  margin-top: auto;
  background: var(--pine);
  color: color-mix(in srgb, var(--cream) 86%, var(--pine));
  padding: 2.4rem 0 2rem;
}

.site-footer a { color: #f0d19a; }

.site-footer a:hover { color: #fff6e4; }

.footer-inner {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.75rem 2rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.footer-brand .mark {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--cream);
}

.footer-note {
  margin: 0.7rem 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--cream) 75%, var(--pine));
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-legal {
  margin: 0;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--cream) 80%, var(--pine));
}

/* Product page
   ------------------------------------------------------------------ */

.product-hero {
  background:
    radial-gradient(900px 420px at 80% -10%, #2a5a3e 0%, transparent 60%),
    var(--night);
  color: var(--cream);
  padding: clamp(2.2rem, 5vw, 4rem) 0 3.2rem;
}

.product-hero h1 {
  color: var(--cream);
  max-width: 18ch;
}

.product-hero .lede { color: color-mix(in srgb, var(--cream) 82%, #8aa48c); }

.product-hero .eyebrow { color: #e0b15a; }

.product-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem 1.6rem;
  align-items: center;
}

.product-top img {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 1.35rem;
  box-shadow: 0 10px 30px -12px #000;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
}

.feature-panel h2 { margin-bottom: 0.9rem; }

.feature-panel ul,
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.15rem;
}

.feature-panel li,
.prose li { margin: 0.4rem 0; }

.tagline {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.disclaimer {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

/* Legal / prose
   ------------------------------------------------------------------ */

.prose {
  max-width: var(--measure);
  padding: 2.5rem 0 4rem;
}

.prose .eyebrow { margin-bottom: 0.4rem; }

.prose h1 {
  max-width: none;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.4rem;
}

.updated {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.45rem;
}

.prose p { margin: 0 0 0.9rem; }

.prose .lead-p {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* 404
   ------------------------------------------------------------------ */

.not-found {
  padding: clamp(3rem, 8vw, 6rem) 0 5rem;
  text-align: left;
}

.not-found h1 { max-width: 12ch; }

/* Utilities
   ------------------------------------------------------------------ */

.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;
}

@media (max-width: 800px) {
  .feature-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner { gap: 1.4rem; }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.7rem 0 0.65rem;
    gap: 0.45rem 1rem;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.85rem 1.15rem;
  }
}

@media (max-width: 600px) {
  body { font-size: 1.05rem; }

  .header-inner,
  .wrap,
  .footer-inner {
    width: min(var(--wide), calc(100% - 1.6rem));
  }

  .app-card,
  .product-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .app-card img,
  .product-top img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .go { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}
