:root {
  color-scheme: light;
  --paper: #faf5ed;
  --sheet: #fffaf4;
  --band: #f3e8db;
  --ink: #332b25;
  --muted: #66574c;
  --accent: #8a4c3e;
  --button: #844939;
  --rule: #d9c5b4;
  --mark: #ead4c0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, sans-serif;
}

body[data-site="ana"] {
  --paper: #f7f4e9;
  --sheet: #fdfaf0;
  --band: #eaece2;
  --ink: #283639;
  --muted: #4c625f;
  --accent: #3d6467;
  --button: #36595d;
  --rule: #c9cfc2;
  --mark: #e0e5d6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height, 5.25rem); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font: 400 1em/1.08 var(--serif); }
h1 { font-size: clamp(3.35rem, 8.1vw, 7.1rem); letter-spacing: -.068em; }
h1 em { color: var(--accent); font-weight: normal; }
h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -.045em; }
h3 { font-size: 1.65rem; letter-spacing: -.025em; }
svg { display: block; max-width: 100%; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; top: .4rem; left: .4rem; z-index: 5; padding: .6rem; background: var(--sheet); transform: translateY(-150%); }
.skip:focus { transform: none; }
.preview-bar { background: var(--ink); color: var(--paper); }
.preview-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.15rem; font-size: .64rem; letter-spacing: .13em; font-weight: 690; }
.preview-bar button { color: inherit; background: transparent; border: 0; padding: .15rem 0; text-decoration: underline; font-size: .74rem; }
.preview-bar button:focus-visible, .button:focus-visible { outline-color: currentColor; outline-offset: -4px; }
.preview-detail { opacity: .8; font-weight: 400; }
#header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.head-inner { min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1; font-family: var(--serif); font-size: 1.5rem; }
.brand small { display: block; margin-top: .36rem; font: 680 .57rem/1 var(--sans); letter-spacing: .15em; color: var(--muted); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.18rem; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); }
.brand-mark svg, .foot-inner svg { width: 1.1rem; }
.head-inner nav { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 4vw, 3rem); row-gap: .4rem; }
.head-inner nav a, .head-link, .foot-inner a { text-decoration: none; font-size: .84rem; }
.head-inner a:hover, .foot-inner a:hover { text-decoration: underline; text-underline-offset: .23em; }
.head-link { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); min-height: 38rem; padding-block: 3rem 3.8rem; }
.hero-copy { padding-block: 1rem; }
.eyebrow { display: flex; align-items: center; gap: .66rem; font-size: .69rem; font-weight: 720; letter-spacing: .15em; color: var(--accent); margin-bottom: 1.2rem; }
.eyebrow span { width: 1.45rem; height: 1px; background: currentColor; flex: none; }
.hero-lead { max-width: 33rem; margin: 1.7rem 0 1.9rem; font-size: clamp(1rem, 1.6vw, 1.17rem); color: var(--muted); }
.hero-image { color: var(--accent); align-self: center; }
.hero-art { width: 100%; max-width: 30rem; margin-inline: auto; }
.art-caption { text-align: center; font-size: .61rem; letter-spacing: .21em; font-weight: 680; color: var(--muted); }
.access-form { max-width: 25rem; }
.access-form label, .panel label { display: block; font-size: .83rem; font-weight: 680; }
.input-row { display: flex; align-items: stretch; gap: .5rem; margin-top: .35rem; }
input:not([type="checkbox"]), textarea, select {
  width: 100%; min-width: 0; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule);
  padding: .66rem .8rem; border-radius: .25rem;
}
textarea { display: block; resize: vertical; }
input[type="file"] { padding: .47rem; line-height: 1.35; font-size: .82rem; }
input::file-selector-button { color: var(--accent); background: var(--mark); border: 0; padding: .28rem .5rem; margin-right: .5rem; border-radius: .15rem; cursor: pointer; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 2.65rem;
  padding: .65rem 1.06rem; background: var(--button); color: #fff; border: 1px solid transparent;
  border-radius: .24rem; font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--ink); }
