@font-face { font-family: VamosSerif; src: url("./serif-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: VamosSerif; src: url("./serif-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: VamosSerif; src: url("./serif-italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --vv-page: #faf0dc;
  --vv-button-text: #fff8eb;
  --vv-surface: #fffbf2;
  --vv-ink: #292319;
  --vv-olive: #50553a;
  --vv-olive-dark: #3b4029;
  --vv-clay: #a66d42;
  --vv-edge: #bba27b;
  --vv-muted: #675944;
  --vv-swash: #ede6ce;
  --vv-green: #e9ead8;
  --vv-serif: VamosSerif, Georgia, serif;
  --vv-radius: 10px;
  --vv-unit: .625rem;
  --vv-scroll: calc(82px + env(safe-area-inset-top, 0px));
  --sand: var(--vv-page);
  --paper: var(--vv-surface);
  --ink: var(--vv-ink);
  --lagoon: var(--vv-olive);
  --muted: var(--vv-muted);
  --edge: var(--vv-edge);
  --line: var(--vv-edge);
  --input-edge: #8b7859;
  --warn: #863c25;
  --font-display: var(--vv-serif);
  --display: var(--vv-serif);
  --serif: var(--vv-serif);
  --title: clamp(2rem, 1.52rem + 2vw, 3.25rem);
  --heading: var(--title);
  scroll-padding-block: var(--vv-scroll) 1rem;
}

body[data-studio] :focus-visible { outline: 3px solid var(--vv-olive-dark); outline-offset: 3px; }
body[data-studio] .skip:focus { position: fixed; z-index: 25; }
body[data-studio] h1 { font-weight: 700; letter-spacing: -.035em; }
body[data-studio] :is(.sheet, .compact-card, .idea-card, dialog, #entries:not(:empty)) { border-radius: var(--vv-radius); }
body[data-studio] button:not(.month-day) { border-radius: var(--vv-radius); }
body[data-studio] button.primary,
body[data-studio]:not([data-studio="journal"]) button:not(.quiet, .month-day) { color: var(--vv-button-text); }
body[data-studio] button:not(:disabled):hover { filter: brightness(.95); }
body[data-studio] button.primary:hover { background: var(--vv-olive-dark); }
body[data-studio] button.quiet { color: var(--vv-olive-dark); }
body[data-studio] :is(input:not([type="file"]), select) { border-radius: 7px; }
body[data-studio]:not([data-studio="journal"]) :is(input, select, textarea) { font-size: 1rem; }
body[data-studio] :is(.idea-link, .nav a) { text-underline-offset: .22em; }
body[data-studio] .nav { gap: .25rem; margin-top: .85rem; }
body[data-studio] .nav a { border: 1px solid var(--vv-edge); border-radius: 8px; padding-inline: .8rem; background: var(--vv-surface); }
body[data-studio] .nav a[aria-current="page"] { background: var(--vv-olive); border-color: var(--vv-olive); color: var(--vv-button-text); }
body[data-studio] .nav a:focus-visible { outline-offset: 2px; }
body[data-studio] .status:not(.overdue, .today), body[data-studio] .entry-status select[data-status="Have"] {
  background: var(--vv-green); color: var(--vv-olive-dark);
}

[data-studio="journal"] main { max-width: 53rem; }
[data-studio="journal"] .sheet { border-top: 3px solid var(--vv-clay); }
[data-studio="journal"] :is(#body, #bodyEs) { font-size: clamp(1.15rem, 1.06rem + .45vw, 1.36rem); line-height: 1.68; }
[data-studio="journal"] .dock { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
[data-studio="journal"] .language-actions button[aria-pressed="true"],
[data-studio="journal"] .proof-actions button[aria-pressed="true"] { color: var(--vv-button-text); }

[data-studio="this-week"] .wrap { width: min(calc(100% - 2rem), 54rem); }
[data-studio="this-week"] .month-gap { background: #f3e8d0; }
[data-studio="this-week"] button.month-day[aria-pressed="true"],
[data-studio="this-week"] .month-count { background: var(--vv-green); color: var(--vv-olive-dark); }
[data-studio="this-week"] .month-target-count,
[data-studio="this-week"] .month-target-item { background: #f7e7d4; color: #623b22; }
[data-studio="this-week"] .month-day:focus-visible { outline-offset: -3px; }
[data-studio="this-week"] dialog#studio-backup-review { width: min(calc(100% - 1.5rem), 36rem); max-height: calc(100dvh - 1.5rem); overflow: auto; }
.studio-review-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .3rem 1rem; }
.studio-review-counts div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 1px solid var(--vv-edge); }
.studio-review-counts dd { margin: 0; font-weight: 700; }
#studio-review-warning { margin: .5rem 0; }
#studio-review-range, #studio-review-media { margin-block: .5rem; }
.studio-review-actions { flex-wrap: wrap; }

[data-studio="production-tools"] .idea-capture {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--vv-swash); border-color: var(--vv-edge); border-top: 3px solid var(--vv-clay);
}
[data-studio="production-tools"] :is(.idea-capture h2, #board-heading) { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
[data-studio="production-tools"] .idea-eyebrow { color: var(--vv-olive-dark); }
[data-studio="production-tools"] .idea-cover { height: auto; aspect-ratio: 2.25; }
[data-studio="production-tools"] .idea-cover-graphic {
  background: #e6d5b5 url("./journal-mountains.png") center 58% / auto 85% no-repeat;
  border-bottom: 1px solid var(--vv-edge);
}
[data-studio="production-tools"] .example-graphic { object-position: 50% 49%; }
[data-studio="production-tools"] .idea-card h3 { font-weight: 700; }
[data-studio="production-tools"] .stage-badge { background: var(--vv-green); color: var(--vv-olive-dark); }
[data-studio="production-tools"] .example-badge { background: #f4e3cc; color: #623b22; }
[data-studio="production-tools"] :is(.story-planning, .draft-guidance) { background: var(--vv-swash); border-color: var(--vv-edge); }
[data-studio="production-tools"] .story-title h2 { font-size: clamp(2.05rem, 1.5rem + 2.1vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; }
.story-lead { margin: .8rem 0; padding: .3rem 0 .3rem .9rem; border-inline-start: 3px solid var(--vv-clay); }
.story-lead p:last-child { font: italic clamp(1.2rem, 1.05rem + .6vw, 1.6rem)/1.35 var(--vv-serif); }
.story-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .5rem 1rem; margin: .85rem 0; }
.story-summary > div { border-top: 1px solid var(--vv-edge); padding-top: .55rem; }
.story-summary dt { font-size: .875rem; font-weight: 700; color: var(--vv-muted); }
.story-summary dd { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-title-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; }
body[data-studio] button.idea-delete { color: var(--warn); border-color: var(--warn); }
body[data-studio] button.idea-delete-confirm { background: var(--warn); border-color: var(--warn); }
.story-shell summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--vv-olive-dark); font-weight: 700; }
.story-shell .story-group summary { font-family: var(--vv-serif); font-size: 1.16rem; }
@media (max-width: 610px) {
  :root { --vv-scroll: calc(74px + env(safe-area-inset-top, 0px)); }
  [data-studio="production-tools"] .nav a { padding-inline: .55rem; }
  [data-studio="production-tools"] .idea-capture .inline > button { width: 100%; }
}
