/* ============================================================
   Reach Creative Group — shared stylesheet
   Design direction: a print studio's site. Editorial, ink-forward,
   generous margins like a well-set page. One signature: a saturated
   press-ink blue used with restraint against warm paper-white.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  /* Palette — "press proof": paper white, rich ink, one spot color */
  --paper:      #FBFAF7;   /* warm paper white (base bg) */
  --paper-2:    #F1EEE7;   /* slightly deeper panel */
  --ink:        #17171A;   /* near-black text, not pure black */
  --ink-soft:   #55555C;   /* secondary text */
  --rule:       #D9D5CB;   /* hairline rules / borders */
  --spot:       #1B3FE0;   /* press-ink blue — the one accent */
  --spot-deep:  #1230B0;   /* accent hover */

  /* Type */
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Arial", system-ui, sans-serif;

  /* Type scale (1.25 major third) */
  --step--1: 0.8rem;
  --step-0:  1rem;
  --step-1:  1.25rem;
  --step-2:  1.563rem;
  --step-3:  1.953rem;
  --step-4:  2.441rem;
  --step-5:  3.052rem;
  --step-6:  3.815rem;

  /* Spacing */
  --gap: 1.5rem;
  --measure: 68ch;        /* comfortable line length */
  --page-max: 1200px;
  --page-pad: clamp(1.25rem, 5vw, 4rem);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: var(--step-5); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1em; max-width: var(--measure); }
a  { color: var(--spot); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--spot-deep); }
img { max-width: 100%; height: auto; display: block; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-pad); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--panel { background: var(--paper-2); }
.stack > * + * { margin-top: var(--gap); }

/* Visible keyboard focus */
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--paper);
  z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  font-family: var(--serif); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand span { color: var(--spot); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: var(--step-1); color: var(--ink); padding: 0.25rem 0.5rem;
}
.nav ul {
  list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0;
}
.nav a { color: var(--ink); text-decoration: none; font-size: var(--step-0); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--spot); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav[data-open="true"] { max-height: 20rem; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--page-pad) 1rem; }
  .nav li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: 0.85rem 0; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero__eyebrow {
  font-family: var(--serif); font-style: italic;
  color: var(--spot); font-size: var(--step-1); margin-bottom: 0.75rem;
}
.hero h1 { max-width: 16ch; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: var(--step-0);
  padding: 0.85rem 1.5rem; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--spot); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn--primary { background: var(--spot); color: var(--paper); }
.btn--primary:hover { background: var(--spot-deep); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--spot); }
.btn--ghost:hover { background: var(--spot); color: var(--paper); }

/* ---- Services / feature grid ---- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service {
  border-top: 2px solid var(--ink); padding-top: 1rem;
}
.service h3 { margin-bottom: 0.35em; }
.service p { color: var(--ink-soft); }

/* ---- Portfolio ---- */
.folio { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.folio figure { margin: 0; }
.folio img { border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 4/3; object-fit: cover; }
.folio figcaption { margin-top: 0.6rem; color: var(--ink-soft); font-size: var(--step--1); }

/* ---- Forms ---- */
.form { max-width: 640px; }
.form .field { margin-bottom: 1.25rem; }
.form label { display: block; margin-bottom: 0.35rem; font-size: var(--step-0); }
.form input, .form textarea, .form select {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--spot); outline: none; box-shadow: 0 0 0 3px rgba(27,63,224,0.12);
}
.form textarea { min-height: 8rem; resize: vertical; }
/* honeypot — hidden from humans, catches naive bots */
.form .gotcha { position: absolute; left: -9999px; opacity: 0; }
.form__note { font-size: var(--step--1); color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--rule); margin-top: 2rem;
  padding-block: 2.5rem; color: var(--ink-soft); font-size: var(--step--1);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--spot); }

/* ---- Utility ---- */
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
