/* opentaberna.de — hand-written, no framework and no JavaScript. */

:root {
  --bg: #fffaf2;
  --bg-raised: #fffdf9;
  --bg-sunk: #f8eee0;
  --fg: #211c17;
  --fg-muted: #6c6258;
  --rule: #e9dac7;
  --accent: #d94c00;
  --accent-bright: #ff6410;
  --accent-soft: #fff0df;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 58rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --bg-raised: #201a15;
    --bg-sunk: #2a2119;
    --fg: #f7eee4;
    --fg-muted: #b9aa9b;
    --rule: #3d3025;
    --accent: #ff8a47;
    --accent-bright: #ff7426;
    --accent-soft: #352013;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus { left: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 2px 12px rgb(116 63 17 / 12%);
}

.brand > span { display: grid; }
.brand-name { font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
.brand-note { color: var(--fg-muted); font-family: var(--mono); font-size: 0.7rem; }
.header-link { color: var(--fg-muted); font-size: 0.92rem; text-decoration: none; }
.header-link:hover { color: var(--fg); }

.content {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: 2rem;
}

.eyebrow,
.callout-kicker,
.person-role,
.footer-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 1.25rem;
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 760;
}

.lede {
  max-width: 43rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgb(116 63 17 / 15%);
}

.content > h2 {
  margin: 4rem 0 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.3rem;
}

.content > p { max-width: 46rem; margin: 0 0 1.15rem; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project,
.person {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-raised);
}

.project h3,
.person h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p,
.person p { margin: 0; color: var(--fg-muted); font-size: 0.94rem; }

.callout {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-bright);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

.callout p { margin: 0 0 0.7rem; }
.callout p:last-child { margin-bottom: 0; }

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.person-role { margin-bottom: 0.55rem !important; color: var(--fg-muted) !important; }
.person-links { margin-top: 0.75rem !important; }

.site-foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  color: var(--fg-muted);
  font-size: 0.86rem;
}

.site-foot p { margin: 0; }
.footer-label { margin-bottom: 0.4rem !important; color: var(--fg-muted); }

@media (max-width: 42rem) {
  .content { padding-top: 3.25rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-logo { width: min(12rem, 55vw); grid-row: 1; }
  .projects, .people, .site-foot { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

