:root {
  color-scheme: light;
  --paper: #f6f3f0;
  --surface: #fffcfa;
  --ink: #281d29;
  --muted: #695d69;
  --line: #ddd4d8;
  --wine: #782b50;
  --blush: #f7b2ce;
  --night: #261c28;
  font: 100%/1.55 system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.wrap { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
main.wrap { min-height: 74vh; padding-block: 28px 48px; }
main:focus { outline: none; }
.top { color: white; background: var(--night); border-bottom: 1px solid #4d3648; }
.bar, .bar nav, .actions, .row, .card-top, .field-top, .foot, .form-foot, .place { display: flex; align-items: center; gap: 12px; }
.bar { min-height: 68px; }
.logo { display: block; width: 137px; height: auto; }
.brand { margin-left: 4px; padding-left: 16px; border-left: 1px solid #75626f; color: #f4e6ef; font-weight: 600; }
.bar nav { margin-left: auto; gap: 18px; }
.bar a, .bar button { color: #fff2fa; }
.bar .quiet { font-size: .94rem; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
a { color: var(--wine); text-underline-offset: .22em; }
button, a { touch-action: manipulation; }
button, input, select, textarea { font: inherit; }
button, .button, .top-action {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  padding: 9px 17px; border: 1px solid #c4b4bd; border-radius: 9px; background: var(--surface); color: var(--ink);
  text-decoration: none; font-weight: 650; text-align: center; line-height: 1.35;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
button:hover, .button:hover { background: #f7eaf0; border-color: #a77e92; }
.primary { color: #fffafa; background: var(--wine); border-color: var(--wine); }
.primary:hover { color: white; background: #5c193a; }
.bar .top-action { color: white; background: transparent; border-color: #826d7d; font-size: .94rem; }
.bar .top-action:hover { background: #493443; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #ae3b75; outline-offset: 3px;
}
.hero :focus-visible, .bar :focus-visible { outline-color: #ffcae4; }
button:disabled { opacity: .65; cursor: wait; }
.quiet, .text-link { font-weight: 650; text-decoration: none; }
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--wine); text-underline-offset: .2em; }
button.text-link { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 650; }
.quiet:hover, .text-link:hover { text-decoration: underline; }
.text-link.subdued { color: var(--muted); }
.actions, .row { flex-wrap: wrap; }
.icon { width: 1.16em; height: 1.16em; flex: none; }
h1, h2, h3, p, figure { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
h1 { font-size: clamp(2.7rem,5.8vw,4.9rem); }
h2 { font-size: clamp(1.7rem,2.7vw,2.35rem); }
h3 { line-height: 1.3; font-size: 1.14rem; }
p { color: var(--muted); }
.long { white-space: pre-line; }
.hero {
  min-height: 265px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  background: #382838; color: #fff9f4; border-radius: 17px;
}
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,rgba(28,16,30,.96),rgba(34,19,38,.83) 28%,rgba(36,19,40,.32) 68%,rgba(29,14,28,.04)),linear-gradient(0deg,rgba(28,11,28,.34),transparent);
}
.hero-copy { padding: clamp(25px,3.8vw,49px); max-width: 710px; }
.kicker, .context { color: var(--wine); font-weight: 720; font-size: .89rem; }
.hero .kicker { display: block; color: #ffd6e9; margin-bottom: 7px; }
.hero p { color: #f1e2eb; margin-top: 9px; }
.hero .actions { margin-top: 22px; }
.hero .primary { background: var(--blush); color: #351728; border-color: var(--blush); }
.hero .primary:hover { background: #ffd1e5; }
.hero .ghost, .hero .button:not(.primary) { color: white; background: #302331e6; border-color: #977f92; }
.hero .ghost:hover, .hero .button:not(.primary):hover { background: #503448; }
.place { gap: 6px; }
.place .icon { width: 1em; }
.tabs {
  position: sticky; z-index: 2; top: 0; display: flex; gap: clamp(12px,3vw,38px); background: var(--paper);
  border-bottom: 1px solid #cfc3ca; margin: 0 0 24px;
}
.tabs a { min-height: 57px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; padding-inline: 4px; text-decoration: none; }
.tabs a:hover { color: var(--wine); }
.tabs a[aria-current] { color: var(--wine); box-shadow: inset 0 -3px var(--wine); }
.page-head { margin: 18px 0 24px; }
.page-head h1 { font-size: clamp(2.35rem,4vw,3.45rem); }
.context { display: block; margin-bottom: 3px; }
.grid, .form-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.grid.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-layout { grid-template-columns: minmax(0,1.55fr) minmax(240px,.85fr); }
.grid > *, .form-layout > *, .event-body, .date-fields > * { min-width: 0; }
.card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 3px 12px #38233806; }
.pad { padding: clamp(20px,2.6vw,30px); }
.card-top, .field-top, .row.between, .form-foot, .foot { justify-content: space-between; }
.card-top { flex-wrap: wrap; column-gap: 10px; row-gap: 0; margin-bottom: 8px; }
.card-top .text-link, .tile-actions, .event-actions { font-size: .92rem; }
.section, .stack, .hero + .grid { margin-top: 20px; }
.stack > * + *, .form > * + * { margin-top: 16px; }
.form .msg:empty { display: none; }
.visit { display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.visit .button { flex-shrink: 0; }
.visit p { max-width: 73ch; }
.lead { margin: 10px 0 18px; }
.visit .lead { margin-bottom: 0; }
.event { display: flex; gap: 16px; align-items: flex-start; padding: 19px 0; border-top: 1px solid var(--line); }
.event:last-child { padding-bottom: 0; }
.date { display: grid; align-items: center; text-align: center; min-width: 57px; color: var(--wine); background: #f5e8ed; border-radius: 9px; padding: 7px 6px 6px; }
.date span { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.date b { font-family: Georgia,serif; font-weight: 500; font-size: 1.85rem; line-height: 1; }
.event-time::first-letter { text-transform: uppercase; }
.event-time { margin-bottom: 3px; }
.event .long { margin-top: 6px; }
.event-actions { gap: 14px; margin-top: 3px; }
.event-actions:empty { display: none; }
.meta, .small { color: var(--muted); font-size: .92rem; }
.pill, .cover-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 8px; font-weight: 680; font-size: .82rem; }
.published { color: #245245; background: #e4eee7; }
.draft { color: #77521e; background: #f5ead8; }
.cancelled { color: #784c55; background: #f2e6e7; }
.photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.tile { min-width: 0; }
.photo-frame { position: relative; overflow: hidden; background: #312737; border-radius: 10px; }
.tile img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.cover-tag { position: absolute; bottom: 8px; left: 8px; background: #241a28e8; color: white; }
.tile figcaption { overflow-wrap: anywhere; margin-top: 7px; font-weight: 600; font-size: .96rem; }
.tile-actions { gap: 12px; }
.album-layout { grid-template-columns: minmax(290px,.78fr) minmax(0,1.22fr); }
.empty { padding: 15px 0; }
.form { max-width: 760px; }
.form label, .form .field-top h2 { font: inherit; font-weight: 650; margin-bottom: 5px; }
.form label { display: block; }
.form input, .form textarea, .form select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #bbaeb6; border-radius: 7px; color: var(--ink); background: #fff; }
.form textarea { min-height: 108px; resize: vertical; }
.form[data-form="visit"] { max-width: none; }
.visit-editor .visit-side { margin-top: 0; }
.visit-editor .weekday { padding: 12px 0; border-top: 1px solid var(--line); }
.visit-editor .weekday-mode { display: grid; grid-template-columns: minmax(70px,1fr) minmax(125px,1fr); gap: 9px; align-items: center; }
.visit-editor .weekday-mode label { margin: 0; }
.visit-editor .hours-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 12px; margin-top: 8px; }
.visit-editor .hours-fields[hidden], .overnight[hidden] { display: none; }
.hours-fields label, .rate-row label { font-size: .91rem; }
.hours-fields .overnight { grid-column: 1 / -1; color: var(--wine); }
.visit-editor .rate-row { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(65px,.85fr) auto; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding: 14px 0; }
.visit-editor .rate-row button { padding-inline: 10px; }
#rate-list { margin-top: 15px; }
#add-rate:disabled { cursor: default; }
.form[data-form="visit"] .form-foot { justify-content: flex-start; gap: 22px; }
.facts { margin: 16px 0 0; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 10px 0; }
.facts dt { overflow-wrap: anywhere; }
.facts dd { margin: 0; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; color: var(--muted); }
.prices dd { color: var(--wine); font-weight: 650; }
.form input[type="file"] { padding: 7px; }
.form input::file-selector-button { background: #eee4e9; color: #56273e; border: 0; border-radius: 5px; padding: 7px 11px; margin-right: 10px; font: inherit; }
.file-pick p { margin-top: 5px; }
#photo-sample img { display: block; max-height: 220px; max-width: 100%; border-radius: 8px; }
.cont { max-width: 720px; }
.date-fields { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.quick-dates, .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 14px; }
.quick-dates span { color: var(--muted); margin-right: 4px; font-size: .93rem; }
.quick-dates button, .filters button { padding: 7px 13px; font-size: .94rem; border-radius: 20px; }
.filters button[aria-pressed="true"] { color: white; border-color: var(--wine); background: var(--wine); }
.form-group, .form-foot { border-top: 1px solid var(--line); padding-top: 18px; }
.form-foot { gap: 12px; flex-wrap: wrap; }
.preview-cover { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 9px; margin-top: 8px; }
.preview-text small { display: block; color: var(--wine); margin: 7px 0 2px; font-weight: 620; }
.preview-text h3 { font-size: 1.35rem; }
.preview-text .long { margin-top: 8px; }
.msg { color: #933044; white-space: pre-line; }
.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 20px 0; font-size: .9rem; flex-wrap: wrap; }
#toast:not(:empty) { position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); width: max-content; padding: 12px 18px; background: #2e212d; color: white; border-radius: 9px; box-shadow: 0 6px 24px #26172b33; }
:where(input,textarea,button,a) { scroll-margin-top: 70px; }
@media (max-width:790px) {
  .wrap { width: calc(100% - 32px); }
  .grid, .grid.equal, .form-layout, .album-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .bar { min-height: 62px; }
  .hero { min-height: 220px; }
  .visit { flex-wrap: wrap; }
  .bar nav { gap: 10px; }
}
@media (max-width:540px) {
  .wrap { width: calc(100% - 24px); }
  main.wrap { padding-top: 14px; }
  .logo { width: 100px; }
  .brand { display: none; }
  .bar nav { margin-left: auto; gap: 12px; }
  .bar .top-action { padding-inline: 9px; }
  .hero { border-radius: 12px; }
  .hero-copy { padding: 21px 18px; }
  .hero .actions { gap: 8px; }
  .hero .button { padding-inline: 11px; font-size: .94rem; }
  .hero::after { background: linear-gradient(90deg,#201524e8,#27182c88 85%),linear-gradient(0deg,#20101e88,transparent); }
  .tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 16px; }
  .tabs a { min-height: 58px; font-size: .85rem; flex-direction: column; gap: 2px; justify-content: center; padding: 5px 2px; }
  .pad { padding: 17px; }
  .date-fields { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .event { gap: 10px; }
  .photos { gap: 10px; }
  .filters { gap: 4px; }
  .filters button { padding-inline: 9px; }
  .cover-tag { font-size: .74rem; bottom: 5px; left: 5px; }
  .album-layout .photos { grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.setup { margin-bottom: 20px; }
.follow-bar { margin-block: 14px; }
.soldout { background: #f5e8d5; color: #624512; }
button[data-save][aria-pressed="true"] { color:#315d49; }
@media(max-width:540px){.bar{flex-wrap:wrap;gap:4px 10px;padding-block:8px}.bar nav{flex-wrap:wrap;justify-content:flex-end;gap:4px 9px}.bar .quiet,.bar .top-action{font-size:.88rem}}
