/* matripley.co.uk — draft static landing page. No build step, no external JS. */

:root {
  --bg: #f4efe6;
  --bg-alt: #ebe4d6;
  --paper: #fffdf8;
  --ink: #1a2420;
  --muted: #4d5a54;
  --accent: #1b4f43;
  --accent-hover: #14382f;
  --line: #d5ccbc;
  --focus: #c45c26;
  --max: 68rem;
  --narrow: 40rem;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .wordmark, .amount, .eyebrow {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 6vw, 3.4rem);
  margin: 0.2em 0 0.5em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.05rem);
  margin: 0 0 1.1rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
.btn:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.wrap.narrow,
.narrow {
  width: min(100%, var(--narrow));
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.1rem;
  font-size: 0.92rem;
}

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

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

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

.section {
  padding: clamp(2.8rem, 7vw, 4.8rem) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section.cta {
  text-align: left;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid.two {
  grid-template-columns: 1fr;
}

.grid.three {
  grid-template-columns: 1fr;
}

.card,
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.35rem 1.4rem 1.4rem;
}

.aside,
.intro {
  color: var(--muted);
  margin-top: 1.35rem;
}

.intro {
  margin-top: 0;
  margin-bottom: 1.4rem;
  max-width: 42rem;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
}

.quote figcaption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.price {
  margin: 0 0 1rem;
}

.amount {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: 0.15em;
}

.email-line {
  margin-top: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--muted);
}

@media (min-width: 720px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .grid.three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
