/* Northfield site styles */
:root {
  --night: #17213f;
  --on-night: #f4f2ec;
  --on-night-muted: #b8c0d4;
  --wash: #c9a27a;
  --paper: #fafaf7;
  --ink: #26282e;
  --muted: #5b6070;
  --rule: rgba(38, 40, 46, .14);
  --rule-night: rgba(244, 242, 236, .16);
  --swatch: #efe7d8;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --rail: 210px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--wash); outline-offset: 3px; }
p { text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header { background: var(--night); border-bottom: 1px solid var(--rule-night); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 16px; opacity: .86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--wash); text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* Home hero: night field */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.hero .scene { position: absolute; right: 0; bottom: 0; width: max(100%, 960px); max-width: none; pointer-events: none; }
.hero .scene img { width: 100%; height: auto; max-width: none; }
.hero-star { display: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: calc(max(100vw, 960px) * 0.06875 + 48px); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9.4vw, 88px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.hero .rule { width: 72px; height: 2px; background: var(--wash); border: 0; margin-top: 36px; }
.hero p { font-size: 20px; color: var(--on-night-muted); max-width: 28em; margin-top: 24px; }
.actions { margin-top: 36px; }
.btn { display: inline-block; background: var(--on-night); color: var(--night); text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 2px; }
.btn:hover { background: #fff; }

/* Editorial blocks: label rail on the left, content on the right */
.hero + .block { padding-top: 72px; }
.block { padding: 88px 0; }
.block + .block { padding-top: 0; }
.block .grid { display: grid; grid-template-columns: var(--rail) 1fr; column-gap: 56px; border-top: 1px solid var(--rule); padding-top: 36px; }
.label { align-self: start; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--night); display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.label::before { content: ""; flex: none; width: 11px; height: 16px; background: var(--wash);
  clip-path: polygon(50% 0, 61% 52%, 100% 62%, 61% 72%, 50% 100%, 39% 72%, 0 62%, 39% 52%); }
.big { font-family: var(--serif); font-size: clamp(25px, 2.6vw, 36px); line-height: 1.3; color: var(--ink); }
.big span { display: block; }
.body { color: var(--muted); max-width: 36em; margin-top: 22px; font-size: 19px; }

.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 44px; }
.phases > div { border-top: 1px solid var(--rule); padding-top: 20px; }
.phases h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.phases p { color: var(--muted); margin-top: 8px; font-size: 17.5px; }

/* Contact: night, same rail layout */
.contact { background: var(--night); color: var(--on-night); padding: 88px 0 96px; }
.contact .grid { display: grid; grid-template-columns: var(--rail) 1fr; column-gap: 56px; }
.contact .label { color: var(--on-night); }
.contact .big { color: var(--on-night); max-width: 22em; }
.email { display: inline-block; margin-top: 30px; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 30px); color: var(--on-night); text-decoration-color: var(--wash); text-decoration-thickness: 1px; text-underline-offset: 8px; word-break: break-word; }
.contact .note { margin-top: 26px; font-size: 15px; color: var(--on-night-muted); }

/* Footer */
.site-footer { padding: 32px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer img { height: 30px; width: auto; }
.site-footer p { color: var(--muted); font-size: 15px; }
.site-footer a { color: var(--muted); text-underline-offset: 4px; }

/* Story page */
.hero.story { background: var(--swatch); color: var(--ink); }
.hero.story::after { content: ""; position: absolute; right: 3%; top: 10%; bottom: 8%; width: 30%; background: url('images/hero-sketch.webp') right center / contain no-repeat; opacity: .7; pointer-events: none; }
.hero.story .wrap { padding-top: 112px; padding-bottom: 120px; }
.hero.story h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.08; white-space: normal; text-wrap: balance; }
.hero.story p { color: #4f5462; max-width: 32em; margin-top: 28px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.swatch { margin: 0; }
.pinked { background: var(--swatch); --z: 7px; padding: var(--z) 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.pinked img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.closing { margin-top: 48px; font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); color: var(--ink); }

@media (max-width: 1120px) { .hero.story::after { width: 26%; } }
@media (max-width: 980px) {
  .hero.story::after { display: none; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .bar { flex-direction: column; gap: 10px; padding-top: 16px; padding-bottom: 12px; }
  .brand img { height: 30px; }
  .nav ul { gap: 24px; }
  .label { padding-top: 0; }
  .nav a { font-size: 15px; }
  .site-header { position: static; }
  .hero .wrap { padding-top: 64px; padding-bottom: 112px; }
  .hero-star { display: block; position: absolute; top: 18px; right: 20px; width: 22px; height: auto; }
  .hero + .block { padding-top: 56px; }
  .hero p { font-size: 18px; }
  .block { padding: 64px 0; }
  .block .grid, .contact .grid { grid-template-columns: 1fr; row-gap: 18px; }
  .contact { padding: 64px 0 72px; }
  .phases { grid-template-columns: 1fr; margin-top: 32px; }
  .hero.story .wrap { padding-top: 72px; padding-bottom: 80px; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* v14: copy with several paragraphs per section */
.body + .body { margin-top: 14px; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--night); text-decoration-color: var(--wash); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact .lead { margin-top: 16px; max-width: 36em; color: var(--on-night-muted); font-size: 19px; }
.block .closing { margin-top: 36px; max-width: 30em; }
.sketches { padding-bottom: 72px; }
.hero.story p + p { margin-top: 14px; }


/* v17: medium serif lead paragraph */
.mid { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 25px); line-height: 1.45; color: var(--ink); max-width: 30em; }
.mid + .body { margin-top: 20px; }
