/* Have you met Gannon? Grey-box styles for testing.
   Every colour, font and radius lives in this first block, so the real
   look can be added later without touching the pages. */
:root {
  --ink: #222222;
  --ink-soft: #4d4d4d;
  --muted: #6b6b6b;
  --line: #a8a8a8;
  --line-soft: #d6d6d6;
  --fill: #dedede;
  --panel: #f0f0f0;
  --bar: #e6e6e6;
  --bg: #ffffff;
  --on-ink: #ffffff;
  --on-ink-soft: #d9d9d9;
  --error: #a32020;
  --radius-pill: 100px;
  --radius-card: 8px;
  --radius-input: 6px;
  /* Spacing: use these steps everywhere so gaps stay consistent */
  --space-xs: 0.5rem;   /* inside a field: label, hint, box, error */
  --space-s: 1rem;      /* between items in a group */
  --space-m: 1.5rem;    /* between form fields and page blocks */
  --space-l: 2.5rem;    /* between big page sections */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-letters: "Arial Rounded MT Bold", "Helvetica Rounded", "Arial Black", system-ui, sans-serif;
  --font-hand: Georgia, "Times New Roman", serif;
  --tile-0: #3d3d3d; --tile-1: #bdbdbd; --tile-2: #8c8c8c; --tile-3: #9a9a9a; --tile-4: #5a5a5a; --tile-5: #c8c8c8;
  /* Photos and slides are shown in grey while testing. Set to none for colour. */
  --media-filter: grayscale(1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1 { margin: 0; font-size: 2rem; line-height: 1.2; }
h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
h3 { margin: 0; font-size: 1rem; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.0625rem; }
.meta, .small { color: var(--muted); font-size: 0.8125rem; }
.stack { display: flex; flex-direction: column; gap: var(--space-s); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-xs); }
[hidden] { display: none !important; }

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

/* Top bar and footer */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-s) var(--space-l); background: var(--panel); }
.logo { display: inline-flex; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; margin-top: var(--space-l); padding: var(--space-m) var(--space-l); background: var(--bar); }
.footer strong { display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 500; }

