/* Salone Aurora. Built to the Claude Design canvas linked in DESIGN.md. Tokens first. */
:root {
  --plum: #2b1533;         /* dominant: text, primary buttons, chosen chips, closing section */
  --coral: #ff7a66;        /* the one accent: fills and lines only, never text on a light ground */
  --blush: #ffd9d0;        /* tint of the accent: demo strip, third stripe band, soft text on plum */
  --paper: #fff8f4;
  --white: #ffffff;
  --muted: #5e4a66;        /* secondary text, field borders */
  --closed: #6f5d76;       /* text of days that cannot be picked */
  --closed-line: #b9a9bd;  /* dashed borders */
  --line: #e6d9dc;
  --error: #a3162b;        /* error text and error borders only */

  --display: Futura, "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.75rem;    /* 12: weekday in a day chip only */
  --fs-s: 0.875rem;    /* 14 */
  --fs-m: 1rem;        /* 16 body */
  --fs-l: 1.125rem;    /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-3xl: 2.5rem;    /* 40 */
  --fs-4xl: 4rem;      /* 64 */
  --fs-time-s: 4.5rem; /* 72: the opening-time block on a phone */
  --fs-time-l: 7.5rem; /* 120: the same on a desktop */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  --r-field: 8px; --r-btn: 10px; --r-card: 12px; --r-pill: 22px;
  --gutter: var(--s4);
  --fast: 160ms;
}
@media (min-width: 768px) { :root { --gutter: var(--s6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s4); }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--plum);
  background: var(--paper);
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd, fieldset, legend, address, table { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--plum); }
a:hover { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1 { font-size: var(--fs-3xl); line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--fs-2xl); line-height: 1.29; }
h3 { font-size: var(--fs-l); line-height: 1.33; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-js .js-only { display: none; }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.night :focus-visible { outline-color: var(--coral); }

.wrap { width: 100%; max-width: 1184px; margin-inline: auto; padding-inline: var(--gutter); }
.fine { font-size: var(--fs-s); line-height: 1.43; color: var(--muted); }

/* the dawn stripe as a small mark */
.mark { display: inline-flex; flex-direction: column; flex: none; width: 28px; border: 1.5px solid var(--plum); border-radius: 4px; overflow: hidden; }
.mark span:nth-child(1) { height: 10px; background: var(--plum); }
.mark span:nth-child(2) { height: 6px; background: var(--coral); }
.mark span:nth-child(3) { height: 4px; background: var(--blush); }
.band-plum { height: 10px; background: var(--plum); }
.band-coral { height: 6px; background: var(--coral); }
.band-blush { height: 4px; background: var(--blush); }

/* ---------- demo strip, header ---------- */
.demo-strip { background: var(--blush); padding: var(--s2) var(--gutter); font-size: var(--fs-s); line-height: 1.43; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 5; background: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r-field); }
.skip:focus { top: var(--s2); }

.top {
  width: 100%; max-width: 1184px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s2) var(--gutter);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-size: var(--fs-l); text-decoration: none; white-space: nowrap; }
.top-nav { display: none; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.lang { display: flex; gap: var(--s1); flex: none; }
.lang button {
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--muted); border-radius: var(--r-field); background: transparent;
  font-size: var(--fs-s); font-weight: 600;
  transition: background-color var(--fast), color var(--fast);
}
.lang button:hover { background: var(--blush); }
.lang button[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: var(--white); }

