/* =========================================================================
   Components — labels, buttons, prose, lists, facts, forms, FAQ, photos.
   ========================================================================= */

/* ---- Section label: sentence case, a small sun before it ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: var(--sun);
  flex-shrink: 0;
}
.eyebrow--plain::before { display: none; }
.section--sun .eyebrow::before,
.band--sun .eyebrow::before,
.page-hero--sun .eyebrow::before { background: var(--ink); }
.section--sun .eyebrow,
.band--sun .eyebrow,
.page-hero--sun .eyebrow { color: var(--ink); }

/* ---- Lede ---------------------------------------------------------------- */
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.82em 1.45em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--btn-primary-bg, #141414);
  border-color: var(--btn-primary-bg, #141414);
  color: var(--btn-primary-ink, #ffffff);
}
.btn-primary:hover {
  background: var(--btn-primary-bg-hover, #000000);
  border-color: var(--btn-primary-bg-hover, #000000);
  transform: translateY(-2px);
}
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 1.02em 1.85em; font-size: var(--step-0); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }

/* A link that stands alone: bold, on a line of sun that thickens. */
.text-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(var(--link-line, var(--sun)), var(--link-line, var(--sun)));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  padding-bottom: 5px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.text-link:hover { background-size: 100% 100%; color: var(--link-hover-ink, #141414); }
.on-dark .text-link:hover { color: #141414; }

/* ---- Tags and badges -------------------------------------------------------- */
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--available { color: var(--ok); border-color: currentColor; }
.badge--coming { color: var(--warn); border-color: currentColor; }
.badge--planned, .badge--private { color: var(--ink-faint); }

/* ---- Panels ------------------------------------------------------------------ */
.panel {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}
.panel--inset { background: var(--mist); }
.panel--accent { background: var(--dawn); }
.on-dark .panel { background: rgba(255, 255, 255, 0.08); }
.panel__title { font-size: var(--step-2); margin-bottom: var(--space-3); }

/* ---- Lists with a marker ------------------------------------------------------ */
.marker-list { display: grid; gap: var(--space-3); }
.marker-list li { position: relative; padding-left: 1.6em; }
.marker-list li::before {
  content: "";
  position: absolute;
  left: 0.1em; top: 0.62em;
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--sun);
}
.marker-list--check li::before {
  top: 0.38em;
  width: 0.95em; height: 0.5em;
  border-radius: 0;
  background: none;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg) scale(0.8);
}
.marker-list--cross li::before {
  top: 0.78em;
  width: 0.8em; height: 2.5px;
  border-radius: 2px;
  background: var(--ink-faint);
}
.section--sun .marker-list li::before { background: var(--ink); }

/* ---- Facts: key on the left, value on the right ------------------------------- */
.spec { display: grid; font-family: var(--font-ui); }
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.spec__row:last-child { border-bottom: 1px solid var(--line); }
.spec__key { font-size: var(--step--1); font-weight: 600; color: var(--ink-faint); flex-shrink: 0; }
.spec__val { font-size: var(--step-0); font-weight: 500; text-align: right; line-height: 1.35; }
@media (max-width: 520px) {
  .spec__row { flex-direction: column; gap: var(--space-1); }
  .spec__val { text-align: left; }
}

/* ---- Quote -------------------------------------------------------------------- */
.pullquote {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.pullquote p { text-wrap: balance; }

/* ---- Prose: one topic per paragraph, a line a reader can hold ------------------ */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose > p:first-child { color: var(--ink); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-8); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-7); letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-4); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul:not([class]) { display: grid; gap: var(--space-2); }
.prose ul:not([class]) li { position: relative; padding-left: 1.4em; }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: 0.1em; top: 0.68em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--sun); }

.note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--sun);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.section--dawn .note, .section--mist .note { background: var(--paper); }

/* ---- Forms ---------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); font-family: var(--font-ui); }
.form-row { display: grid; gap: var(--space-2); align-content: start; }
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.form-label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.form-label .req { color: var(--ink-faint); font-weight: 400; }
.form-hint { font-family: var(--font-ui); font-size: var(--step--1); line-height: 1.5; color: var(--ink-faint); }

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  min-height: 52px;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field-textarea { min-height: 8.5em; line-height: 1.55; resize: vertical; }
.field-input::placeholder,
.field-textarea::placeholder { color: var(--ink-faint); opacity: 0.8; }
.field-input:hover,
.field-textarea:hover,
.field-select:hover { border-color: var(--ink-faint); }
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 198, 46, 0.55);
}
.field-select {
  appearance: none;
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05em center;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.field-check { width: 1.25em; height: 1.25em; margin-top: 0.15em; flex-shrink: 0; accent-color: #141414; }
.check-row label { font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); cursor: pointer; }

.field-error,
.errorlist { font-family: var(--font-ui); font-size: var(--step--1); font-weight: 500; color: var(--error); list-style: none; }
.has-error .field-input,
.has-error .field-textarea,
.has-error .field-select { border-color: var(--error); }

/* Honeypot: in the DOM for bots, off the page for people. */
.hp-field,
.hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---- Messages ---------------------------------------------------------------------- */
.messages { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border-left: 5px solid var(--ink);
  background: var(--mist);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
}
.alert.success { border-left-color: var(--ok); }
.alert.error { border-left-color: var(--error); }
.alert.warning { border-left-color: var(--warn); }
.alert.info { border-left-color: var(--sun); }

/* ---- FAQ ---------------------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.9rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0.9rem no-repeat,
    var(--mist);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq__item summary:hover::after { background-color: var(--sun); }
.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--sun);
}
.faq__answer { padding-bottom: var(--space-6); max-width: var(--measure); color: var(--ink-soft); }
.faq__answer > * + * { margin-top: 1em; }
/* The answer eases open where the browser can size it. */
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease), content-visibility 320ms allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}

/* ---- Numbered steps (a real sequence) -------------------------------------------------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; font-family: var(--font-ui); }
.steps li { position: relative; padding-left: 3.4rem; min-height: 2.4rem; font-size: var(--step-0); line-height: 1.45; color: var(--ink-soft); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--sun);
  color: #141414;
  font-weight: 700;
}

/* ---- Photos ---------------------------------------------------------------------------- */
.photo { margin: 0; }
.photo__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide .photo__frame { aspect-ratio: 4 / 3; }
.photo--wide .photo__frame img { object-position: 50% 20%; }
@media (min-width: 760px) { .photo--wide .photo__frame { aspect-ratio: 16 / 9; } }
.photo--square .photo__frame { aspect-ratio: 1 / 1; }
.photo--portrait .photo__frame { aspect-ratio: 4 / 5; }
.photo__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.photo__cap-k { font-weight: 600; color: var(--ink); }

/* ---- Small utilities ---------------------------------------------------------------------- */
.muted { color: var(--ink-faint); }
.soft { color: var(--ink-soft); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.measure { max-width: var(--measure); }