/* Page widths */
.wrap { max-width: 80rem; margin: 0 auto; padding: var(--space-l) var(--space-l) 0; display: flex; flex-direction: column; gap: var(--space-m); }
.narrow { max-width: 37.5rem; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: var(--space-m); }
.prose { max-width: 45rem; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 1.25rem; }
.back { font-weight: 600; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; }
.back::before { content: "\2190\00a0\00a0"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 1.25rem; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 600; font-size: 0.9375rem; text-align: center; text-decoration: none; cursor: pointer; }
.btn.secondary { background: var(--bg); color: var(--ink); }
.btn.small-btn { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn.block { display: flex; width: 100%; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 500; text-decoration: underline; cursor: pointer; }

/* Grey placeholders and media */
.placeholder { display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: var(--radius-card); background: var(--fill); color: var(--ink-soft); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.placeholder.media { aspect-ratio: 16 / 9; }
.placeholder.art { height: 10rem; }
.media-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); background: var(--fill); filter: var(--media-filter); }
.card-photo { aspect-ratio: 4 / 5; object-position: center 20%; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.photos .placeholder, .photos img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center 25%; border-radius: var(--radius-card); filter: var(--media-filter); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.25rem; }
.panel { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); border-radius: var(--radius-card); background: var(--panel); }
.strip { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-s) var(--space-m); border-radius: var(--radius-card); background: var(--ink); color: var(--on-ink); }
.strip a { color: var(--on-ink); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.strip .small { color: var(--on-ink-soft); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-s); padding: var(--space-s); border-radius: var(--radius-card); background: var(--panel); }
.filter { display: flex; flex-direction: column; gap: var(--space-xs); width: 12rem; }
.filter > span, .filter > label { font-size: 0.8125rem; font-weight: 600; }
.age-range { display: flex; align-items: center; gap: 0.5rem; }
.age-range input { width: 100%; }
input[type="range"] { width: 100%; height: 2.75rem; margin: 0; accent-color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); }
.card { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-s); border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
.card h2 { font-size: 1.0625rem; }
.card .btn { margin-top: auto; }
.center { display: flex; justify-content: center; }
.tag { display: inline-block; padding: 0.1875rem 0.625rem; border-radius: var(--radius-pill); background: var(--fill); font-size: 0.75rem; font-weight: 500; }
.tag.dark { background: var(--ink); color: var(--on-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Dropdown: a white custom list, used instead of the browser's own */
.dropdown { position: relative; }
.dropdown-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.6875rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.dropdown-btn::after { content: "\25BE"; color: var(--ink-soft); }
.dropdown-list { position: absolute; z-index: 10; top: 100%; left: 0; right: 0; margin: 0.25rem 0 0; padding: 0.25rem; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.dropdown-list li { padding: 0.5rem 0.625rem; border-radius: 4px; font-size: 0.875rem; cursor: pointer; }
.dropdown-list li.active, .dropdown-list li:hover { background: var(--panel); }
.dropdown-list li[aria-selected="true"] { font-weight: 600; }

/* Profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 21.25rem; gap: 2.5rem; align-items: start; }
.profile-main { display: flex; flex-direction: column; gap: var(--space-s); }
.profile-main h2 { margin-top: var(--space-s); }
.side { position: sticky; top: var(--space-m); display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); border-radius: var(--radius-card); background: var(--panel); }
.side h1 { font-size: 1.5rem; }
.taken-banner { padding: 0.875rem; border-radius: var(--radius-card); background: var(--ink); color: var(--on-ink); }
.taken-banner strong { display: block; font-size: 1.125rem; }
.taken-banner strong span { font-size: inherit; color: inherit; }
.taken-banner span { font-size: 0.8125rem; color: var(--on-ink-soft); }
.share { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line-soft); }
.share .link-row { background: var(--bg); }
.link-row .link-btn, .link-row strong { flex: none; white-space: nowrap; }
.link-row span { min-width: 0; }
.share .qr { border-radius: 4px; background: var(--bg); }
.review-who { display: flex; align-items: center; gap: 0.625rem; }
.review-who strong { display: block; font-size: 0.875rem; }

/* Forms */
form { display: flex; flex-direction: column; gap: var(--space-m); }
form h2 { margin-top: var(--space-xs); }
form h2 + .field, form h2 + fieldset, form h2 + .row { margin-top: calc(var(--space-xs) - var(--space-m)); }
.field { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.field > label, .legend { font-size: 0.8125rem; font-weight: 600; }
.hint { font-size: 0.8125rem; color: var(--muted); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-s); align-items: end; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.9375rem; }
textarea { min-height: 6.5rem; resize: vertical; }
input[type="date"], input[type="time"] { min-height: 2.875rem; }
.prefixed { display: flex; align-items: center; gap: 0.5rem; max-width: 12rem; }
.prefixed span { font-weight: 600; }
.invalid .prefixed input { border-color: var(--error); }
::placeholder { color: var(--muted); opacity: 1; }
.error { font-size: 0.8125rem; font-weight: 600; color: var(--error); }
.error:empty { display: none; }
.invalid input, .invalid textarea, .invalid .upload { border-color: var(--error); }
fieldset { display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
/* A floated legend is laid out like any other label, so it lines up with the fields around it. */
fieldset > legend { float: left; width: 100%; margin: 0; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m); }
.check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; cursor: pointer; }
.check input { width: 1.125rem; height: 1.125rem; margin: 0.125rem 0 0; accent-color: var(--ink); flex: none; }
.choice { display: flex; gap: var(--space-s); padding: var(--space-s); border: 1px solid var(--line); border-radius: var(--radius-card); cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--ink); padding: calc(var(--space-s) - 1px); }
.choice input { width: 1.125rem; height: 1.125rem; margin: 0.125rem 0 0; accent-color: var(--ink); flex: none; }
.choice strong { display: block; }
.upload { display: flex; align-items: center; justify-content: center; min-height: 7rem; padding: 0.75rem; border: 1.5px dashed var(--line); border-radius: var(--radius-card); background: var(--panel); color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; text-align: center; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.info { padding: var(--space-s); border-radius: var(--radius-card); background: var(--panel); color: var(--ink-soft); font-size: 0.8125rem; }
.info ol { margin: 0; padding-left: 1.125rem; }
.selfie { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m); border-radius: var(--radius-card); background: var(--panel); }
.selfie-body { display: grid; grid-template-columns: minmax(0, 1fr) 13.75rem; gap: 1rem; align-items: center; }
.selfie ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.selfie .upload { background: var(--bg); }
.banner-dark { padding: 0.875rem; border-radius: var(--radius-card); background: var(--ink); color: var(--on-ink); }
.banner-dark span { display: block; font-size: 0.8125rem; color: var(--on-ink-soft); }
.box { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-m); border: 1.5px solid var(--ink-soft); border-radius: var(--radius-card); }
.box-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.proto { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* Events */
.event-card { display: grid; grid-template-columns: 6.875rem minmax(0, 1fr) auto; gap: var(--space-m); align-items: center; padding: var(--space-m); border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
.date-tile { display: flex; flex-direction: column; align-items: center; padding: 0.75rem; border-radius: var(--radius-card); background: var(--panel); font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; }
.date-tile b { font-size: 1.625rem; line-height: 1.2; color: var(--ink); }

/* How it works */
.strands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); align-items: start; }
.strands ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m) var(--space-l); }
.rules h3 { margin-bottom: 0.25rem; }
.rules p { color: var(--ink-soft); font-size: 0.9375rem; }