/* ---------- buttons and links ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: var(--s2) var(--s5);
  border: 1.5px solid var(--plum); border-radius: var(--r-btn);
  font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color var(--fast), box-shadow var(--fast);
}
.btn-main { background: var(--plum); color: var(--white); font-size: var(--fs-l); }
.btn-main:hover { color: var(--white); box-shadow: inset 0 -4px 0 var(--coral); }
.btn-line { background: transparent; color: var(--plum); }
.btn-line:hover { background: var(--blush); color: var(--plum); }
.btn-wide { width: 100%; min-height: 56px; }
.link-strong { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; text-align: left; font-weight: 600; text-decoration: underline; }
.link-btn:hover { color: var(--muted); }
.link-plain { font-weight: 400; }

/* ---------- first screen ---------- */
.hero { width: 100%; max-width: 1184px; margin-inline: auto; display: grid; gap: var(--s5); padding: var(--s5) var(--gutter) 40px; }
.hero-text { display: grid; gap: var(--s4); min-width: 0; }
.lede { font-size: var(--fs-l); line-height: 1.56; max-width: 520px; }
.hero-actions { display: grid; gap: var(--s1); }
.status { display: flex; align-items: center; gap: var(--s2); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.no-js .status-dot { display: none; }
.status.is-open .status-dot { background: var(--coral); border-color: var(--coral); }
.open-block { border-radius: 16px; overflow: hidden; }
.open-block p { background: var(--plum); color: var(--white); padding: var(--s5) 20px 20px; }
.open-time { display: block; font-family: var(--display); font-size: var(--fs-time-s); line-height: 1; }
.open-note { display: block; color: var(--blush); }
.open-block .band-coral { height: 28px; }
.open-block .band-blush { height: 14px; }

/* ---------- price list ---------- */
.prices { background: var(--white); padding-block: var(--s7); }
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.filter-line { display: grid; gap: var(--s4); }
.filter { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  height: 44px; padding: 0 var(--s4);
  border: 1.5px solid var(--muted); border-radius: var(--r-pill); background: var(--white);
  transition: background-color var(--fast), color var(--fast);
}
.chip:hover { background: var(--blush); }
.chip[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: var(--white); box-shadow: inset 0 -4px 0 var(--coral); font-weight: 600; }
.count { font-size: var(--fs-s); line-height: 1.43; color: var(--muted); }

.listino { display: grid; gap: var(--s5); }
.group { display: grid; gap: var(--s4); align-content: start; }
.row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); min-height: 69px; }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-weight: 600; }
.row-meta { display: block; font-size: var(--fs-s); line-height: 1.43; color: var(--muted); }
.row-price { font-family: var(--display); font-size: var(--fs-l); white-space: nowrap; }
.row-book {
  min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--plum); border-radius: var(--r-field); background: transparent;
  font-size: var(--fs-s); font-weight: 600;
  transition: background-color var(--fast);
}
.row-book:hover { background: var(--blush); }

/* ---------- booking ---------- */
.book { padding-block: var(--s7); }
.book .wrap { display: grid; gap: var(--s5); }
.section-intro { display: grid; gap: var(--s2); }
.section-intro p { color: var(--muted); }
.book.is-ready .wrap > .section-intro { display: none; }
.notice { padding: var(--s3) var(--s4); border: 1.5px dashed var(--closed-line); border-radius: var(--r-field); }

.booking { display: grid; gap: var(--s5); }
.steps { display: grid; gap: var(--s5); min-width: 0; }
.step { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.step > label, .step > legend { font-weight: 600; }
.step > legend { margin-bottom: var(--s2); }
.legend-note { font-weight: 400; color: var(--muted); }
.fields { display: grid; gap: var(--s5); }

select, input[type="text"], input[type="tel"], textarea {
  display: block; width: 100%; height: 52px; padding: 0 var(--s3);
  background: var(--white); border: 1.5px solid var(--muted); border-radius: var(--r-field);
  font-size: var(--fs-m);
}
select.has-value { border: 2px solid var(--plum); font-weight: 600; }
textarea { height: auto; padding: var(--s3); resize: vertical; }
select:hover, input:hover, textarea:hover { border-color: var(--plum); }
[aria-invalid="true"], [aria-invalid="true"]:hover { border: 2px solid var(--error); }
.err { color: var(--error); font-weight: 600; }
.err-box { display: grid; gap: var(--s1); padding: var(--s4); border: 2px solid var(--error); border-radius: var(--r-card); background: var(--white); }
.err-box p { color: var(--error); font-weight: 600; }
.err-box .link-btn { color: var(--error); font-weight: 400; }

/* day and time chips: real radio inputs under a drawn face */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 389px) { .cal-grid { gap: 2px; } } /* keeps each day 44 px wide or more at 360 */
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.day, .time { position: relative; display: block; }
.day input, .time input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.day-face, .time-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 52px; border: 1.5px solid var(--muted); border-radius: var(--r-field); background: var(--white);
  transition: background-color var(--fast), color var(--fast);
}
.time-face { height: 44px; font-variant-numeric: tabular-nums; }
.day-dow { font-size: var(--fs-xs); line-height: 14px; color: var(--muted); }
.day-num { line-height: 18px; }
.day input:hover:not(:disabled) + .day-face, .time input:hover + .time-face { background: var(--blush); }
.day input:checked + .day-face, .time input:checked + .time-face {
  border-color: var(--plum); background: var(--plum); color: var(--white); box-shadow: inset 0 -4px 0 var(--coral); font-weight: 600;
}
.day input:checked + .day-face .day-dow { color: var(--blush); font-weight: 400; }
.day input:focus-visible + .day-face, .time input:focus-visible + .time-face { outline: 3px solid var(--plum); outline-offset: 2px; }
.day input:disabled { cursor: not-allowed; }
.day input:disabled + .day-face { border: 1.5px dashed var(--closed-line); background: transparent; color: var(--closed); text-decoration: line-through; }
.day input:disabled + .day-face .day-dow { color: var(--closed); }
.hint-box { padding: var(--s4); border: 1.5px dashed var(--closed-line); border-radius: var(--r-field); color: var(--muted); }

