/* LinnStudio client area. Brand tokens from linnstudio-site (src/styles/legal.css): change them together.
   Phone first. Calm, spacious, one question per screen: what do I need to do now? */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #13120F;
  --card: #1C1A16;
  --card-2: #23211C;
  --ink: #EDEAE3;
  --muted: #A8A399;
  --faint: #858075;
  --line: #2E2B25;
  --line-strong: #3F3B33;
  --accent: #EDEAE3;
  --accent-hover: #FFFFFF;
  --accent-ink: #13120F;
  --accent-text: #E2B650;
  --spark: #E2B650;
  --focus: #E2B650;
  --field-border: #6B665C;
  --ok: #8DBF8B;
  --warn: #E2B650;
  --error: #F08A7E;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(18px, 5vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  border-top: 3px solid var(--accent);
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--spark) 38%, transparent); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }

/* Text for screen readers only: extra words for a control whose visible words repeat on the page. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-inner { max-width: 760px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 400 25px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.wordmark em { font-style: italic; color: var(--accent-text); }
.wordmark .mark { width: 15px; height: 15px; color: var(--ink); }
.top-who { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.top-who form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.linklike:hover { color: var(--ink); }

/* Tabs */
.tabs { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--spark); }

/* Page */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) var(--gutter) 72px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
h1, .display { font: 400 clamp(38px, 8vw, 58px)/1.02 var(--display); letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
h1 em, .display em { font-style: italic; color: var(--accent-text); }
h2 { font: 400 clamp(26px, 5vw, 34px)/1.1 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.lede { font-size: clamp(18px, 2.4vw, 20px); color: var(--muted); max-width: 56ch; margin: 0 0 28px; text-wrap: pretty; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 16px; }
.section { margin-top: clamp(40px, 7vw, 64px); }
.section-head { margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 0; }

/* Surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); }
.card + .card { margin-top: 14px; }
.card-quiet { background: transparent; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: 999px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field-border); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }

/* Messages */
.flash { border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; border: 1px solid; font-size: 16px; }
.flash-ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.flash-error { border-color: color-mix(in srgb, var(--error) 55%, transparent); background: color-mix(in srgb, var(--error) 10%, transparent); }
.note { border-left: 2px solid var(--spark); padding: 4px 0 4px 14px; color: var(--muted); }

/* Status */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line-strong); color: var(--muted); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill-you { color: var(--ink); border-color: color-mix(in srgb, var(--spark) 60%, transparent); }
.pill-you::before { background: var(--spark); }
.pill-us::before { background: var(--ok); }
.progress { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.progress li { font-size: 13px; color: var(--faint); padding-top: 12px; border-top: 3px solid var(--line-strong); }
.progress li.done { color: var(--muted); border-top-color: var(--muted); }
.progress li.current { color: var(--ink); border-top-color: var(--spark); font-weight: 600; }
.due { font: italic 400 clamp(22px, 4vw, 28px)/1.2 var(--display); color: var(--accent-text); margin: 0; }

/* Forms */
.field { margin: 0 0 22px; }
.field > label, .legend { display: block; font-weight: 600; margin: 0 0 6px; }
.hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 10px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--field-border); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--paper); }
.choice:hover { border-color: var(--field-border); }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--spark); flex: none; }
.choice:has(input:checked) { border-color: var(--spark); background: color-mix(in srgb, var(--spark) 7%, var(--paper)); }
.choice small { display: block; color: var(--muted); font-size: 14px; }
input[type="file"] { width: 100%; font: inherit; color: var(--muted); padding: 10px; border: 1px dashed var(--field-border); border-radius: 12px; background: var(--paper); }
input[type="file"]::file-selector-button { font: 600 15px var(--body); margin-right: 12px; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }

/* Checklist */
.part { margin-top: clamp(36px, 6vw, 52px); }
.part-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.part-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px clamp(16px, 4vw, 24px); }
.item + .item { margin-top: 10px; }
.item-head { display: flex; align-items: flex-start; gap: 12px; }
.item-head h3 { flex: 1; }
.item-body { margin-top: 12px; }
.tick { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--field-border); display: grid; place-items: center; }
.tick svg { width: 14px; height: 14px; color: var(--accent-ink); }
.item.is-done .tick { background: var(--ok); border-color: var(--ok); }
.item.is-done { border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); }
.badge { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .03em; border: 1px solid var(--line-strong); color: var(--muted); }
.badge-required { color: var(--accent-text); border-color: color-mix(in srgb, var(--spark) 45%, transparent); }
.badge-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.badge-wait { color: var(--ink); }
details.item > summary { list-style: none; cursor: pointer; }
details.item > summary::-webkit-details-marker { display: none; }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.files li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.files img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card-2); }
.files .file-name { display: block; padding: 6px 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files .doc { aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); font-weight: 600; text-transform: uppercase; background: var(--card-2); }
.files form { position: absolute; top: 4px; right: 4px; margin: 0; }
.files .remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.access-steps { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.invite { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--ink); background: var(--card-2); border: 1px solid var(--line-strong); padding: 2px 8px; border-radius: 6px; user-select: all; }

/* Style picker */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.style-card { position: relative; display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--card); cursor: pointer; }
.style-card input { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; accent-color: var(--spark); z-index: 1; }
.style-card:has(input:checked) { border-color: var(--spark); box-shadow: 0 0 0 1px var(--spark); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.style-card .swatch, .style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.style-card .meta { padding: 12px 14px 16px; }
.style-card .meta strong { display: block; font: 400 22px/1.15 var(--display); margin-bottom: 4px; }
.style-card .meta span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }
.refs { display: grid; gap: 14px; }
.ref { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }

/* Review */
.design { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.design + .design { margin-top: 18px; }
.design-head { padding: 16px clamp(16px, 4vw, 24px); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.design-head h2 { margin: 0; }
.design-views { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 clamp(12px, 3vw, 20px) 20px; }
.design-view { margin: 0; }
.design-view figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
/* Phones: a fixed-height preview of the top of the page, never a scroll area of its own, so a thumb on the
   picture always scrolls the page. "Open full size" under it shows the whole board. */
.design-frame { position: relative; display: block; max-height: 420px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card-2); }
.design-phone .design-frame { max-width: 300px; max-height: 520px; }
.design-frame img { width: 100%; }
@media (min-width: 720px) {
  .design-views { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
  /* Wider screens: the frame scrolls, and hands the scroll back to the page at either end. */
  .design-frame, .design-phone .design-frame { max-height: 70vh; overflow-y: auto; }
}
.said { border-left: 2px solid var(--line-strong); padding-left: 14px; color: var(--muted); white-space: pre-wrap; }

/* Sign-in */
.signin { max-width: 440px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: 760px; margin: 0 auto; padding: 22px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
