/* Buttons, forms, dialogs, shared blocks */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 24px; border: 2px solid var(--ink); font: 750 1.02rem/1 var(--f-display); font-stretch: 84%; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(5px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: #121315; box-shadow: 5px 5px 0 #121315; }
[data-theme="night"] .btn-primary, .on-dark .btn-primary, .site-footer .btn-primary { box-shadow: 5px 5px 0 rgba(255, 255, 255, .28); }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #121315; }
.on-yellow .btn-primary { background: #121315; color: #ffcd00; box-shadow: 5px 5px 0 rgba(18, 19, 21, .3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; gap: 8px; box-shadow: 3px 3px 0 #121315; }
.btn-ghost.btn-sm { box-shadow: none; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 750 1rem/1 var(--f-display); font-stretch: 84%; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding-bottom: 6px; border-bottom: 4px solid var(--accent); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- section scaffolding ---------- */
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .lede { margin-top: 4px; }
.sec-head-split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 24px clamp(32px, 6vw, 96px); }
.sec-head-split .dim { grid-column: 1 / -1; }
@media (max-width: 860px) { .sec-head-split { grid-template-columns: 1fr; } }

/* ruled rows: the list style used instead of cards */
.rows { border-top: 2px solid var(--ink); }
.rows > li, .rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px clamp(20px, 4vw, 64px); padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.rows h3 { font-size: clamp(1.3rem, 2.3vw, 2.1rem); font-weight: 800; font-stretch: 76%; }
.rows p { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 700px) { .rows > li, .rows > div { grid-template-columns: 1fr; } }

/* looping clip over its still */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media picture, .media picture img, .media > img { width: 100%; height: 100%; object-fit: cover; }
.media .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.media .loop.is-playing { opacity: 1; }
.media-tag { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--accent); color: var(--accent-ink); font: 500 var(--fs-mono)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; }

/* ---------- forms ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fset { margin-bottom: clamp(26px, 3vw, 40px); }
.fset legend { margin-bottom: 16px; padding: 0; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font: 600 .92rem/1.3 var(--f-body); }
.opt { font: 400 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1.02rem/1.4 var(--f-body); color: var(--ink);
  background: rgba(var(--ink-rgb), .04); border: 1.5px solid var(--line-2); border-radius: 0; appearance: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field select option { color: #121315; background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: rgba(var(--ink-rgb), .02); box-shadow: 4px 4px 0 var(--accent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--flag); }
.field-msg { font-size: .86rem; font-weight: 600; color: var(--flag); }
.hint { font-size: .84rem; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } .field-row-4 { grid-template-columns: 1fr 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-note { font-size: .95rem; color: var(--ink-2); }
.form-note a { color: var(--ink); font-weight: 600; }
.form-status { min-height: 1.4em; margin-top: 14px; font-weight: 600; }
.form-status.err { color: var(--flag); }
.form-status.ok { color: var(--ink); }
.form-thanks { border: 2px solid var(--ink); padding: clamp(24px, 4vw, 48px); box-shadow: 8px 8px 0 var(--accent); display: grid; gap: 14px; }
.form-thanks h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.form-thanks a { font-weight: 600; }
.subscribe-form .field { margin-bottom: 10px; }
.subscribe-form .field label { font-size: .84rem; }
.subscribe-form .field input { min-height: 44px; padding: 8px 12px; }
.subscribe-form .btn { margin-top: 6px; }
.subscribe-form .form-status { font-size: .9rem; margin-top: 8px; }

/* ---------- dialogs / lightbox ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100vw; height: 100dvh; display: none; place-items: center; }
dialog.modal[open] { display: grid; }
dialog.modal::backdrop { background: rgba(8, 8, 9, .9); }
.modal-panel { position: relative; width: min(1500px, calc(100vw - 2 * var(--gutter))); }
.modal-close { position: absolute; top: -52px; right: 0; color: #ebe8df; border-color: rgba(255, 255, 255, .4); }
.lightbox img { width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; background: #0e0f10; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; color: #ebe8df; font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.lightbox-count { color: #ffcd00; white-space: nowrap; }
.lightbox-nav { position: absolute; left: 0; bottom: -58px; display: flex; gap: 10px; }
.lightbox-nav .icon-btn { color: #ebe8df; border-color: rgba(255, 255, 255, .4); }
.modal .icon-btn:hover { background: #ffcd00; color: #121315; border-color: #ffcd00; }

/* ---------- page head for inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 110px) clamp(36px, 5vw, 72px); }
.page-head h1 { margin-top: 22px; max-width: 14ch; }
.page-head .lede { margin-top: 26px; }
.page-head-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-head-split .media { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .page-head-split { grid-template-columns: 1fr; } }

.solo { min-height: 62vh; display: grid; align-items: center; padding-block: var(--sec); }
.solo h1 { margin: 20px 0 24px; max-width: 12ch; }
.solo .btn-row { margin-top: 34px; }

.prose { max-width: 70ch; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 22px; }
.prose ul { list-style: square; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
