:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Helvetica, Arial, sans-serif;
  --ink: #1D1E20;
  --black: #000;
  --accent: #EB3F26;
  --accent-deep: #E7290D;
  --white: #fff;
  --off-white: #F7F7F7;
  --gray: #666;
  --hairline: #e3e3e3;
  --max: 1224px;
  --red-block: #CE1000;
}

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

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

a { color: inherit; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 28px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
}
.site-header nav a {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  color: var(--black);
  text-decoration: none;
  margin-left: 40px;
}
.site-header nav a.is-current { text-decoration: underline; }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, .h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent-deep);
}
.hero-lead {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
}
.section-heading {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--accent);
}
.callout {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.subheading {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.cta {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 14px 34px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover { background: var(--black); color: var(--white); }

.hero { padding: 72px 0 48px; max-width: 780px; }

.hero-split {
  display: grid;
  /* Measured from the live builder site at 1280px: image column 496px, text
     column 645px, 76px between them. Not an even split — an even one wraps the
     headline to three lines instead of the original's two. */
  grid-template-columns: 0.435fr 0.565fr;
  gap: 76px;
  align-items: start;
  padding: 72px 0;
}
.hero-split img { width: 100%; height: auto; display: block; }
.hero-split h1 { margin-bottom: 59px; }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split h1 { margin-bottom: 32px; }
  /* Live mobile type scale, measured at 390px */
  h1, .h1 { font-size: 38px; line-height: 1.2; }
  .hero-lead { font-size: 20px; }
}

/* Entries */
.entry {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 64px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}
.entry-meta .years { font-weight: 600; color: var(--ink); }
.entry h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.entry > p { max-width: 720px; margin-bottom: 34px; color: #222; }

/* Image grids */
.grid { display: grid; gap: 18px; }
.grid-1 { grid-template-columns: minmax(0, 640px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid figure {
  cursor: zoom-in;
  min-width: 0;
}
.grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid var(--hairline);
  padding: 14px;
  display: block;
  transition: border-color 0.2s ease;
}
.grid-1 img, .grid-2 img { height: 300px; }
.grid figure:hover img { border-color: #999; }
.grid figcaption {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Outro */
.outro {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 88px;
  max-width: 720px;
}
.outro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  margin-bottom: 18px;
}
.outro p { margin-bottom: 32px; }

/* Footer — full-bleed red band, contents constrained to --max */
.site-footer {
  background: var(--red-block);
  width: 100%;
  min-height: 272px;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 272px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  text-transform: none;
}
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer nav a {
  color: var(--white);
  display: inline-flex;
  width: 24px;
  height: 24px;
}
.site-footer nav svg {
  width: 100%;
  height: 100%;
}

/* Contact form — label above input, full-width filled fields, ghost-button submit */
#contact-form {
  display: grid;
  gap: 22px;
  max-width: 780px;
}
#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--gray);
  background: var(--off-white);
  border: none;
  border-radius: 0;
  padding: 16px;
  outline: none;
}
/* Live page's own :focus treatment: typed text darkens from gray to ink. Kept for
   fidelity, but on its own it's too subtle to mark position for a keyboard user —
   see the :focus-visible ring below, added for that reason. */
#contact-form input:focus,
#contact-form textarea:focus {
  color: var(--ink);
}
/* Real focus ring — :focus-visible so it shows for keyboard nav, not mouse clicks. */
#contact-form input:focus-visible,
#contact-form textarea:focus-visible,
#contact-form .cta:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--gray);
  opacity: 0.5;
}
#contact-form textarea {
  resize: vertical;
  min-height: 96px;
}
#contact-form .cta {
  justify-self: start;
}
/* The live page's submit button keeps its ghost look on hover — no color/background
   invert like the site's other .cta uses — so only override the hover here. */
#contact-form .cta:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--black);
}
#form-status {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
}

/* Honeypot — off-screen, not display:none (some bots detect that) */
.hp {
  position: absolute;
  left: -9999px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  cursor: zoom-out;
  z-index: 50;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
}
.lightbox figcaption { font-size: 13px; color: var(--gray); }

/* Responsive */
@media (max-width: 820px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero { padding-top: 48px; }
  .hero h1 br { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid img, .grid-1 img, .grid-2 img { height: 240px; }
  .site-header { padding: 20px 24px; }
  .site-header nav a { margin-left: 18px; }
}
