/* Johnstone Lamb: black and white, Lato, tracked caps. Brand rules live in CLAUDE.md. */

:root {
  --ink: #141414;
  --ground: #F5F5F3;
  --white: #FFFFFF;
  --mid: #4A4A4A;          /* secondary text on --ground, 8:1 */
  --mid-dark: #B8B8B4;     /* secondary text on --ink, 9:1 */
  --line: #CFCEC9;
  --gutter: clamp(20px, 6vw, 80px);
  --section: clamp(56px, 8vw, 96px);
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--mid); }

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

h1, h2, h3, p { margin: 0; }

main > section,
.site-header,
.site-footer {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

main > section { padding-block: var(--section); display: flex; flex-direction: column; gap: 40px; }
main > section.no-top { padding-top: 0; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.display {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.lede { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--mid); }
.note { font-size: 15px; color: var(--mid); }

h3 { font-size: 22px; font-weight: 700; }

.tags {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ---------- layout helpers ---------- */

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head.narrow { max-width: 760px; }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 64px; }

.aside { max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--mid); }

.grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }

/* ---------- header ---------- */

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 8px 40px; flex-wrap: wrap; }

.site-header nav a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
}

/* ---------- hero ---------- */

.hero { padding-top: 56px !important; }

.wordmark {
  font-size: clamp(96px, 27vw, 360px);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
}

.rule { border: 0; height: 3px; margin: 0; background: var(--ink); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

/* ---------- buttons ---------- */

.actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: #333; border-color: #333; color: var(--ground); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }

.btn-light { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-outline-light { background: transparent; border-color: var(--ground); color: var(--ground); }
.btn-outline-light:hover { background: var(--ground); color: var(--ink); border-color: var(--ground); }

/* ---------- dark sections ---------- */

.dark { background: var(--ink); color: var(--ground); }
.dark a { color: var(--ground); }
.dark .eyebrow,
.dark .lede,
.dark p { color: var(--mid-dark); }
.dark h2, .dark h3 { color: var(--ground); }
.dark .grid-3 p { font-size: 17px; line-height: 1.6; }

/* ---------- price list ---------- */

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 80px;
  border-top: 2px solid var(--ink);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 22px);
}

.price { font-weight: 700; white-space: nowrap; }
.price small { font-size: 15px; font-weight: 400; color: var(--mid); }

/* ---------- cards ---------- */

.card {
  border: 2px solid var(--ink);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
}
.card-white { background: var(--white); }
.card h3 { letter-spacing: 0.1em; text-transform: uppercase; }
.card p { font-size: 17px; line-height: 1.6; color: var(--mid); }
.card .card-figure { font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.card .card-figure small { font-size: 17px; font-weight: 400; color: var(--mid); }

.card-link {
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
}

/* ---------- contact ---------- */

.contact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 80px;
  align-items: center;
}

.contact-actions { align-items: flex-start; gap: 16px; }

/* ---------- footer ---------- */

.site-footer {
  padding-block: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
}

.site-footer .brand { font-size: 16px; }
.footer-meta { font-size: 15px; letter-spacing: 0.06em; color: var(--mid); }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .contact,
  .grid-2,
  .grid-3,
  .price-list { grid-template-columns: minmax(0, 1fr); }

  .hero-grid { gap: 32px; }
  .hero-sheep { max-width: min(100%, 420px); margin-inline: auto; }

  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }

  .price-list { column-gap: 0; }

  .site-header { padding-block: 16px; }
  .site-header nav { gap: 0 24px; }
  .site-header nav a { font-size: 13px; }

  .actions .btn, .contact-actions .btn { width: 100%; }
  .contact-actions { align-items: stretch; }
}
