/* Linden Room
   Color, type, and spacing live in this file only.
   Change the salon’s look in :root. */

:root {
  /* Colors */
  --bg: #f3efe6;
  --slip: #faf7f1;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d9d0c2;
  --leaf: #243c2e;
  --clay: #6f3228;
  --clay-deep: #5a2820;
  --on-clay: #faf7f1;
  --hold: #e7e0d4;

  /* Type — system fonts only */
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --measure: 36rem;
  --page: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 1.25rem 1rem 3rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

.sheet {
  max-width: var(--page);
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--slip);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

a {
  color: var(--leaf);
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

/* Shared header */

.mast {
  padding-bottom: 0.85rem;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--bg), 0 4px 0 var(--leaf);
}

.mast-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}

.mark {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.mark:hover {
  color: var(--leaf);
}

.mast-day {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin-top: 0.85rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--leaf);
  box-shadow: inset 0 -1px 0 var(--leaf);
}

/* Shared type */

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.6rem, 12vw, 4.75rem);
  line-height: 1.02;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 500;
}

.prose h2,
.page-service main > h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.lede {
  max-width: var(--measure);
  margin: 0 0 var(--space-5);
  font-size: 1.2rem;
  line-height: 1.45;
}

.prose {
  max-width: var(--measure);
}

.prose p,
.person p,
.detail p {
  margin: 0 0 var(--space-3);
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Home */

.home-grid {
  display: grid;
  gap: var(--space-5);
}

.block-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.block-label h2 {
  font-size: 1.45rem;
}

.block-label a {
  font-size: 0.92rem;
}

.open-list,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.open-list a,
.menu-item {
  display: grid;
  gap: 0.15rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.open-list a {
  grid-template-columns: 4.25rem 1fr;
  align-items: baseline;
  min-height: 48px;
}

.open-list a:hover,
.daybook a:hover {
  background: var(--hold);
}

.when {
  font-variant-numeric: tabular-nums;
  color: var(--leaf);
}

.who {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-line {
  max-width: var(--measure);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

.staff-line a {
  color: inherit;
}

/* Services menu */

.menu-item {
  grid-template-columns: 1fr auto;
  align-items: baseline;
}

.menu-item h2 {
  grid-column: 1;
  font-size: 1.7rem;
}

.menu-item h2 a {
  color: inherit;
  text-decoration: none;
}

.menu-item h2 a:hover {
  color: var(--leaf);
}

.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-item .blurb,
.menu-item .more {
  grid-column: 1 / -1;
  margin: 0;
}

/* Service detail */

.detail {
  display: none;
  max-width: 40rem;
}

.detail--default {
  display: block;
}

.details:has(.detail:target) .detail {
  display: none;
}

.details:has(.detail:target) .detail:target {
  display: block;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: var(--space-3) 0 var(--space-5);
  padding: 0.75rem 1.2rem;
  background: var(--clay);
  color: var(--on-clay);
  text-decoration: none;
}

.ask:hover {
  background: var(--clay-deep);
  color: var(--on-clay);
}

.other {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
}

.other li {
  margin: 0.35rem 0;
}

/* Staff */

.person {
  max-width: var(--measure);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}

.person h2 {
  font-size: 2rem;
}

.role {
  margin: 0.25rem 0 var(--space-3);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Thursday book — open slots and the empty day */

.daybook {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.daybook a,
.held {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.35rem 1rem;
  align-items: center;
  min-height: 56px;
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.held {
  margin: 0;
  color: var(--muted);
}

.held .go {
  color: var(--muted);
}

.daybook--empty {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0;
  color: var(--muted);
}

.daybook--empty p {
  margin: 0;
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Booking slip */

.slip {
  max-width: 28rem;
  padding: var(--space-4) 0 0;
}

label {
  display: block;
  margin: 0 0 var(--space-4);
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

select {
  cursor: pointer;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-2);
  padding: 0.85rem 1.1rem;
  border: 0;
  background: var(--clay);
  color: var(--on-clay);
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--clay-deep);
}

/* Confirmation */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-3);
  margin: 0 0 var(--space-5);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--ink);
  max-width: 40rem;
}

.facts div {
  min-width: 0;
}

.facts dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.back-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Policies and contact */

.hours {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  min-height: 44px;
}

.hours li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Footer */

.colophon {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.colophon p {
  margin: 0 0 0.4rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Desk width — about 1100px */

@media (min-width: 1000px) {
  body {
    padding: 2.75rem 2.5rem 4.5rem;
  }

  .home-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: start;
  }

  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav {
    gap: 0.15rem 1.35rem;
  }
}

/* Phone — home, the Thursday book, and confirmation
   (about 390px). Same pages, not separate files. */

@media (max-width: 700px) {
  .page-home h1 {
    font-size: 2.7rem;
  }

  .page-home .open-list a {
    grid-template-columns: 3.6rem 1fr;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .page-slots .daybook a,
  .page-slots .held,
  .page-empty .held {
    grid-template-columns: 4.2rem 1fr;
    grid-template-areas:
      "time work"
      "time go";
    align-items: center;
    row-gap: 0.1rem;
  }

  .page-slots .when,
  .page-empty .when {
    grid-area: time;
  }

  .page-slots .what,
  .page-empty .what {
    grid-area: work;
  }

  .page-slots .go {
    grid-area: go;
  }

  .page-confirm .facts {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .page-confirm h1 {
    font-size: 2.35rem;
  }

  .page-book .slip,
  .page-confirm .facts,
  .page-confirm .lede,
  .page-confirm .fine {
    max-width: none;
  }

  .ask,
  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}