:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e6;
  --bg: #ffffff;
  --accent: #d0532f; /* the single accent colour */
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo { font-weight: 600; letter-spacing: -0.01em; }
nav a { margin-left: 32px; font-size: 15px; color: var(--muted); transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

/* Hero */
.hero { padding-top: 160px; padding-bottom: 140px; }
.eyebrow { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
h1 { font-size: 52px; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; max-width: 780px; }
.hero-sub { margin-top: 28px; max-width: 560px; color: var(--muted); font-size: 19px; }

.btn {
  display: inline-block; margin-top: 44px;
  padding: 14px 28px; font: inherit; font-size: 15px;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 2px; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover, .btn:focus-visible { opacity: .85; }

/* Sections */
section { scroll-margin-top: 80px; }
h2 { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 56px; }

.work { padding-top: 80px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 40px; }
.thumb {
  aspect-ratio: 4 / 3;
  background: hsl(calc(var(--tint) * 18 + 20), 8%, calc(96% - var(--tint) * 1%));
  display: flex; align-items: flex-end; padding: 18px;
  margin-bottom: 22px;
}
.thumb span { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.card h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card:hover h3 { color: var(--accent); }

.about { padding-top: 80px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.about p { font-size: 22px; line-height: 1.55; max-width: 760px; font-weight: 300; }

.contact { padding-top: 80px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.contact-sub { color: var(--muted); margin-bottom: 48px; max-width: 520px; }
form { max-width: 560px; }
.field { margin-bottom: 28px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 0; border: 0; border-bottom: 1px solid #cfcfcc;
  background: transparent; border-radius: 0; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #b3261e; }
form .btn { margin-top: 12px; }
#form-status { margin-top: 20px; font-size: 15px; min-height: 1.6em; }
#form-status.error { color: #b3261e; }
#form-status.ok { color: var(--ink); }

.site-footer { padding-top: 40px; padding-bottom: 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 40px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  nav a { margin-left: 18px; }
  .hero { padding-top: 100px; padding-bottom: 90px; }
}
