/* Palette — beige-led, dusty pink as the one accent. Taupe stays a quiet neutral, never the bold color. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f7f2ea;
  --color-surface: #ece2d3;
  --color-text: #3a2f28;
  --color-accent: #c9b8a3;
  --color-accent-2: #a9977f;
  --color-divider: color-mix(in srgb, #3a2f28 14%, transparent);

  --color-neutral-100: #fbf7f1;
  --color-neutral-200: #f2e9dc;
  --color-neutral-300: #e3d5c2;
  --color-neutral-400: #c9b8a3;
  --color-neutral-500: #ab9682;
  --color-neutral-600: #8f7b68;
  --color-neutral-700: #6f5d4d;
  --color-neutral-800: #51423a;
  --color-neutral-900: #362c26;

  --color-accent-100: #faf7f2;
  --color-accent-200: #f2ebe1;
  --color-accent-300: #e4d8c8;
  --color-accent-400: #d6c8b5;
  --color-accent-500: #c9b8a3;
  --color-accent-600: #ab9682;
  --color-accent-700: #8f7b68;
  --color-accent-800: #6f5d4d;
  --color-accent-900: #4a3f34;

  --color-accent-2-100: #f7f1e9;
  --color-accent-2-200: #ece0d1;
  --color-accent-2-300: #dbc7ae;
  --color-accent-2-400: #c2a888;
  --color-accent-2-500: #a9977f;
  --color-accent-2-600: #8a7052;
  --color-accent-2-700: #6c563d;
  --color-accent-2-800: #4f3f2c;
  --color-accent-2-900: #332819;

  --font-heading: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-heading-weight: 400;
  --font-body: "Work Sans", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-5: 22px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #362c26 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #362c26 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #362c26 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.washed{filter:saturate(0.7) contrast(0.9) brightness(1.06) opacity(0.96)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — dusty pink (--color-accent-*) is the one bold color;
   taupe (--color-accent-2-*) stays a quiet secondary, never the headline color.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.16; letter-spacing: 0; margin: 0 0 var(--space-2);
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-600); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-sm);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent-300); color: var(--color-accent-900); }
.btn-primary:hover { background: var(--color-accent-400); }
.btn-primary:active { background: var(--color-accent-500); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 26%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent-700);
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent-600); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent-600); }
.radio input:checked + .dot {
  border-color: var(--color-accent-700); background: var(--color-accent-700);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent-600); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent-700); color: var(--color-neutral-100); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent-600); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-700); font-family: var(--font-body); font-weight: 600; }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; line-height: 1.22;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600;
}
.tag-accent { background: var(--color-accent-200); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent-600); color: var(--color-accent-700); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; margin-right: auto; letter-spacing: 0.01em;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent-700); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* logo tiles: force the image to actually fill+contain within its fixed-height box (max-height alone can fail to constrain) */
[style*="justify-content:center;height:90px"] img,
[style*="justify-content:center;height:130px"] img,
[style*="justify-content: center; height: 90px"] img,
[style*="justify-content: center; height: 130px"] img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
[style*="justify-content:center;height:90px"],
[style*="justify-content:center;height:130px"],
[style*="justify-content: center; height: 90px"],
[style*="justify-content: center; height: 130px"] { overflow: hidden; }

/* — responsive — */
img, video { max-width: 100%; }
html, body { overflow-x: hidden; }

/* defer offscreen photo-grid rendering/decoding to speed initial load */
[style*="aspect-ratio:1;border-radius:var(--radius-lg);overflow:hidden"],
[style*="aspect-ratio: 1;border-radius:var(--radius-lg);overflow:hidden"] {
  content-visibility: auto;
  contain-intrinsic-size: 300px 300px;
}

