@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-normal-500.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-normal-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-normal-600.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #faf8f2;
  --sheet: #fffefa;
  --wash: #e9ecdf;
  --ink: #29382c;
  --secondary: #505e50;
  --line: #c4c8b8;
  --field: #899481;
  --accent: #465b42;
  --active: #354b34;
  --error: #913c36;
  --serif: "Cormorant Garamond", Georgia, serif;
  font: 100%/1.5 "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: var(--field) var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #d6e0c9; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
button, select, input, textarea { font: inherit; color: inherit; }
button, a, select, input[type=radio] { touch-action: manipulation; }
button, select, a { cursor: pointer; }
button, a.secondary { text-align: center; }
button:disabled { cursor: default; opacity: .62; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bar { border-bottom: 1px solid var(--line); }
.bar-inner, main { margin-inline: auto; width: min(70rem, calc(100% - 3rem)); }
.bar-inner { min-height: 4.75rem; display: flex; align-items: center; gap: 1rem; color: var(--secondary); font-size: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font: 1.75rem/1 var(--serif); text-decoration: none; letter-spacing: -.035em; }
.brand img { width: 1.75rem; height: 1.75rem; }
.bar-divider { height: 1.15rem; border-inline-start: 1px solid var(--line); }
#logout { margin-inline-start: auto; }
.entry { width: min(100%, 28rem); margin: min(12vh, 7rem) auto 4rem; }
.entry .intro { color: var(--secondary); margin: .85rem 0 2rem; }
.entry input { margin-bottom: 1.25rem; }
.entry .text-link { display: inline-flex; margin-top: .75rem; }
#unavailable .text-link { margin-inline: 1rem; }
h1, h2, legend { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { margin: 0; font-size: 3.15rem; line-height: 1.06; letter-spacing: -.035em; }
h2, legend { margin: 0 0 1.45rem; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.027em; }
.page-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin: 3.4rem 0 1.6rem; }
.switcher, .save-row, .share-actions, .provider-row { display: flex; gap: .7rem; align-items: center; }
.switcher select { max-width: min(16rem, 55vw); }
.switcher button { white-space: nowrap; }
.notice { background: var(--wash); padding: .65rem 1rem; margin: .1rem 0 1.25rem; font-size: .9rem; color: #374537; }
.workspace-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20.5rem); align-items: start; gap: 4rem; padding: 2.4rem 0 4rem; }
.section { padding: 0; border: 0; min-width: 0; margin: 0 0 2.4rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.full { grid-column: 1/-1; }
.field { min-width: 0; }
label, small { display: block; }
label { font-size: .92rem; font-weight: 550; margin-bottom: .35rem; }
small, .section-description, .sharing > p { color: var(--secondary); }
small { margin-top: .45rem; font-size: .85rem; }
input:not([type=radio], [type=checkbox]), select, textarea { width: 100%; background: var(--sheet); border: 1px solid var(--field); border-radius: .4rem; padding: .65rem .75rem; min-height: 2.8rem; }
textarea { resize: vertical; display: block; }
input::placeholder, textarea::placeholder { color: #687364; }
input[readonly] { color: var(--secondary); }
.primary, .secondary, .quiet, .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; font-size: .94rem; font-weight: 550; }
.primary, .secondary { padding: .55rem 1.1rem; border-radius: .45rem; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: white; }
.secondary { border: 1px solid var(--field); background: var(--sheet); color: var(--ink); text-decoration: none; }
.quiet { border: 0; background: none; color: var(--accent); padding: .35rem .25rem; text-decoration: underline; text-underline-offset: .22em; }
.text-link { font-weight: 500; }
.primary:not(:disabled):hover { background: var(--active); }
.secondary:not(:disabled):hover { background: var(--wash); }
.quiet:not(:disabled):hover, .text-link:hover { text-decoration-thickness: 2px; }
button:not(:disabled):active, a.secondary:active { transform: scale(.98); }
.theme-section { margin-bottom: 1.5rem; }
.theme-section legend { padding: 0; }
.theme-options { display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-option { position: relative; cursor: pointer; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--sheet); }
.theme-option:has(:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.theme-option .swatch { display: flex; height: 1.25rem; border: 1px solid #0002; border-radius: .2rem; overflow: hidden; }
.swatch i:nth-child(1) { flex: 6; }
.swatch i:nth-child(2) { flex: 3; }
.swatch i:nth-child(3) { flex: 1; }
.swatch.garden { background: #faf8f2; } .garden i:nth-child(2) { background: #e5e9dc; } .garden i:last-child { background: #465b42; }
.swatch.blush { background: #fff7f4; } .blush i:nth-child(2) { background: #f0dedc; } .blush i:last-child { background: #834957; }
.swatch.coastal { background: #f5faf9; } .coastal i:nth-child(2) { background: #dce9e9; } .coastal i:last-child { background: #376371; }
.swatch.citrus { background: #fff8e9; } .citrus i:nth-child(2) { background: #f8deaa; } .citrus i:last-child { background: #984219; }
.swatch.berry { background: #fff6f7; } .berry i:nth-child(2) { background: #f4d9e4; } .berry i:last-child { background: #8f365d; }
.swatch.confetti { background: #f9f6ff; } .confetti i:nth-child(2) { background: #e6dcfa; } .confetti i:last-child { background: #594497; }
.theme-line { margin-top: .65rem; display: flex; align-items: center; gap: .45rem; line-height: 1.3; }
.theme-line input { flex: none; width: 1rem; height: 1rem; margin: 0; }
.gallery-section { margin-bottom: 1.5rem; }
.gallery-section legend { padding: 0; margin-bottom: .4rem; }
.gallery-choice { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.8rem; margin: 0; cursor: pointer; }
.gallery-choice input { width: 1.15rem; height: 1.15rem; margin: 0; }
.gallery-section small { margin-top: .1rem; max-width: 67ch; }
.save-row { flex-wrap: wrap; }
.status { font-size: .9rem; margin: .5rem 0; overflow-wrap: anywhere; }
.status:empty { display: none; }
.error { color: var(--error); }
.storage-section { margin: 2.4rem 0 0; border-top: 1px solid var(--line); padding-top: 2.3rem; }
.storage-section h2, .sharing h2 { margin-bottom: .6rem; }
.section-description, .sharing > p { margin: 0 0 1.25rem; }
.provider-row { justify-content: space-between; border-top: 1px solid var(--line); min-height: 4.7rem; padding: .65rem 0; }
.provider-row:last-child { border-bottom: 1px solid var(--line); }
.provider-label { font-weight: 550; }
.provider-state { display: block; color: var(--secondary); font-weight: 400; font-size: .84rem; }
.sharing { padding: 1.6rem; border-radius: .65rem; background: var(--wash); }
.qr-mount { margin-bottom: .9rem; background: white; text-align: center; border-radius: .4rem; }
.qr-mount img { display: block; width: min(100%, 12rem); height: auto; margin: auto; }
#download { width: 100%; }
.link-group { margin-top: 1.6rem; }
.share-actions { margin-top: .25rem; justify-content: space-between; flex-wrap: wrap; }
.share-actions .text-link, .share-actions .quiet { font-size: .87rem; }
.sr-only { clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
@media (max-width: 56rem) {
  .workspace-grid { gap: 1.65rem; grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem); }
  .sharing { padding: 1.15rem; }
  .theme-options { grid-template-columns: 1fr; }
  .theme-option { display: flex; align-items: center; gap: .8rem; min-height: 3rem; }
  .theme-option .swatch { width: 3.6rem; }
  .theme-line { margin: 0; }
}
@media (max-width: 44rem) {
  .bar-inner, main { width: min(100% - 2.25rem, 35rem); }
  .bar-inner { min-height: 3.85rem; gap: .6rem; }
  h1 { font-size: 2.45rem; }
  .page-heading { align-items: start; flex-direction: column; margin: 2rem 0 1.1rem; gap: 1rem; }
  .workspace-grid { grid-template-columns: 1fr; gap: 2.2rem; padding: 1.6rem 0 3rem; }
  .fields { gap: .9rem; }
  .switcher { width: 100%; }
  .switcher select { max-width: none; width: 0; flex: 1; }
}
@media (max-width: 27rem) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { button:not(:disabled):active, a.secondary:active { transform: none; } }
@media (prefers-contrast: more) { :root { --field: #39433b; --line: #596455; } }
