/* Slot Canyon Studio site. Colours from design/style-spec.md (contour and night tokens, shown to buyers as Sandstone and Midnight; brand Accent). */

@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("assets/fonts/Spectral-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F3EEE4;
  --ink: #2A2520;
  --sub: #6E6457;
  --rule: #B9AE9C;
  --accent: #C2410C;
  --night-bg: #0F1A24;
  --night-ink: #EEE7D9;
  --night-sub: #9DAAB5;
  --night-rule: #3A4C5C;
  --night-accent: #FFB547;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2 { font-weight: 600; line-height: 1.12; margin: 0 0 20px; letter-spacing: 0.005em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
p { margin: 0 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand img { width: 230px; }
.header-link {
  font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.header-link:hover { color: var(--accent); }

/* No single word left alone on a paragraph's last line (D15). The hero lines use balance instead. */
p, .cap em, .layout-grid .cap { text-wrap: pretty; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lede { font-size: 21px; color: var(--ink); max-width: 30em; text-wrap: balance; }
.small { font-size: 15px; color: var(--sub); text-wrap: balance; }
.button {
  display: inline-block; margin: 8px 0 4px;
  background: var(--accent); color: #FFFFFF;
  font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 15px 28px; border-radius: 2px;
}
.button:hover, .button:focus-visible { background: #A6370A; }
.hero-art img { width: 100%; box-shadow: 0 1px 2px rgba(42, 37, 32, 0.12), 0 12px 32px rgba(42, 37, 32, 0.14); }
figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--sub); }

/* What we make */
.make { padding: 80px 0; border-top: 1px solid var(--rule); }
.intro { max-width: 40em; color: var(--ink); }
.gallery {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
}
.gallery a { display: block; text-decoration: none; }
.gallery img { width: 100%; box-shadow: 0 1px 2px rgba(42, 37, 32, 0.12), 0 8px 22px rgba(42, 37, 32, 0.12); transition: transform 0.2s ease; }
.gallery a:hover img { transform: translateY(-3px); }
.cap { display: block; margin-top: 14px; font-size: 15px; color: var(--sub); line-height: 1.4; }
.cap strong { display: block; font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.cap em { display: block; margin-top: 6px; font-style: normal; color: var(--ink); }
.more { margin-top: 40px; }

/* After the hike */
.after { padding: 88px 0; border-top: 1px solid var(--rule); }
.after p { font-size: 20px; }
.maker-note { font-family: var(--serif); font-style: italic; color: var(--ink); }
.maker-sign { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); margin: 28px 0 0; }

/* Four layouts: columns sized so every preview is the same height (3:4 portraits, one 4:3) */
.layouts { padding: 88px 0; }
.layout-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: 9fr 9fr 16fr 9fr; gap: 28px;
}
.layout-grid img { width: 100%; box-shadow: 0 1px 2px rgba(42, 37, 32, 0.12), 0 8px 22px rgba(42, 37, 32, 0.12); }
.layout-grid .cap { font-size: 15px; color: var(--ink); }
.layout-grid .cap strong { color: var(--ink); margin-bottom: 2px; }
.availability { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--sub); }
.more a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.more a:hover { color: var(--accent); }

/* Two styles: Night section */
.styles { background: var(--night-bg); color: var(--night-ink); padding: 88px 0; }
.styles .eyebrow { color: var(--night-accent); }
.styles p { color: var(--night-ink); }
.styles-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair img { width: 100%; outline: 1px solid var(--night-rule); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.styles figcaption { color: var(--night-sub); }

/* How */
.how { padding: 88px 0; border-top: 1px solid var(--rule); }
.how p.maker-note { font-size: 21px; line-height: 1.6; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; color: var(--sub); font-size: 15px; line-height: 1.55; }
.credits { max-width: 60em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 20px 0 0; }
.foot-row a { color: var(--ink); }
.foot-row a:hover { color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .styles-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .make, .styles, .how, .after, .layouts { padding: 64px 0; }
  .layout-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .layout-grid .lay-landscape { grid-column: 1 / -1; order: 3; }
  .layout-grid .lay-elevation { order: 2; grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
  .layout-grid .lay-classic, .layout-grid .lay-minimal { order: 1; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 180px; }
  .header-link { font-size: 12px; letter-spacing: 0.1em; }
  .lede { font-size: 19px; }
  .button { display: block; text-align: center; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .cap { font-size: 13px; }
  .cap strong { font-size: 14px; letter-spacing: 0.04em; }
  .pair { gap: 14px; }
  .after p { font-size: 18px; }
  .how p.maker-note { font-size: 19px; }
  .layout-grid { gap: 28px 14px; }
  .layout-grid .lay-elevation { width: calc(50% - 7px); }
  .layout-grid .cap { font-size: 14px; }
  .availability { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery a:hover img { transform: none; }
}
