/* editor.html: an invitation. Cream page, one dark proof block, a plain form. */

/* Invitation */
.ed-hero { padding: calc(var(--bar-h) + clamp(28px, 4vw, 56px)) var(--gutter) clamp(40px, 5vw, 72px); }
.ed-hero__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.ed-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ed-hero h1 { font-size: clamp(64px, 12.5vw, 150px); max-width: 10ch; }
.ed-hero h1 em { display: block; font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.01em; line-height: .95; font-size: .78em; }
.ed-hero__sub { font-size: clamp(21px, 1.7vw, 32px); line-height: 1.28; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }
.ed-hero__reel { width: 100%; }
.screen__btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--dark-line); background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
.screen__btn:hover, .screen__btn[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
@media (min-width: 1000px) {
  .ed-hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); min-height: calc(78vh - var(--bar-h)); }
  .ed-hero h1 { font-size: clamp(80px, 6.4vw, 132px); }
}

/* Proof: eight clips on a dark field */
.ed-proof { background: var(--dark); color: var(--dark-text); padding: var(--sec) var(--gutter); }
.ed-proof .sec-head { max-width: var(--maxw); margin: 0 auto 28px; }
.ed-proof h2 { max-width: 14ch; }
.ed-proof h2, .ed-proof .index { color: var(--cream); }
.ed-proof .index { color: var(--accent-soft); }
.ed-proof__note { color: var(--dark-text); max-width: 34ch; text-wrap: pretty; line-height: 1.5; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: var(--maxw); margin: 0 auto; }
.ed-clip button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--dark-2); cursor: pointer; color: var(--cream); }
.ed-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ed-clip__tag { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 6px; background: rgba(20,18,16,.72); color: var(--cream); }
.ed-clip button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(251,250,246,.12); border-radius: 12px; pointer-events: none; transition: box-shadow .2s var(--settle); }
.ed-clip button:hover::after { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.ed-clip button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
@media (min-width: 760px) {
  .ed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* The offer */
.ed-offer { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; display: grid; gap: clamp(40px, 6vw, 80px); }
.ed-offer > div { display: flex; flex-direction: column; gap: 14px; }
.ed-offer h2 { font-size: clamp(54px, 6.4vw, 110px); }
.steps--ink li { border-top-color: var(--line); }
.steps--ink li:last-child { border-bottom-color: var(--line); }
.steps--ink .n { color: var(--accent); opacity: 1; }
.steps--ink .t { color: var(--ink); }
.steps--ink .d { color: var(--ink-2); }
.ed-fit { display: flex; flex-direction: column; }
.ed-fit li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); font-size: clamp(18px, 1.2vw, 22px); color: var(--ink); }
.ed-fit li:last-child { border-bottom: 1px solid var(--line); }
.ed-fit li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ed-note { font-size: clamp(20px, 2vw, 25px); line-height: 1.3; color: var(--ink-2); margin-top: 8px; }
.ed-note a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 900px) { .ed-offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Application */
.ed-apply { padding: var(--sec) var(--gutter) clamp(32px, 4vw, 56px); }
.ed-apply__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 36px; align-items: start; }
.ed-apply__intro { display: flex; flex-direction: column; gap: 14px; }
.ed-apply__intro h2 { font-size: clamp(54px, 6.4vw, 110px); }
.ed-apply__intro .serif { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--ink-2); max-width: 34ch; }
.ed-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font: 400 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input:not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--body); transition: border-color .16s var(--settle), box-shadow .16s var(--settle); appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141210' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200,64,31,.18); }
.field [aria-invalid="true"], fieldset[aria-invalid="true"] .choices span { border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 400 15px/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .16s var(--settle), color .16s var(--settle), border-color .16s var(--settle); }
.choices input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-form__end { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.ed-form__end .btn--slab { width: 100%; border: 0; }
.ed-msg { min-height: 1.4em; font-size: 15px; color: var(--accent); }
.ed-privacy { font-size: 14px; color: var(--ink-3); }
@media (max-width: 599px) { .ed-form { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) {
  .ed-apply__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
  .ed-apply__intro { position: sticky; top: calc(var(--bar-h) + 24px); }
}