/* the request card */
.side { display: grid; gap: var(--s3); align-content: start; }
.card { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.card.is-filled { border: 2px solid var(--plum); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card-empty { color: var(--muted); }
.card-lines { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); align-items: baseline; }
.card-lines > div { display: contents; }
.card-lines dt { color: var(--muted); }
.card-lines dd { text-align: right; font-weight: 600; }
.card-lines dd.is-missing { font-weight: 400; color: var(--muted); }
.card-total dd:not(.is-missing) { font-family: var(--display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.27; }

/* message ready to send */
.ready { display: grid; gap: var(--s5); max-width: 560px; }
.ready-msg { border: 2px solid var(--plum); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.ready-msg textarea { height: auto; padding: var(--s4); border: 0; border-radius: 0; resize: none; }
.ready-actions { display: grid; gap: var(--s3); }
.ready-actions .btn-main { min-height: 56px; }
.copy-status { font-size: var(--fs-s); font-weight: 600; }
.copy-status:empty { display: none; }
.ready-back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); }

/* ---------- hours and address ---------- */
.night { background: var(--plum); color: var(--white); padding-block: var(--s7); }
.night .wrap { display: grid; gap: var(--s5); }
.where { display: grid; gap: var(--s5); }
.hours { width: 100%; border-collapse: collapse; text-align: left; }
.hours tr { border-top: 1px solid var(--muted); }
.hours th, .hours td { padding: 10px 0; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { box-shadow: inset 4px 0 0 var(--coral); }
.hours tr.is-today th { padding-left: var(--s3); font-weight: 600; }
.hours tr.is-today td { font-weight: 600; }
.today-tag { margin-left: var(--s2); font-weight: 400; color: var(--blush); }
.contact { display: grid; gap: var(--s4); align-content: start; }
.contact address { display: grid; }
.contact a { display: flex; align-items: center; min-height: 44px; color: var(--white); }
.contact a:hover { color: var(--blush); }
.foot-note { font-size: var(--fs-s); line-height: 1.43; color: var(--blush); }

/* ---------- from 768 px: section links, wider gutters ---------- */
@media (min-width: 768px) {
  .demo-strip { text-align: center; }
  .top { padding-block: var(--s3); gap: var(--s6); }
  .top-nav { display: flex; gap: 28px; margin-left: auto; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
  .hero-actions .btn-main { min-height: 56px; padding-inline: 28px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { gap: var(--s2); }
  .day-face { height: 56px; }
  .times { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card { padding: var(--s5); }
  .filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
  .hero { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: var(--s7); }
  .open-block p { padding: 56px var(--s5) var(--s5); }
}

/* ---------- from 1024 px: the desktop layout, column widths as on the canvas ---------- */
@media (min-width: 1024px) {
  h1 { font-size: var(--fs-4xl); line-height: 1.06; }
  h2 { font-size: var(--fs-3xl); line-height: 1.2; }
  h3 { font-size: var(--fs-xl); line-height: 1.27; }
  .wordmark { font-size: var(--fs-xl); gap: var(--s3); }
  .wordmark .mark { width: 34px; }
  .wordmark .mark span:nth-child(1) { height: 12px; }
  .wordmark .mark span:nth-child(2) { height: 7px; }
  .wordmark .mark span:nth-child(3) { height: 5px; }

  .hero { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s8); padding: 56px var(--gutter) 88px; }
  .hero-text { gap: var(--s5); justify-items: start; }
  .lede { font-size: var(--fs-xl); line-height: 1.45; }
  .open-block { border-radius: 20px; }
  .open-block p { padding: 120px var(--s6) var(--s6); }
  .open-time { font-size: var(--fs-time-l); }
  .open-note { margin-top: var(--s2); font-size: var(--fs-l); line-height: 1.56; }
  .open-block .band-coral { height: 56px; }
  .open-block .band-blush { height: 28px; }

  .prices, .book, .night { padding-block: var(--s8); }
  .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
  .listino { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s8); }
  .row { gap: var(--s4); }
  .row-name, .row-meta { display: inline; }

  .book .wrap { gap: var(--s6); }
  .section-intro p { font-size: var(--fs-l); line-height: 1.56; }
  .booking { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; }
  .side { gap: var(--s4); position: sticky; top: var(--s5); }
  .group { gap: var(--s2); }
  .night .wrap { gap: var(--s6); }
  .where { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); }
  .contact address { font-size: var(--fs-l); line-height: 1.56; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
