/* vonbremen.com — minimal calling-card stylesheet
   Text-only, sans-serif, light + dark. No images, no JS.
   Font: Inter (SIL OFL), self-hosted — see fonts/Inter-LICENSE.txt. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Sage · Ming · Indigo Dye — deep indigo canvas, warm cream text.
     #033f63 indigo · #28666e ming · #7c9885 sage · #b5b682 khaki · #fedc97 cream */
  --bg: #033f63;
  --ink: #fedc97;
  --muted: #b5b682;
  --faint: #b5b682;
  --rule: rgba(124, 152, 133, 0.28);
  --link: #fedc97;
  --link-hover: #ffffff;
  --accent: #7c9885;
  --ming: #28666e;
  --sel: #28666e;
  --glow: rgba(124, 152, 133, 0.16);
  --measure: 40rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Gradient hairline along the very top — the one deliberate flourish,
   running the full Ming → Sage → Khaki → Cream palette. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #28666e, #7c9885, #b5b682, #fedc97);
  z-index: 10;
}

/* Subtle cursor-following glow (mouse only; see script.js). Falls back to a
   soft centred wash when JS is off or motion is reduced. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(760px circle at var(--mx, 50%) var(--my, 30%), var(--glow), transparent 62%);
}
main,
.site-footer { position: relative; z-index: 1; }

::selection { background: var(--sel); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main is the flexible region so the footer sits at the bottom
   and the calling-card content can be vertically centred. */
main {
  flex: 1 0 auto;
  width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover {
  color: var(--link-hover);
  border-color: currentColor;
}

/* ---------- Calling card (home) ---------- */

.card {
  min-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.card__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.card__name {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

.card__place {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--rule);
  margin: 2.4rem 0;
}

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.75rem;
  margin: 0;
  font-size: 1.05rem;
}
.contact dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 0.4rem;
}
.contact dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.contact a { border-bottom-color: transparent; }
.contact a:hover { border-bottom-color: currentColor; }

/* ---------- Legal / text pages ---------- */

.doc { padding: 3.75rem 0 1rem; }

.doc__title {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.017em;
  text-wrap: balance;
}

.doc h2 {
  margin: 2.6rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.doc p { margin: 0.7rem 0; max-width: 38rem; }
.doc address {
  font-style: normal;
  margin: 0.4rem 0;
  line-height: 1.6;
}
.doc .lede { color: var(--muted); }
.doc strong { font-weight: 600; }

.back {
  display: inline-block;
  margin-top: 2.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom-color: transparent;
}
.back:hover { color: var(--link-hover); }

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: center;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  font-size: 0.85rem;
  color: var(--faint);
}
.site-footer nav { display: flex; gap: 1.1rem; }
.site-footer a {
  color: var(--muted);
  border-bottom-color: transparent;
}
.site-footer a:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}
.site-footer .copy { margin-left: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .contact {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .contact dt { padding-top: 1rem; }
  .contact dt:first-of-type { padding-top: 0; }
  .site-footer .copy { margin-left: 0; width: 100%; }
}

/* ---------- Motion / print ---------- */

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

@media print {
  :root {
    --bg: #ffffff; --ink: #000000; --muted: #333333;
    --faint: #555555; --rule: #cccccc; --accent: #000000;
  }
  body::before,
  body::after { display: none; }
  .card { min-height: auto; padding: 0.5rem 0; }
  .site-footer { margin-top: 1.5rem; }
  a { border-bottom: 0; }
}