@media (max-width: 900px) {
  [style*="grid-template-columns:1.4fr"], [style*="grid-template-columns: 1.4fr"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(4,"], [style*="grid-template-columns: repeat(4,"] { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: var(--space-2); }
  .nav > a:first-child { flex: 1 0 100%; margin-bottom: var(--space-1); }
  h1 { font-size: clamp(24px, 7vw, 34px) !important; }
  h2 { font-size: clamp(20px, 5.5vw, 26px) !important; }

  /* two-column split sections (hero/photo + text, mission, founder, contact form) */
  [style*="grid-template-columns:1.4fr"], [style*="grid-template-columns: 1.4fr"],
  [style*="grid-template-columns:1fr 0.85fr"], [style*="grid-template-columns: 1fr 0.85fr"],
  [style*="grid-template-columns:0.8fr"], [style*="grid-template-columns: 0.8fr"],
  [style*="grid-template-columns:1.3fr"], [style*="grid-template-columns: 1.3fr"],
  [style*="grid-template-columns:1.1fr"], [style*="grid-template-columns: 1.1fr"],
  [style*="grid-template-columns:1fr 1fr"], [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* card / grid rows */
  [style*="grid-template-columns:repeat(2,"], [style*="grid-template-columns: repeat(2,"],
  [style*="grid-template-columns:repeat(3,"], [style*="grid-template-columns: repeat(3,"],
  [style*="grid-template-columns:repeat(4,"], [style*="grid-template-columns: repeat(4,"] { grid-template-columns: repeat(2,1fr) !important; }

  /* fixed-column logo strips (venues/sponsors/charities) */
  [style*="grid-template-columns:140px"], [style*="grid-template-columns: 140px"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(2,340px)"], [style*="grid-template-columns: repeat(2,340px)"],
  [style*="grid-template-columns:repeat(2, 340px)"] { grid-template-columns: repeat(2,1fr) !important; max-width: 100% !important; }

  /* masonry-style gallery with fixed row height */
  [style*="grid-auto-rows:160px"], [style*="grid-auto-rows: 160px"] { grid-template-columns: repeat(2,1fr) !important; grid-auto-rows: 120px !important; }
  [style*="grid-row:span 2"], [style*="grid-row: span 2"] { grid-row: span 1 !important; }
  [style*="grid-column:span 2"], [style*="grid-column: span 2"] { grid-column: span 1 !important; }

  [style*="padding-top:calc(var(--space-8) * 3)"], [style*="padding-top: calc(var(--space-8) * 3)"] { padding-top: var(--space-3) !important; }
  [style*="max-width:380px"][style*="aspect-ratio:4/5"], [style*="max-width: 380px"][style*="aspect-ratio: 4/5"],
  [style*="max-width:420px"][style*="aspect-ratio:4/5"], [style*="max-width: 420px"][style*="aspect-ratio: 4/5"] { max-width: 100% !important; margin: 0 auto; }
  [style*="max-width:340px"][style*="aspect-ratio:1"], [style*="max-width: 340px"][style*="aspect-ratio: 1"] { max-width: 220px !important; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(22px, 8vw, 28px) !important; }
  [style*="grid-template-columns:repeat(2,"], [style*="grid-template-columns: repeat(2,"],
  [style*="grid-template-columns:repeat(3,"], [style*="grid-template-columns: repeat(3,"],
  [style*="grid-template-columns:repeat(4,"], [style*="grid-template-columns: repeat(4,"],
  [style*="grid-template-columns:140px"], [style*="grid-template-columns: 140px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(2,340px)"], [style*="grid-template-columns: repeat(2,340px)"],
  [style*="grid-template-columns:repeat(2, 340px)"] { grid-template-columns: 1fr !important; }
  [style*="grid-auto-rows:160px"], [style*="grid-auto-rows: 160px"] { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
  [style*="grid-row:span 2"], [style*="grid-row: span 2"] { grid-row: span 1 !important; }
  [style*="grid-column:span 2"], [style*="grid-column: span 2"] { grid-column: span 1 !important; }
  [style*="max-width:220px"], [style*="max-width: 220px"] { max-width: 160px !important; }
}
