/* ============================================================
   BRKML — der Proberaum
   White, minimal, static. Cormorant Garamond. No italics.
   One quiet screen; guest book lives in a modal.
   ============================================================ */

:root {
  --bg:        #fdfdfc;
  --ink:       #181818;
  --ink-soft:  #5d5d60;
  --ink-faint: #9a9a9e;
  --line:      #e7e7e4;
  --line-2:    #d9d9d5;
  --surface:   #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-style: normal;
}
::selection { background: var(--ink); color: var(--bg); }

/* ─────────────── One screen ─────────────── */

.screen {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  max-width: 680px; margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.5rem, 6vw, 2.5rem);
}

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-faint);
}
.kicker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* Centered core fills the space between kicker and footer. */
.core {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.4rem, 4vh, 2.2rem);
  padding: clamp(1.5rem, 5vh, 3rem) 0;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: .98;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lines {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.lines p { white-space: normal; }

.rule { display: block; width: 44px; height: 1px; background: var(--line-2); }

.quotes { list-style: none; display: grid; gap: clamp(.6rem, 2vh, 1rem); }
.quotes li {
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.quote__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  line-height: 1.3; color: var(--ink);
}
.quote__who {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-faint);
}

/* ─────────────── Footer ─────────────── */

.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.foot__greet { font-size: .92rem; color: var(--ink-faint); }
.foot__greet-link {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s ease, border-color .2s ease;
}
.foot__greet-link:hover { color: var(--ink); border-color: var(--ink); }
.foot__book {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .3rem 0; border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.foot__book svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot__book:hover { border-color: var(--ink); }

/* ─────────────── Guest book modal ─────────────── */

.book {
  width: min(440px, calc(100vw - 2rem));
  margin: auto;                 /* re-center: the * reset wiped the UA margin */
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.4);
}
.book::backdrop { background: rgba(20,20,20,.4); backdrop-filter: blur(3px); }
.book[open] { animation: pop .28s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.book__inner { padding: 1.4rem 1.4rem 1.5rem; }
.book__head { display: flex; align-items: center; justify-content: space-between; }
.book__title { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--ink); }
.book__close {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: background .2s ease;
}
.book__close svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; }
.book__close:hover { background: var(--line); }
.book__sub { color: var(--ink-faint); font-size: .9rem; margin: .3rem 0 1.1rem; }

/* Form */
.field { display: block; }
.field + .field { margin-top: .8rem; }
.field__label {
  display: block; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .35rem;
}
.field__opt { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field__input {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .65rem .8rem; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: var(--ink-faint); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,24,24,.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.form__hint { font-size: .84rem; color: var(--ink-faint); }
.form__hint.is-ok  { color: var(--ink); }
.form__hint.is-err { color: #b3261e; }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
}
.btn:hover { opacity: .85; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: progress; }

.entries {
  list-style: none; display: grid; gap: .6rem;
  margin-top: 1.2rem; max-height: 38vh; overflow-y: auto;
}
.entry {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .9rem;
}
.entry__head { display: flex; align-items: baseline; gap: .6rem; }
.entry__name { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.entry__time { margin-left: auto; font-size: .72rem; color: var(--ink-faint); }
.entry__msg { color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }
.entries__empty { color: var(--ink-faint); font-size: .9rem; text-align: center; padding: 1rem; }

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