:root {
  --paper: #fbf8ed;
  --surface: #fffdf5;
  --ink: #142f27;
  --green: #174c3d;
  --dark: #102e26;
  --muted: #516357;
  --line: #d8dac9;
  --berry: #982f3a;
  --gold: #e9b96f;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font: 1rem/1.57 var(--sans); display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 3rem), 73rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.nav { min-height: 4.65rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold clamp(1rem, 2vw, 1.22rem)/1.2 var(--serif); text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--paper); background: var(--green); font: 1.22rem var(--sans); }
.nav-link { color: var(--green); font: 650 .9rem/1.4 var(--sans); padding: .45rem 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .25rem; cursor: pointer; text-align: right; }
.site-footer { margin-top: auto; min-height: 4.4rem; padding-block: .85rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.site-footer span:last-child span { color: var(--berry); padding-left: .15rem; }
.main { padding-block: clamp(1.55rem, 5vw, 3.6rem); }
h1, h2, h3 { margin: 0 0 .6rem; font-family: var(--serif); line-height: 1.09; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h2 small { color: var(--muted); margin-left: .35rem; font: 650 .85rem var(--sans); white-space: nowrap; }
p { margin: .6rem 0 1.1rem; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bd7420; outline-offset: 3px; }
.button { display: inline-flex; width: fit-content; max-width: 100%; min-height: 2.85rem; align-items: center; justify-content: center; padding: .58rem 1.05rem; border: 1px solid transparent; border-radius: .55rem; text-align: center; text-decoration: none; font-weight: 660; line-height: 1.3; background: var(--green); color: #fffdf6; }
.button:hover { filter: brightness(.9); }
.button.berry { background: var(--berry); }
.button.outline { border-color: #9cae9c; background: transparent; color: var(--green); }
.button.compact { min-height: 2.45rem; padding: .45rem .72rem; font-size: .88rem; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: .2rem; border: 0; background: transparent; padding: 0; width: fit-content; text-align: left; font-weight: 640; font-size: .94rem; }
.text-link:hover, .nav-link:hover { color: var(--berry); }
.separate { display: block; margin-top: 1.1rem; }
.muted, .subline { color: var(--muted); }
.eyebrow { margin: 0 0 .6rem; font-weight: 750; font-size: .78rem; line-height: 1.45; letter-spacing: .095em; text-transform: uppercase; color: var(--berry); }
.ornament { color: var(--gold); font-size: 1.55rem; }
.home { padding-block: clamp(1.2rem, 3.4vw, 2.7rem); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; min-height: min(37rem, 54vw); overflow: hidden; border-radius: 1.15rem; background: var(--dark); color: var(--paper); box-shadow: 0 1rem 2.5rem #102e261b; }
.hero-copy { align-self: center; padding: clamp(1.7rem, 5.5vw, 4.8rem); }
.hero-copy h1 { margin: 1rem 0 1.45rem; font-size: clamp(2.5rem, 5.9vw, 5.25rem); line-height: .98; color: #fcf5e4; letter-spacing: -.06em; }
.hero-copy h1 span:first-child { color: #f0c789; }
.hero-copy .heading-dot { color: #e69b8a; }
.hero-copy p { max-width: 31ch; margin-bottom: 1.65rem; color: #ede8d7; }
.hero-note { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.65rem; color: #e5ddc6; font-size: .88rem; }
.hero-note span { color: var(--gold); }
.hero-picture { position: relative; min-height: 100%; }
.hero-art { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 55%; }
.panel, .split-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 .3rem 1.2rem #102e2609; }
.panel { padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.narrow, .card-panel { max-width: 40rem; margin-inline: auto; }
.narrow > .text-link:first-child { display: inline-block; margin-bottom: 1rem; }
.split-panel { display: grid; grid-template-columns: 1.3fr 1fr; max-width: 56rem; margin-inline: auto; overflow: hidden; }
.panel-copy { padding: clamp(1.2rem, 4.5vw, 3.5rem); align-self: center; min-width: 0; }
.split-panel img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.4rem; margin: .65rem 0 1.55rem; }
.page-heading h1 { margin-bottom: 0; }
.status, .tag { width: fit-content; display: inline-block; border-radius: 2rem; background: #ece9d9; color: #5f461e; padding: .23rem .65rem; font-size: .83rem; font-weight: 650; }
.status.open { background: #e4efe3; color: #214f3b; }
.status.drawn { background: #f1ddd6; color: #792b37; }
.tag { margin-left: .3rem; font-size: .74rem; }
.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.round-tile { display: grid; gap: .5rem; height: 100%; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); text-decoration: none; }
.round-tile:hover { border-color: var(--green); }
.round-tile strong { font: bold 1.45rem/1.2 var(--serif); overflow-wrap: anywhere; }
.empty { padding-block: 3rem; text-align: center; }
.empty .ornament { color: var(--berry); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.stack { display: grid; align-content: start; gap: .9rem; }
.stack > p { margin: 0; }
.inline, .copy-row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 12rem; }
.copy-status { color: var(--green); font-size: .89rem; margin-bottom: 0; }
.copy-status:empty { display: none; }
.field-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-grid .field:last-child { grid-column: 1 / -1; }
.field label { display: inline-block; font-weight: 670; margin-bottom: .25rem; color: var(--ink); }
.optional { color: var(--muted); margin-left: .4rem; font-size: .82rem; }
input:not([type=hidden]), textarea, select { width: 100%; min-width: 0; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid #adb7a8; border-radius: .45rem; color: var(--ink); background: #fffef9; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 1.65rem; background-image: linear-gradient(45deg, transparent 51%, var(--green) 51%),linear-gradient(135deg,var(--green) 51%,transparent 51%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.errorlist { margin: 0; padding: .25rem 0 0; color: #8d2330; font-size: .9rem; list-style: none; }
.messages { margin-bottom: 1rem; }
.notice { padding: .7rem .8rem; border: 1px solid #b9cbb0; background: #edf2e5; border-radius: .5rem; }
.notice.error { border-color: #e3b9af; background: #faebe4; color: #7e2733; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.rows { margin-bottom: .85rem; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-block: .64rem; border-top: 1px solid var(--line); flex-wrap: wrap; overflow-wrap: anywhere; }
.subline { display: block; font-size: .84rem; }
summary { cursor: pointer; color: var(--green); font-weight: 650; }
.row-action { font-size: .9rem; }
.row-action form { margin-bottom: .45rem; }
.suggestions { margin: .85rem 0; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .6rem; }
.danger-zone { border-top: 1px solid var(--line); padding-top: .85rem; margin-top: 1.5rem; }
.danger-zone summary { color: var(--berry); }
.round-details { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin: 1rem 0; }
.round-details dt { font-size: .85rem; color: var(--muted); }
.round-details dd { margin: 0; font-weight: 670; overflow-wrap: anywhere; }
.card-panel { border-radius: 1rem; overflow: hidden; box-shadow: 0 .3rem 1.5rem #102e2612; }
.envelope-art { width: 100%; height: auto; aspect-ratio: 2.55; object-fit: cover; object-position: center 51%; }
.card-copy { border-radius: 0 0 1rem 1rem; }
.wishes { margin: 1.2rem 0; padding: .85rem 1rem; border-radius: .6rem; background: #f3edde; }
.wishes h2 { font-size: 1.25rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: .58rem .4rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .admin-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: clamp(1.25rem, 6vw, 2.75rem); }
  .hero-copy h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .hero-picture { height: min(25rem, 65vw); }
  .hero-art { object-position: center 56%; }
  .admin-grid aside { grid-row: 1; }
}
@media (max-width: 520px) {
  .nav { min-height: 3.8rem; gap: .65rem; }
  .nav-link { font-size: .78rem; }
  .brand-mark { width: 1.65rem; height: 1.65rem; font-size: 1rem; }
  .site-footer { font-size: .77rem; }
  .split-panel { grid-template-columns: 1fr; }
  .split-panel img { height: 10.5rem; object-position: center 51%; }
  .field-grid { grid-template-columns: 1fr; }
}