/* Email previews (prototype only) */
.emails { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: var(--space-m); align-items: start; }
.email { border: 1.5px solid var(--ink-soft); border-radius: 12px; overflow: hidden; }
.email-head { padding: 0.75rem 1.25rem; background: var(--panel); font-size: 0.75rem; color: var(--muted); }
.email-head b { display: block; color: var(--ink-soft); }
.email-body { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-m); font-size: 0.9375rem; }
.email-body h3 { font-size: 1.125rem; }
.quote { padding: 0.875rem; border-radius: var(--radius-card); background: var(--panel); }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: var(--radius-input); background: var(--panel); font-size: 0.8125rem; overflow-wrap: anywhere; }
.qr { width: 6.875rem; height: 6.875rem; flex: none; }


/* Pitches page: filters down the left, a list on the right */
.script { font-family: var(--font-hand); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.browse { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); max-width: 80rem; margin: 0 auto; border-bottom: 1px solid var(--line-soft); }
.browse-filters { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-l) var(--space-m); border-right: 1px solid var(--line-soft); }
.browse-filters h1 { font-size: 1.75rem; }
.browse-filters .check { font-size: 0.9375rem; }
.browse-results { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-l); min-width: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); }
.sort { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; }
.dropdown-plain .dropdown-btn { width: auto; gap: 0.375rem; padding: 0.25rem; border: 0; font-weight: 600; }
.dropdown-plain .dropdown-list { left: auto; right: 0; min-width: 9rem; }
.list { display: flex; flex-direction: column; gap: var(--space-s); }
.list-card { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) auto; gap: var(--space-m); align-items: center; padding: var(--space-s); border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
.list-card .media-img, .list-card .placeholder { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center 20%; }
.list-details { display: flex; flex-direction: column; gap: var(--space-xs); }
.list-details h2 { font-size: 1.875rem; line-height: 1.15; }
.list-details h2 a { color: var(--ink); text-decoration: none; }
.list-details h2 a:hover { text-decoration: underline; }
.list-quote { font-family: var(--font-hand); font-style: italic; font-size: 1.125rem; line-height: 1.35; }
.list-card .btn { white-space: nowrap; }

