/* Trip pages: the form and the dates list. Shared by every page built from
   gatherings/_template.html; the chrome comes from post.css. */
:root { --warn: #c06a45; --tint: rgba(74,124,104,0.10); }
:root[data-theme="day"] { --warn: #b25b3a; --tint: rgba(47,111,122,0.07); }

.post p em { font-style: normal; font-weight: 500; color: var(--accent); }
.post p em i { font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem 1.5rem; margin: 0 0 2rem; }
.facts .stat-label { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.facts .stat-value { font-size: 1rem; color: var(--text); font-style: italic; }

.dates { list-style: none; padding: 0; margin: 0.75rem 0 1.5rem; }
.dates li { display: flex; gap: 1.25rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--faint); }
.dates li span:first-child { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); min-width: 8.5rem; }
.dates li span:last-child { color: var(--muted); font-size: 1rem; }

.signup { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--faint); }
.signup-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.signup h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 400; font-style: italic; color: var(--text); margin-bottom: 0.75rem; line-height: 1.3; }
.signup-intro { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; }
.signup-intro em { font-style: normal; font-weight: 500; color: var(--accent); }

.field { margin-bottom: 1.75rem; }
.field > label, .field .qlabel { display: block; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.field .help { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: 0.8rem; font-style: italic; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--faint); color: var(--text);
  font-family: 'EB Garamond', serif; font-size: 1.05rem; line-height: 1.7; padding: 0.9rem 1rem; border-radius: 0; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 5rem; resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: var(--warn); }
.check-row { display: flex; flex-wrap: wrap; gap: 0.7rem 1.75rem; margin-top: 0.3rem; }
.check-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'EB Garamond', serif; font-size: 1.05rem; color: var(--text); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: auto; margin: 0; }
.check-row input:checked + span { color: var(--accent); }
.form-error { margin-top: 0.6rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
  background: transparent; border: 1px solid var(--accent); padding: 1rem 2.75rem; border-radius: 999px; cursor: pointer; transition: color 0.25s, background 0.25s; margin-top: 0.5rem;
}
.submit:hover { color: #f3f8f6; background: var(--accent); }
.review { display: none; border: 1px solid var(--accent); background: var(--tint); padding: 2rem; margin: 2.5rem 0 1rem; }
.review.visible { display: block; }
.review-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.review h3 { font-size: 1.3rem; font-style: italic; font-weight: 400; color: var(--text); margin-bottom: 1rem; line-height: 1.35; }
.review p { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; line-height: 1.8; }
.review textarea { width: 100%; min-height: 14rem; background: var(--surface); border: 1px solid var(--faint); color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.85rem; line-height: 1.65; padding: 1rem; resize: vertical; border-radius: 0; }
.review-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.review-btn { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); background: transparent; border: 1px solid var(--accent); padding: 0.85rem 1.5rem; cursor: pointer; text-decoration: none; display: inline-block; transition: color 0.25s, background 0.25s; }
.review-btn:hover, .review-btn.copied { color: #f3f8f6; background: var(--accent); }
.review-note { font-size: 0.92rem; color: var(--muted); margin-top: 1.25rem; line-height: 1.7; }
.fallback { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--faint); font-size: 0.95rem; color: var(--muted); text-align: center; line-height: 1.8; }
.fallback a { color: var(--accent); text-decoration: underline; }

/* ---- Trip head: compass and facts on the left, the description beside ---- */
.trip-head { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; margin: 1rem 0 0.5rem; }
.trip-side { position: sticky; top: 6rem; }
.compass { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto 1rem; transform: rotate(-7deg); color: var(--accent); }
.compass .c-ring { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: 0.55; }
.compass .c-dash { stroke-dasharray: 2 5; stroke-width: 1; opacity: 0.45; }
.compass .c-ticks line { stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.compass .c-letters text { font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-anchor: middle; dominant-baseline: middle; fill: var(--text); transform-box: fill-box; transform-origin: center; transform: rotate(7deg); }
.compass .c-water path { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.45; stroke-linecap: round; }
.compass .c-pin path { fill: var(--accent); opacity: 0.95; }
.compass .c-pin circle { fill: var(--bg); }
.coords { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); text-align: center; margin: 0 0 1.5rem; }
.coords .dot { color: var(--muted); padding: 0 0.35em; }
.facts-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--faint); }
.facts-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--faint); align-items: baseline; }
.facts-list li span:first-child { font-family: 'DM Mono', monospace; font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts-list li span:last-child { font-size: 0.98rem; color: var(--text); line-height: 1.45; }
.side-cta { display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; }
.side-cta:hover { color: var(--text); border-color: var(--text); }
.trip-body { padding-bottom: 0; }
.trip-body .dates { margin-bottom: 0; }
.wrap { max-width: 1000px; }
.hero, .post:not(.trip-body), .post-foot { max-width: 680px; }
/* under the wide trip body, the narrow blocks centre on the same axis as the cards above them (Sean, 2026-09-30) */
.post:not(.trip-body), .post-foot, .about { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .trip-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .trip-side { position: static; }
  .compass { max-width: 200px; }
}

/* The chart inside the ring: coast as a line, islands as tinted land */
.compass .c-chart .coast { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: 0.7; stroke-linejoin: round; stroke-linecap: round; }
.compass .c-chart .land { fill: currentColor; fill-opacity: 0.12; stroke: currentColor; stroke-width: 1; opacity: 0.8; stroke-linejoin: round; }

/* A faded horizon behind the top of the page, fading out to the left and down */
.hero-sea {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: min(62vw, 980px); height: 460px;
  background-size: cover; background-position: center 55%;
  opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%), linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%), linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%);
  mask-composite: intersect;
}
:root[data-theme="night"] .hero-sea, :root:not([data-theme="day"]) .hero-sea { opacity: 0.32; }
.wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .hero-sea { width: 100vw; height: 320px; opacity: 0.35; } }
