/* Sandpiper Forge: site styles. No web fonts, no frameworks, no JavaScript.
   Palette and type rules: company/sandpiper-forge/brand/BRAND-GUIDELINES.md */

:root {
  --charcoal: #202C30;
  --teal: #203B42;
  --sea-glass: #607D80;      /* decorative and large text only on ivory */
  --sea-glass-ink: #4A6467;  /* small text on ivory/white (>= 4.5:1) */
  --sand: #D6C8B0;
  --sand-soft: #ECE5D8;
  --ivory: #F7F6F1;
  --white: #FFFFFF;
  --ink-muted: #4F5B5E;
  --line: #DDD6C8;
  --warn-bg: #FBF0D9;
  --warn-ink: #6B4A00;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space-section: clamp(4rem, 10vw, 7.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--charcoal); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--font-display); color: var(--charcoal); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
h3, .h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sea-glass-ink); margin: 0 0 1.25rem;
}
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--ink-muted); max-width: 38em; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }

/* skip link, build note, draft banner */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--white); padding: 0.75rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; color: var(--white); }
.build-note { background: var(--charcoal); color: var(--sand); font-size: 0.8rem; text-align: center; padding: 0.45rem var(--gutter); }
.draft-banner {
  max-width: var(--wrap); margin: 1.5rem auto 0; padding: 0.9rem 1.1rem; width: calc(100% - 2 * var(--gutter));
  background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #E8CF9A; border-radius: 10px; font-size: 0.95rem;
}
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2em 0.6em; border-radius: 999px; vertical-align: 0.15em; white-space: nowrap;
  background: var(--sand-soft); color: var(--charcoal);
}
.tag--warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag--dark { background: rgba(247, 246, 241, 0.12); color: var(--ivory); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { display: block; padding: 0.25rem 0; }
.brand img { width: 180px; height: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 0.4rem 0; color: var(--charcoal); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--charcoal); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sea-glass); }
@media (min-width: 48rem) { .brand img { width: 210px; } }

/* sections */
.section { padding: var(--space-section) 0; }
.section--tight { padding: calc(var(--space-section) * 0.6) 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand-soft); }
.section--dark { background: var(--teal); color: var(--ivory); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .lead, .section--dark p { color: #DCE3E2; }
.section--dark a:not(.button) { color: var(--white); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 16em; }

/* hero */
.hero { border-bottom: 1px solid var(--sand); overflow: hidden; }
.hero__inner { display: grid; gap: 2.5rem; padding-top: clamp(3.5rem, 10vw, 7rem); }
.hero__copy { padding-bottom: 0.5rem; }
.hero h1 { max-width: 11em; }
.hero__art { justify-self: end; width: min(78%, 26rem); align-self: end; }
.hero__art img { width: 100%; transform: translateY(2.3%); } /* mark's own bottom padding: feet rest on the shoreline */
@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
  .hero__copy { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
  .hero__art { width: 100%; }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }
.button {
  display: inline-block; background: var(--charcoal); color: var(--ivory); text-decoration: none;
  font-weight: 500; font-size: 0.98rem; padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid var(--charcoal);
}
.button:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.button--light { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.button--light:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.1em; }
.link-arrow::after { content: " \2192"; }

/* three-up list */
.grid-3 { display: grid; gap: 2.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.grid-3 li { border-top: 1px solid var(--charcoal); padding-top: 1.25rem; }
.grid-3 p { color: var(--ink-muted); margin: 0; }
.index { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--sea-glass-ink); display: block; margin-bottom: 0.9rem; font-variant-numeric: tabular-nums; }

/* feature (product) */
.feature { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .feature { grid-template-columns: 6fr 5fr; gap: 4rem; } }
.facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.6rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 1px; background: currentColor; opacity: 0.7; }
.phones { display: flex; gap: clamp(0.75rem, 3vw, 1.5rem); justify-content: center; margin: 0; }
.phone { margin: 0; flex: 0 1 15rem; }
.phone img { border-radius: 26px; border: 5px solid #0E1416; box-shadow: 0 24px 48px -24px rgba(10, 20, 24, 0.55); background: #0E1416; }
.phone:nth-child(2) { margin-top: 2.5rem; }
.caption { font-size: 0.85rem; margin-top: 1.25rem; text-align: center; }
.section--dark .caption { color: #B9C6C6; }

/* cards */
.cards { display: grid; gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.card--product { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .card--product { grid-template-columns: 13rem 1fr; gap: 3rem; } }
.card--product .phone { max-width: 13rem; margin: 0 auto; }
.card--quiet { background: transparent; border-style: dashed; }
.card h2, .card h3 { margin-bottom: 0.5rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }

/* prose (policies, support, about) */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .tag { margin-left: 0.25rem; }
.two-col { display: grid; gap: 1rem; }
.prose .inline-links, .prose .faq { padding-left: 0; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 2fr; gap: 5rem; } }
.aside-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea-glass-ink); }
.faq { border-top: 1px solid var(--line); margin: 0; }
.faq dt { font-weight: 600; padding-top: 1.4rem; }
.faq dd { margin: 0.4rem 0 0; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.contact-list { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list .card p:last-child { margin-bottom: 0; }
.email { font-size: 1.1rem; font-weight: 500; word-break: break-word; }
.notice { border-left: 2px solid var(--sea-glass); padding: 0.25rem 0 0.25rem 1rem; color: var(--ink-muted); }
.breadcrumb { font-size: 0.9rem; margin: 0 0 1.5rem; }
.breadcrumb a { color: var(--ink-muted); }

/* footer */
.site-footer { background: var(--charcoal); color: #C9D1D1; padding: clamp(3rem, 8vw, 4.5rem) 0 2rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .site-footer__top { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer__brand img { width: 220px; }
.site-footer__nav { display: flex; gap: 3.5rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 0.55rem; font-size: 0.95rem; }
.site-footer__legal { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(247, 246, 241, 0.14); font-size: 0.85rem; color: #AEB9BA; }

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
}
@media print {
  .site-header nav, .site-footer__nav, .skip-link, .build-note { display: none; }
  body { background: #fff; }
}

/* spacing refinements (review pass) */
.page-head + .section--tight { padding-top: 0; }
.contact-list + .small, .card + .small { margin-top: 1.5rem; }