/* The cut-out letters: logo and front page heading */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--font-letters); color: var(--ink); line-height: 1; }
.wordmark-top { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.wordmark-name { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.wordmark .tile { display: inline-flex; align-items: center; justify-content: center; color: var(--on-ink); font-weight: 900; }
.wordmark .mark { font-weight: 900; color: var(--ink); }
.wordmark .gap { width: 0.4em; }
.tile-0 { background: var(--tile-0); transform: rotate(-4deg); clip-path: polygon(4% 0, 100% 6%, 94% 100%, 0 92%); }
.tile-1 { background: var(--tile-1); transform: rotate(3deg); clip-path: polygon(0 5%, 96% 0, 100% 95%, 6% 100%); }
.tile-2 { background: var(--tile-2); transform: rotate(-2deg); border-radius: 22%; }
.tile-3 { background: var(--tile-3); transform: rotate(2deg); clip-path: polygon(0 0, 100% 4%, 97% 100%, 3% 96%); }
.tile-4 { background: var(--tile-4); transform: rotate(-3deg); clip-path: polygon(6% 3%, 97% 0, 100% 100%, 0 94%); }
.tile-5 { background: var(--tile-5); transform: rotate(4deg); border-radius: 18%; }
.wordmark.small .wordmark-top { font-size: 0.4375rem; }
.wordmark.small .wordmark-name { gap: 0.125rem; font-size: 0.875rem; }
.wordmark.small .tile { width: 1.05rem; height: 1.2rem; }
.wordmark.small .mark { font-size: 1.125rem; }
.wordmark.big .wordmark-top { font-size: 2.5rem; margin-bottom: 0.75rem; }
.wordmark.big .wordmark-name { gap: 0.5rem; font-size: 4.5rem; }
.wordmark.big .tile { width: 5.25rem; height: 6rem; }
.wordmark.big .mark { font-size: 6.5rem; margin-left: 0.25rem; }
.wordmark.big.long .wordmark-name { font-size: 3rem; gap: 0.375rem; }
.wordmark.big.long .tile { width: 3.5rem; height: 4rem; }
.wordmark.big.long .mark { font-size: 4.25rem; }

/* Front page */
.modal { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: var(--space-l); border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.modal h2 { font-size: 1.625rem; }
.landing { display: flex; flex-direction: column; align-items: center; gap: var(--space-l); padding-top: var(--space-l); text-align: center; }
.landing h1 { font-size: inherit; line-height: 1; }
.landing-lead { display: flex; flex-direction: column; gap: 0.5rem; max-width: 35rem; font-size: 1.125rem; line-height: 1.4; color: var(--ink-soft); }
.landing-lead-big { font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.landing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 1rem 0 2rem; }
.polaroid { display: flex; flex-direction: column; gap: 0.25rem; width: 18rem; padding: 0.875rem 0.875rem 1.5rem; background: var(--bg); color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16); }
.polaroid img, .polaroid .placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; border-radius: 0; margin-bottom: 0.625rem; filter: var(--media-filter); }
.polaroid strong { font-family: var(--font-hand); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.tilt-0 { transform: rotate(-3deg); }
.tilt-1 { transform: rotate(2deg) translateY(1.5rem); }
.tilt-2 { transform: rotate(-1deg); }

/* Phones and narrow windows: everything stacks into one column */
@media (max-width: 56rem) {
  .topbar { padding: var(--space-xs) var(--space-s); flex-wrap: wrap; }
  .nav { gap: 1rem; flex-wrap: wrap; }
  .wrap { padding: var(--space-m) var(--space-s) 0; }
  .footer { padding: var(--space-m) var(--space-s); }
  h1, .hero h1 { font-size: 1.625rem; }
  .hero, .profile, .strands, .rules, .selfie-body, .box-actions { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; }
  .filter { width: 100%; }
  .row { grid-auto-flow: row; }
  .event-card { grid-template-columns: minmax(0, 1fr); }
  .date-tile { flex-direction: row; gap: 0.5rem; justify-content: flex-start; }
  .strip { flex-direction: column; align-items: flex-start; }
  .browse { grid-template-columns: minmax(0, 1fr); }
  .browse-filters { padding: var(--space-m) var(--space-s); border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .browse-results { padding: var(--space-m) var(--space-s); }
  .list-card { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: start; }
  .list-card .btn { grid-column: 1 / -1; }
  .list-details h2 { font-size: 1.375rem; }
  .list-quote { font-size: 1rem; }
  .wordmark.big .wordmark-top { font-size: 1.375rem; }
  .wordmark.big .wordmark-name, .wordmark.big.long .wordmark-name { font-size: 2rem; gap: 0.25rem; }
  .wordmark.big .tile, .wordmark.big.long .tile { width: 2.25rem; height: 2.625rem; }
  .wordmark.big .mark, .wordmark.big.long .mark { font-size: 2.75rem; }
  .landing-lead { font-size: 1rem; }
  .landing-lead-big { font-size: 1.25rem; }
  .tilt-1 { transform: rotate(2deg); }
}

/* Shown above the submit button when a form could not be sent. */
.form-error { padding: var(--space-s); border-radius: var(--radius-card); border: 1px solid var(--error); color: var(--error); font-size: 0.875rem; font-weight: 600; }
.form-error:empty { display: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Profile: heading and slide viewer, a bar with the facts and the two actions, then the write-up beside the reviews. */
.profile-top { display: flex; flex-direction: column; gap: var(--space-s); padding-bottom: var(--space-m); }
.profile-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-m); }
.profile-heading h1 { font-size: 2.25rem; line-height: 1.2; }
.name-block { display: inline-block; margin: 0 0.15em; padding: 0.02em 0.25em; background: var(--ink); color: var(--on-ink); font-family: var(--font-letters); font-style: normal; font-weight: 900; font-size: 0.85em; letter-spacing: 0.02em; text-transform: uppercase; transform: rotate(-1.5deg); }
.viewer { --chrome: 23rem; --stage-h: min(calc((100cqw - 7.25rem) * 9 / 16), calc(100svh - var(--chrome))); container-type: inline-size; display: flex; justify-content: center; align-items: flex-start; gap: var(--space-xs); }
.viewer.no-thumbs { --stage-h: min(calc(100cqw * 9 / 16), calc(100svh - var(--chrome))); }
.viewer-stage { position: relative; flex: none; height: max(12rem, var(--stage-h)); aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-card); background: var(--ink); overflow: hidden; }
.viewer-img { width: 100%; height: 100%; object-fit: contain; filter: var(--media-filter); }
.viewer-empty { display: flex; align-items: center; justify-content: center; color: var(--on-ink); font-family: var(--font-hand); font-style: italic; font-size: 1.75rem; }
.viewer-nav { position: absolute; left: var(--space-s); bottom: var(--space-s); display: flex; gap: var(--space-xs); }
.viewer-btn { padding: 0.375rem 0.875rem; border: 0; border-radius: 100px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.viewer-btn:disabled { opacity: 0.5; cursor: default; }
.viewer-thumbs { flex: none; width: 6.75rem; display: flex; flex-direction: column; gap: var(--space-xs); max-height: max(12rem, var(--stage-h)); overflow-y: auto; }
.viewer-thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-input); background: var(--fill); cursor: pointer; overflow: hidden; }
.viewer-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: var(--media-filter); }
.viewer-thumb.current { border-color: var(--ink); }
.viewer-more { text-align: center; color: var(--ink-soft); }
.profile-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.profile-bar-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-s); padding-top: var(--space-s); padding-bottom: var(--space-s); }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-s); }
.profile-body { display: flex; flex-direction: column; gap: var(--space-l); padding-top: var(--space-l); padding-bottom: var(--space-l); }
.profile-body h2 { font-size: 1.875rem; }
.profile-why, .profile-friends { display: flex; flex-direction: column; gap: var(--space-s); }
.profile-why { font-size: 1.0625rem; }
.profile-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-s); }
.profile-photos img, .profile-photos .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: var(--radius-card); filter: var(--media-filter); }

