/* Slow Hours. One stylesheet for every page, including the records view.
   The look is evening light on a wall. Deep warm darks at the top and
   bottom of each page, paper in between, amber as the only colour.
   Text colour is #6b7a3a, links and buttons #2e2e2e, read from Ken's
   reference site. Dark areas keep light text, because olive cannot be read
   against them or the light. Check any new serif for a clear number 1. */

@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }

:root {
  --paper: #f3ede3;
  --paper-deep: #e9e0d2;
  --text: #6b7a3a;
  --ink: #2e2e2e;
  --ink-soft: #6b7a3a;
  --line: #d6cbba;
  --night: #16110e;
  --night-soft: #b9ab9a;
  --night-line: #3b2f27;
  --amber: #e3ab70;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --wide: 88rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5.5rem); margin: 0; }
h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); margin: 0; }
h3, .h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="https://wa.me"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* The opening. A dark wall with the light moving across it. */

.opening { position: relative; overflow: hidden; background: var(--night); color: var(--paper); isolation: isolate; }
.opening a:focus-visible, .closing a:focus-visible, .site-footer a:focus-visible { outline-color: var(--amber); }

.wall { position: absolute; inset: 0; z-index: -1; }
.wall img {
  width: 112%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  animation: light-drifts 80s ease-in-out infinite alternate;
}
.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 14, 0.6) 0, rgba(22, 17, 14, 0) 9rem),
    linear-gradient(90deg, rgba(22, 17, 14, 0.82) 0%, rgba(22, 17, 14, 0.35) 48%, rgba(22, 17, 14, 0) 72%);
}
@keyframes light-drifts { from { transform: translateX(0); } to { transform: translateX(-10%); } }
@media (prefers-reduced-motion: reduce) { .wall img { animation: none; } }

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}
.wordmark { display: flex; flex-direction: column; gap: 0.35rem; color: var(--paper); text-decoration: none; }
.wordmark-name { font-family: var(--serif); font-size: 1.8rem; line-height: 1; letter-spacing: -0.015em; }
.wordmark-name em { color: var(--amber); }
.wordmark-sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase; color: var(--night-soft); }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); font-size: 1rem; }
.site-nav a { color: var(--paper); text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.site-nav .nav-book { padding: 0.6rem 1.35rem; border: 1px solid rgba(243, 237, 227, 0.55); }
.site-nav .nav-book:hover, .site-nav .nav-book[aria-current="page"] { border-color: var(--amber); }

.opening-inner { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(3.5rem, 7vw, 6.5rem); }
.opening--home { min-height: 100svh; display: flex; flex-direction: column; }
.opening--home .site-header { width: 100%; }
.opening--home .opening-inner { width: 100%; margin-top: auto; padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.opening--home h1 { max-width: 12.5em; text-wrap: balance; }
.opening--home h1 .place { color: var(--amber); }
.eyebrow { margin: 0 0 1.1rem; color: var(--amber); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.opening .lead { max-width: 30em; margin-top: 1.5rem; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.45; color: #e6dccd; }

/* Buttons. Square and quiet. */

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.button {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 500 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.button:hover { background: var(--text); border-color: var(--text); }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.opening .button, .closing .button { background: var(--amber); border-color: var(--amber); color: var(--night); }
.opening .button:hover, .closing .button:hover { background: var(--paper); border-color: var(--paper); }
.opening .button.quiet { background: transparent; border-color: rgba(243, 237, 227, 0.55); color: var(--paper); }
.opening .button.quiet:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }

/* Sections. The label sits left, the content right, a hairline between. */

.band { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6.5vw, 6rem) 0;
  border-top: 1px solid var(--line);
}
.band > .section:first-child { border-top: 0; }
.body-large { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.45; }
.body-large p { max-width: 32em; }
.section-body { min-width: 0; }
.section-body > * + h3 { margin-top: 2.5rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.text-link { display: inline-block; margin-top: 1.75rem; }

/* Treatment rows */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.rows li:first-child { padding-top: 0; border-top: 0; }
.rows p { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* Prices */

.prices { width: 100%; border-collapse: collapse; }
.prices th { padding: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; text-align: left; }
.prices td { padding: 0.85rem 0; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em; }
.prices th:last-child, .prices td:last-child { text-align: right; }
.prices + p { margin-top: 1.25rem; }

/* What to expect */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 0.75rem; color: var(--text); font: 500 1.05rem/1 var(--sans); }
.steps--list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

/* Photos and lists */

.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo { width: 100%; }
.section-body > h2 { margin-bottom: 1.5rem; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.spaced-list { margin-top: 1.75rem; }
.spaced-list li { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; }

/* Closing band and footer */

.closing { background: var(--night); color: var(--paper); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; max-width: var(--wide); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.closing h2 { max-width: 14em; }
.closing .actions { margin-top: 0; }
.price-strip { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2.5rem, 6vw, 5.5rem); margin: 0; padding: 0; list-style: none; }
.price-strip li { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.price-strip span { display: block; margin-bottom: 0.45rem; color: var(--night-soft); font-size: 1rem; letter-spacing: 0; }

.site-footer { background: var(--night); color: var(--night-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 3rem;
  font-size: 1rem;
}
.footer-inner::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--night-line); }
.scope { max-width: 30em; color: #e6dccd; font-size: 1.125rem; line-height: 1.5; }
.footer-title { margin: 0 0 0.6rem; color: var(--amber); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer a { color: var(--paper); overflow-wrap: anywhere; }
.footer-nav { display: flex; flex-direction: column; gap: 0.3rem; }

/* Placeholders. Visible in preview so nothing ships by accident. */

.gated { padding: 0.1rem 0.4rem; background: #fff1b8; color: #5a4300; font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }

/* Forms */

.page { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.narrow { max-width: calc(44rem + 2 * var(--gutter)); }

fieldset { min-width: 0; margin: 0; padding: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
form > fieldset:first-child { border-top: 0; padding-top: 0; }
legend { float: left; width: 100%; margin-bottom: 1.5rem; padding: 0; font-size: clamp(2rem, 3vw, 2.6rem); }
legend + * { clear: both; }
label { display: block; margin: 0 0 0.4rem; font-weight: 500; }
.field { margin-bottom: 1.4rem; }
.field.spaced { margin-top: 2rem; }
.hint { margin: -0.1rem 0 0.6rem; color: var(--ink-soft); font-size: 1rem; }
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b3a593;
  border-radius: 0;
  background: #fbf8f2;
  color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
textarea { min-height: 6rem; resize: vertical; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.7rem; font-weight: 400; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.27rem; accent-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.turnstile { min-height: 65px; margin: 0 0 1.5rem; }

/* Records */

.search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 1.5rem 0; }
.search label { flex-basis: 100%; }
.search input { flex: 1 1 12rem; }
.record { color: var(--ink); margin-bottom: 0.75rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); background: #fbf8f2; }
.record summary { cursor: pointer; }
.flag { margin-left: 0.25rem; padding: 0.1rem 0.6rem; background: var(--paper-deep); font-size: 0.85rem; }
.flags { margin: 1rem 0; }
.record dl { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.35rem 1rem; margin: 1rem 0 0; }
.record dt { color: var(--ink-soft); }
.record dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-form { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.note-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }

/* Phones and small tablets */

@media (max-width: 48rem) {
  body { font-size: 1.0625rem; }
  .section { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .wall img { object-position: 78% 50%; }
  .wall::after { background: linear-gradient(180deg, rgba(22, 17, 14, 0.55) 0%, rgba(22, 17, 14, 0.25) 35%, rgba(22, 17, 14, 0.8) 72%); }
  .section-photo { max-width: 26rem; }
  .actions .button { flex: 1 1 100%; }
  form > .button { width: 100%; }
  .closing .actions { width: 100%; }
}

@media (max-width: 30rem) {
  .site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .site-nav { width: 100%; justify-content: space-between; }
  .record dl { grid-template-columns: 1fr; }
  .record dd { margin-bottom: 0.5rem; }
}