.button:disabled { opacity: .65; cursor: progress; }
.form-help { color: var(--muted); font-size: .81rem; margin: .55rem 0 0; }
.form-help code { font-size: .93em; padding: .09rem .26rem; background: var(--mark); border-radius: .2rem; }
.hero-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.text-link { font-size: .87rem; color: var(--accent); text-underline-offset: .24em; font-weight: 670; }
.section { padding-block: clamp(3.5rem, 7vw, 6.4rem); }
.band { background: var(--band); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: 2rem; }
.section-head > p:last-child { margin: .85rem 0 0; max-width: 40rem; color: var(--muted); }
.wish-grid, .photo-grid, .editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wish-card, .panel, figure { background: var(--sheet); border: 1px solid var(--rule); border-radius: .4rem; }
.wish-card { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem; }
.wish-card h3 { margin-top: .55rem; }
.wish-card p { margin: .55rem 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.wish-card h3, .photo-review p, figcaption { overflow-wrap: anywhere; }
.wish-card .wish-price, .wish-dialog .wish-price { color: var(--accent); font-weight: 750; font-size: 1.14rem; margin: .65rem 0; }
.wish-card .button { margin-top: .5rem; }
.wish-card .wish-credit { font-size: .69rem; }
.wish-with-image { padding: 0; overflow: hidden; gap: 0; }
.wish-with-image .wish-copy { padding: 1.25rem; }
.wish-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--band); }
.wish-preview { width: min(100%, 13rem); max-height: 9rem; object-fit: contain; }
.wish-dialog { width: min(32rem, 100% - 2rem); border: 1px solid var(--rule); border-radius: .4rem; background: var(--sheet); color: var(--ink); padding: 1.4rem; }
.wish-dialog::backdrop { background: #161213b8; }
.wish-dialog .actions { margin-top: 1rem; }
.wish-dialog .button { white-space: normal; }
.wish-icon { width: 2.6rem; padding: .56rem; border-radius: 50%; background: var(--mark); color: var(--accent); }
.tag { display: inline-block; width: fit-content; background: var(--mark); color: var(--ink); font-size: .63rem; font-weight: 740; letter-spacing: .11em; padding: .2rem .45rem; border-radius: .15rem; }
.notes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.notes-archive { grid-template-columns: 1fr; }
.notes-archive .note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
blockquote { margin: 0 0 1rem; padding: 1.45rem; border-inline-start: 2px solid var(--accent); background: var(--band); }
blockquote h3 { margin-bottom: .55rem; overflow-wrap: anywhere; }
blockquote p { font: 1.35rem/1.4 var(--serif); margin-bottom: .65rem; white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote footer { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.panel { padding: 1.25rem; display: grid; align-items: start; justify-items: start; gap: .9rem; }
.panel label { width: 100%; }
.panel label > :not([type="checkbox"]) { margin-top: .28rem; }
.panel .form-help { margin: 0; }
figure { margin: 0; overflow: hidden; }
figure svg { width: 100%; aspect-ratio: 3 / 2; }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: var(--mark); cursor: zoom-in; }
.photo-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.photo-open:focus-visible { outline-offset: -4px; }
#photo-dialog { width: fit-content; max-width: calc(100% - 2rem); border: 1px solid var(--rule); border-radius: .4rem; color: var(--ink); background: var(--sheet); padding: 1rem; }
#photo-dialog::backdrop { background: #161213b8; }
#photo-dialog .button { margin-inline-start: auto; }
#photo-dialog img { max-height: 70vh; width: auto; object-fit: contain; }
#photo-dialog p { margin: .6rem 0 0; overflow-wrap: anywhere; }
.photo-tools, .album-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: .75rem; }
.photo-tools .quiet:disabled { opacity: .5; cursor: default; }
.album-nav { gap: 1.2rem; }
.album-group { margin-top: 2rem; }
.album-group > h3 { margin-bottom: .85rem; }
.album-group > h3 small { color: var(--muted); font: .78rem var(--sans); margin-inline-start: .35rem; }
.illustration.sea { background: #e5cdb4; }
.illustration.table { background: #d6b098; }
.illustration.hill { background: #e5d2af; }
figcaption { padding: .8rem 1rem .95rem; font: 1.1rem/1.25 var(--serif); }
figcaption span { display: block; margin-bottom: .35rem; color: var(--muted); font: 690 .62rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.upload-panel { margin-top: 1.35rem; grid-template-columns: 1.25fr 1fr 1fr auto; align-items: end; }
.upload-panel h3 { margin: 0 0 .4rem; }
.optional { color: var(--muted); font-weight: 400; }
.closed { margin-top: 1.2rem; }
.foot-inner { min-height: 6rem; color: var(--muted); }
.foot-inner span { display: inline-flex; align-items: center; gap: .6rem; font: 1.08rem/1.4 var(--serif); }
.admin-page { padding-block: 4rem; min-height: 60vh; }
.admin-page h1 { font-size: clamp(2.55rem, 6.4vw, 5.3rem); margin-bottom: 2rem; }
.admin-page h2 { margin: 2.25rem 0 1rem; font-size: clamp(1.75rem, 4.5vw, 2.8rem); }
.admin-nav, .admin-top { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.admin-nav { margin-top: 1.2rem; border-block: 1px solid var(--rule); padding: .5rem 0; }
.editor .check { display: flex; gap: .35rem; align-items: center; }
.quiet { background: none; color: var(--accent); border: 1px solid var(--rule); border-radius: .2rem; font-size: .79rem; padding: .48rem .55rem; }
.quiet:hover { background: var(--mark); }
.new-item { margin-top: 1rem; max-width: 32rem; }
.new-item summary { cursor: pointer; color: var(--accent); margin-bottom: .6rem; }
.toggle-uploads { margin-bottom: 1rem; }
.photo-review img { width: 100%; aspect-ratio: 4 / 3; max-height: 13rem; object-fit: contain; background: var(--band); }
.photo-review p { margin: 0; }
#notice { position: fixed; bottom: 1rem; left: 50%; z-index: 3; transform: translateX(-50%); width: min(29rem, 100% - 2rem); text-align: center; }
#notice:not(:empty) { background: var(--ink); color: #fff; border-radius: .3rem; box-shadow: 0 4px 20px #0002; padding: .8rem 1rem; font-size: .9rem; }

@media (max-width: 970px) {
  .upload-panel { grid-template-columns: 1fr 1fr; }
  .upload-panel > div { grid-column: 1 / -1; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2.25rem); }
  .head-inner { min-height: 4.6rem; flex-wrap: wrap; padding-block: .75rem; gap: .7rem; }
  .head-inner nav { width: 100%; order: 3; padding-top: .4rem; }
  .hero { grid-template-columns: 1fr; gap: .3rem; padding-block: 2rem 2.7rem; }
  .hero-copy { padding-bottom: .5rem; }
  .hero-art { max-width: 22rem; }
  .wish-grid, .photo-grid, .editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes, .notes-archive .note-list { grid-template-columns: 1fr; gap: .55rem; }
}
@media (max-width: 440px) {
  .wish-grid, .photo-grid, .editor-grid, .upload-panel { grid-template-columns: 1fr; }
  .hero-lead { margin-block: 1.25rem 1.5rem; }
  .foot-inner span { font-size: .9rem; }
}