@media (max-width: 56rem) {
  .profile-heading { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  .profile-heading h1 { font-size: 2.25rem; }
  .viewer { --chrome: 34rem; --stage-h: min(calc(100cqw * 9 / 16), calc(100svh - var(--chrome))); grid-template-columns: minmax(0, 1fr); }
  .viewer-thumbs { max-height: none; }
  .viewer-thumbs { flex-direction: row; overflow-x: auto; align-items: center; }
  .viewer-thumb { flex: 0 0 5rem; }
  .viewer-more { flex: 0 0 auto; }
  .profile-bar-inner { flex-direction: column; align-items: stretch; }
  .profile-actions .btn { flex: 1 1 100%; }
  .profile-photos { grid-template-columns: minmax(0, 1fr); }
}

/* Small phones: Apply comes first and the thumbnails go (Prev and Next still work), so Apply is on screen without scrolling. */
@media (max-width: 36rem) {
  .viewer-thumbs { display: none; }
  .profile-actions .btn:not(.secondary) { order: -1; }
  .profile-top { gap: var(--space-xs); }
  .profile-heading h1 { font-size: 2rem; }
}

/* Icons sit before the words in a button, in the button's text colour. */
.icon { flex: none; vertical-align: -0.2em; }
.btn .icon, .viewer-btn .icon { margin-right: 0.4em; }
.viewer-btn .icon:last-child { margin-right: 0; margin-left: 0.4em; }
.viewer-btn { display: inline-flex; align-items: center; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8125rem; }
@media (max-width: 56rem) {
}

/* Taken profiles: the banner carries the way back to people who are still single. */
.taken-banner:not([hidden]) { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); flex-wrap: wrap; }
.btn.on-dark { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* Profile top: the heading and slides sit on black, then the page turns white at the button bar. */
.profile-hero { background: var(--ink); color: var(--on-ink); }
.profile-hero .back, .profile-hero h1 { color: var(--on-ink); }
.profile-hero .name-block { background: var(--on-ink); color: var(--ink); }
.profile-hero .viewer-thumb.current { border-color: var(--on-ink); }
.profile-hero .viewer-more { color: var(--on-ink-soft); }
.profile-hero .taken-banner { background: var(--bg); color: var(--ink); }
.profile-hero .taken-banner span { color: var(--ink-soft); }
.profile-hero .taken-banner strong span { color: inherit; }
.profile-hero + .profile-bar { border-top: 0; }
.profile-hero .viewer-empty { background: rgba(255, 255, 255, 0.08); }

/* "What their friends say" as a pinboard: pictures as tilted Polaroids, words-only reviews as pinned grey notes. */
.pinboard { background: var(--panel); }
.pinboard .profile-friends { padding-bottom: var(--space-l); }
.pinboard-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); align-items: start; padding: var(--space-xs) var(--space-xs) 0; }
.pinboard-col { display: flex; flex-direction: column; gap: var(--space-m); }
.polaroid, .note { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.polaroid { padding: 0.75rem 0.75rem var(--space-s); background: var(--bg); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; background: var(--fill); filter: var(--media-filter); margin-bottom: var(--space-xs); }
.note { padding: var(--space-m) var(--space-m) var(--space-s); background: var(--fill); }
.pin { position: absolute; top: -0.4rem; left: 50%; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%; background: var(--ink); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3); }
.polaroid blockquote, .note blockquote { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.polaroid figcaption, .note figcaption { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 56rem) {
  .pinboard-wall { grid-template-columns: minmax(0, 1fr); }
}

/* Review fixes: share sits in the back row, a slide counter on the slide, and a sticky bar. */
.profile-back-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); }
.profile-hero .name-block { font-size: 1.5em; }
.viewer-count { align-self: center; padding: 0.375rem 0.75rem; border-radius: 100px; background: rgba(0, 0, 0, 0.6); color: var(--on-ink); font-size: 0.8125rem; font-weight: 600; }
.profile-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); transition: box-shadow 0.2s; }
.profile-bar.is-stuck { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.profile-friends h2 { font-size: 1.875rem; }
.profile-friends #is-this-you { align-self: flex-end; margin-top: var(--space-m); }
.pinboard-col:nth-child(2) { padding-top: 2.5rem; }
.pinboard-col:nth-child(3) { padding-top: 1.25rem; }
@media (max-width: 56rem) {
  .viewer { flex-direction: column; }
  .viewer-stage { height: auto; width: 100%; }
  .viewer-thumbs { width: 100%; flex-direction: row; }
  .profile-bar { position: static; }
  .pinboard-col:nth-child(n) { padding-top: 0; }
  .profile-friends #is-this-you { align-self: flex-start; }
}
