/* Johannes Hofmann — editorial column, one whitish page, Cormorant Garamond. */

:root {
  --page: #f7f6f3;
  --ink: #111111;
  --rule: rgba(17, 17, 17, 0.14);
  --teal: #0d7377;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --dock: "Poppins", "Segoe UI", sans-serif;
  --measure: 34rem;
  --pad: 1.35rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 17px; }

html,
body {
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--page);
  color: var(--ink);
  z-index: 30;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.stage {
  width: min(100%, 40rem);
  margin: 0 auto;
  background: var(--page);
  min-height: 100dvh;
  padding: max(1.15rem, env(safe-area-inset-top)) var(--pad) calc(8rem + env(safe-area-inset-bottom));
}

.stage::after {
  content: "";
  position: fixed;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--page) 42%, rgba(247, 246, 243, 0));
  pointer-events: none;
}

.mast { margin: 0 0 1.75rem; max-width: var(--measure); }

.mast__kicker,
.stop__kicker {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mast__name {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.15rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.mast__name a {
  text-decoration: none;
  color: inherit;
}

.mast__name a:hover,
.mast__name a:focus-visible { text-decoration: underline; }

.langs {
  margin: 0.85rem 0 0;
  font-family: var(--dock);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.langs a { margin-right: 0.85rem; }
.langs a[aria-current="page"] { color: var(--teal); }

.crumbs {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
  font-size: 1.05rem;
}

h1 {
  margin: 0 0 0.85rem;
  max-width: var(--measure);
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.answer,
.stop__body,
.prose p,
.facts,
li {
  font-size: 1.18rem;
}

.answer {
  margin: 0 0 1.35rem;
  max-width: var(--measure);
}

.facts {
  margin: 0 0 2.4rem;
  padding: 0;
  max-width: var(--measure);
}

.facts div {
  display: grid;
  grid-template-columns: 7.6rem 1fr;
  gap: 0.65rem 0.9rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--rule);
}

.facts div:last-child { border-bottom: 1px solid var(--rule); }

.facts dt {
  margin: 0;
  font-weight: 700;
}

.facts dd { margin: 0; }

.stop {
  margin: 0 0 2.75rem;
  max-width: var(--measure);
}

.stop:last-child { margin-bottom: 2rem; }

.stop__title,
.prose h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.prose h2 { margin-top: 0; }

.prose p,
.stop__body { margin: 0 0 0.85rem; }

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li { margin: 0 0 0.35rem; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.12em;
}

a:hover,
a:focus-visible { color: var(--teal); }

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  font-size: 1.05rem;
}

.site-footer p { margin: 0 0 0.35rem; }

.dock {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: var(--page);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  font-family: var(--dock);
}

.dock a {
  text-decoration: none;
  color: #111;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  line-height: 1;
}

.dock a[aria-current="page"] {
  background: rgba(13, 115, 119, 0.14);
  color: var(--teal);
}

.dock a:hover,
.dock a:focus-visible {
  color: #111;
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}

form {
  margin: 0.5rem 0 0;
  max-width: var(--measure);
}

label {
  display: block;
  margin: 0.9rem 0 0.25rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

textarea { min-height: 8rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

button {
  margin-top: 1rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--dock);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
button:focus-visible { background: var(--teal); }

.form-note {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
}

.faq details {
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq details:last-of-type { border-bottom: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.25;
}

.faq details p { margin: 0.65rem 0 0; }

@media (max-width: 520px) {
  html { font-size: 16.5px; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
  .dock {
    gap: 0;
    padding: 4px;
  }
  .dock a {
    letter-spacing: 0;
    padding: 0.42rem 0.28rem;
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(246, 248, 250, 0.96);
  }
}

@media print {
  body { background: #fff; padding: 0; }
  .stage { box-shadow: none; border-radius: 0; min-height: 0; padding: 0; }
  .stage::after, .dock, .skip, .langs { display: none; }
  a { text-decoration: none; }
}
