@font-face { font-family: "Source Sans Pro"; src: url("assets/fonts/SourceSansPro-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Source Serif Pro"; src: url("assets/fonts/SourceSerifPro-Regular.ttf") format("truetype"); font-display: swap; }
:root { color-scheme: light; font-family: "Source Sans Pro", sans-serif; color: var(--sh-color-on-surface); background: var(--sh-color-background); font-size: 16px; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, select, input[type="file"], input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button, input, select, textarea { border-radius: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sh-color-accent); outline-offset: 3px; }
button { min-height: 44px; border: 0; }
button:disabled, select:disabled { cursor: not-allowed; background: var(--sh-color-neutral-300); color: var(--sh-color-neutral-600); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Source Serif Pro", serif; font-weight: 400; }
h1 { font-size: 36px; line-height: 48px; margin: 8px 0 12px; }
h2 { font-size: 28px; line-height: 36px; }
h3 { font-size: 24px; line-height: 32px; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 24px; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--sh-color-neutral-800); color: white; display: flex; align-items: center; gap: 32px; padding: 24px 48px; }
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-height: 44px; }
.brand img { object-fit: contain; }
.header-label { padding-left: 32px; border-left: 1px solid var(--sh-color-neutral-500); }
.local-label { margin-left: auto; color: var(--sh-color-neutral-300); font-size: 13px; }
main { max-width: 1492px; margin: auto; padding: 0 74px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0 32px; }
.intro p:not(.eyebrow) { max-width: 660px; color: var(--sh-color-neutral-600); font-size: 18px; line-height: 28px; }
.eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--sh-color-accent-strong); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; white-space: nowrap; text-underline-offset: 5px; }
.workspace { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(370px, 1.1fr); align-items: start; border-top: 3px solid var(--sh-color-neutral-800); }
.editor { background: white; padding: 32px; min-width: 0; }
.section-heading, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading { margin-bottom: 16px; }
.quiet { background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px; color: var(--sh-color-neutral-600); font-size: 14px; }
.quiet:hover { color: var(--sh-color-primary); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field > label, #video-controls > label { font-size: 14px; display: block; margin-bottom: 8px; }
.segmented { display: flex; border: 1px solid var(--sh-color-neutral-400); background: white; }
.segmented label { position: relative; flex: 1; text-align: center; cursor: pointer; min-width: 0; }
.segmented label + label { border-left: 1px solid var(--sh-color-neutral-400); }
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segmented span { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 8px; }
.segmented input:checked + span { background: var(--sh-color-accent-strong); color: white; }
.platform input:checked + span { background: var(--sh-color-neutral-800); }
.segmented input:focus-visible + span { outline: 3px solid var(--sh-color-accent); outline-offset: 3px; position: relative; z-index: 1; }
.segmented label:hover span { box-shadow: inset 0 -3px var(--sh-color-accent); }
.form-section { margin-top: 32px; border-top: 1px solid var(--sh-color-neutral-300); padding-top: 24px; }
.form-section > h3 { margin-bottom: 24px; }
.step { font: 13px "Source Sans Pro", sans-serif; color: var(--sh-color-accent-strong); vertical-align: middle; margin-right: 12px; }
.drop-zone { position: relative; padding: 24px 12px; text-align: center; border: 1px dashed var(--sh-color-neutral-500); background: var(--sh-color-neutral-100); }
.drop-zone label { text-decoration: underline; text-underline-offset: 4px; color: var(--sh-color-accent-strong); }
.drop-zone p { font-size: 13px; color: var(--sh-color-neutral-600); margin-top: 4px; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.drop-zone:focus-within { outline: 3px solid var(--sh-color-accent); outline-offset: 3px; }
.drop-zone.dragging { background: var(--sh-color-primary-soft); border: 2px solid var(--sh-color-primary); }
.upload-symbol { display: block; font-size: 28px; line-height: 36px; margin-bottom: 8px; }
.hint, .disclaimer { font-size: 13px; line-height: 20px; color: var(--sh-color-neutral-600); }
.hint { margin-top: 8px; }
.file-info { font-size: 13px; color: var(--sh-color-accent-strong); margin-top: 12px; overflow-wrap: anywhere; }
.field { margin-top: 20px; }
.field input:not([type="file"]), textarea, select { width: 100%; min-height: 48px; border: 1px solid var(--sh-color-neutral-400); color: var(--sh-color-on-surface); background: white; padding: 10px 12px; }
textarea { display: block; resize: vertical; min-height: 112px; }
input[type="file"] { max-width: 100%; min-height: 48px; font-size: 13px; }
input::file-selector-button { font: inherit; background: var(--sh-color-neutral-200); border: 1px solid var(--sh-color-neutral-400); padding: 12px; margin-right: 8px; min-height: 44px; cursor: pointer; }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--sh-color-accent); }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--sh-color-accent-strong); }
.error { padding: 12px; margin-top: 12px; color: var(--sh-color-status-error-text); background: var(--sh-color-status-error-soft); font-size: 14px; }
.video-heading { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.primary, .secondary { padding: 18px 24px; font-size: 18px; line-height: 20px; min-height: 56px; color: white; background: var(--sh-color-primary); }
.primary:hover { background: var(--sh-color-primary-hover); }
.secondary { background: var(--sh-color-accent-strong); }
.secondary:hover { background: var(--sh-color-accent-deep); }
.preview-panel { padding: 32px 0 32px 32px; align-self: stretch; min-width: 0; }
.preview-heading { margin-bottom: 24px; flex-wrap: wrap; }
.live-label { font-size: 13px; color: var(--sh-color-accent-strong); }
.live-label span { margin-right: 4px; font-size: 10px; }
.preview-controls { background: white; padding: 16px; }
.preview-options { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.preview-options > label:first-child { flex: 1; min-width: 88px; font-size: 13px; }
.preview-options select { display: block; margin-top: 4px; padding: 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 14px; cursor: pointer; }
.check:has(:disabled) { color: var(--sh-color-neutral-600); cursor: not-allowed; }
.preview-figure { margin: 0; }
.preview-stage { background: var(--sh-color-neutral-200); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 400px; }
canvas { display: block; width: 414px; height: auto; max-width: 100%; }
figcaption { text-align: center; background: var(--sh-color-neutral-200); font-size: 13px; color: var(--sh-color-neutral-600); padding: 0 16px 16px; }
.ratio-note { margin-top: 16px; font-size: 13px; line-height: 20px; border-left: 2px solid var(--sh-color-accent); padding-left: 12px; }
.export-row { margin-top: 24px; display: flex; align-items: center; gap: 16px; }
.export-row .primary { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.export-row .hint { max-width: 110px; margin: 0; }
.disclaimer { margin-top: 16px; }
.text-preview { font-size: 13px; margin-top: 12px; }
.text-preview summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.text-preview p { white-space: pre-wrap; overflow-wrap: anywhere; background: white; padding: 16px; }
.guide { border-top: 1px solid var(--sh-color-neutral-400); margin-top: 48px; padding: 48px 0 64px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.guide-grid h3 { margin: 12px 0; }
.guide-grid p { color: var(--sh-color-neutral-600); max-width: 48ch; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 48px; background: var(--sh-color-neutral-800); color: var(--sh-color-neutral-300); font-size: 13px; }
@media (min-width: 1600px) { main { padding: 0 74px; } }
@media (max-width: 1100px) { main { padding: 0 44px; } .editor { padding: 24px; } .preview-panel { padding-left: 24px; } .local-label { display: none; } .intro { align-items: flex-start; } .intro .text-link { margin-top: 32px; } .preview-stage { padding: 16px; } }
@media (max-width: 900px) { .workspace { grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr); } main { padding: 0 24px; } .preview-heading h2 { font-size: 24px; } .live-label { display: none; } .preview-options { gap: 8px 12px; } .export-row { flex-wrap: wrap; } .export-row .hint { max-width: none; width: 100%; } }
@media (max-width: 768px) { .site-header { padding: 20px 24px; gap: 24px; } .header-label { margin-left: auto; padding-left: 0; border: 0; font-size: 13px; max-width: 130px; } .brand img:last-child { display: none; } main { padding: 0 44px; } h1 { font-size: 28px; line-height: 40px; } .intro { display: block; padding-top: 32px; } .intro .text-link { margin-top: 16px; } .workspace { display: block; } .editor { padding: 24px; } .preview-panel { padding: 32px 0 0; } .preview-heading h2 { font-size: 28px; } .live-label { display: block; } .guide-grid { grid-template-columns: 1fr; } .guide { margin-top: 32px; } footer { padding: 24px; flex-direction: column; gap: 8px; } }
@media (max-width: 600px) { main { padding: 0 32px; } }
@media (max-width: 500px) { main { padding: 0 24px; } .editor { padding: 24px 16px; } h2 { font-size: 24px; } h3 { font-size: 22px; } .section-heading { flex-wrap: wrap; } .preview-controls { padding: 12px; } .preview-stage { padding: 16px 12px; } .preview-options > label:first-child { flex-basis: 100%; } .check { flex: 1; } .live-label { display: none; } .primary { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
