/* Scampini family hub — preview. Edit sites.json, then run tools/build_site.py */
:root {
  --paper: #f4ebe0;
  --paper-deep: #ebe1d3;
  --card: #fffaf3;
  --ink: #1c1410;
  --ink-soft: #5c5146;
  --ink-faint: #8a7d70;
  --gold: #c4a574;
  --gold-deep: #9c7a45;
  --rule: color-mix(in srgb, var(--gold) 70%, var(--ink) 30%);
  --shadow: 0 18px 40px -24px rgba(28, 20, 16, 0.45);
  --shadow-hover: 0 22px 48px -20px rgba(28, 20, 16, 0.5);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --focus: 3px solid var(--ink);
  --radius: 1.15rem;
}

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(196, 165, 116, 0.16), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.4rem;
}
.skip:focus, .skip:focus-visible {
  top: 0.75rem;
  outline: var(--focus);
  outline-offset: 3px;
}

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

.mast {
  padding: 1.35rem 0 0.5rem;
}
.mast__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding-bottom: 1.05rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--gold-deep); }
.wordmark:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}
.mast__domain {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.hero {
  padding: 3.2rem 0 2.6rem;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.lede {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

.gallery {
  padding: 0 0 2.4rem;
}
.gallery__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.gallery__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
}
.gallery__count {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--paper-deep));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  overflow: hidden;
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--gold) 70%, var(--ink) 10%);
}
.card:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

.card__media {
  aspect-ratio: 8 / 5;
  background: #1a1410;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}
.card__host {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.card__body h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.card__blurb {
  margin: 0.35rem 0 0.7rem;
  color: var(--ink-soft);
  flex: 1;
}
.card__cta {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.card__cta::after {
  content: " →";
  font-family: var(--sans);
}
.card:hover .card__cta { color: var(--gold-deep); }

.foot {
  border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding: 1.6rem 0 2.4rem;
  color: var(--ink-soft);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.foot p { margin: 0; }
.foot a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
.foot a:hover { color: var(--gold-deep); }
.foot a:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}


.private {
  padding: 0.5rem 0 4.25rem;
}
.private__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.private__header h2 {
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
}
.private__note {
  margin: 1.15rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.private__list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.private__link {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr auto;
  gap: 0.6rem 1.1rem;
  align-items: baseline;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  text-decoration: none;
}
.private__link:hover .private__name,
.private__link:hover .private__host { color: var(--gold-deep); }
.private__link:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}
.private__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
}
.private__blurb {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.private__host {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  font-weight: 600;
}
@media (max-width: 719px) {
  .private__link {
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.8rem;
  }
  .private__blurb { grid-column: 1 / -1; }
}

/* 404 */
.lost {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem var(--gutter);
}
.lost h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.7rem;
}
.lost p { color: var(--ink-soft); margin: 0 0 1.4rem; }
.lost a.button {
  display: inline-block;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
}
.lost a.button:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}
