/* 12 luxe-serif — the family at its most restrained: a charcoal-navy ground,
   off-white text, and pewter (the sidebar greys, desaturated) used strictly as
   hairlines. Sharp corners, symmetric, one idea per screen. Home: dark. */
@layer tokens, base, layout, components;

@layer tokens {
  :root {
    color-scheme: light dark;

    --charcoal: #141b24;
    --offwhite: #eef1f4;
    --ground: light-dark(var(--offwhite), var(--charcoal));
    --ink:    light-dark(#1b232e, var(--offwhite));
    --muted:  light-dark(#57657a, #a9b6c5);
    /* Pewter is a *stroke* in light, where as text it would fail contrast,
       and may become ink in dark, where it passes. One token, two jobs. */
    --pewter:      #9fb0c2;
    --pewter-text: light-dark(#4a6076, #b9c7d6);
    --on-pewter:   #141b24;

    --radius: 0;
    --serif: "Didot", "Bodoni MT", "Playfair Display", "Iowan Old Style",
             Georgia, ui-serif, serif;
  }
  :root:has(#light:target) { color-scheme: light; }
  :root:has(#dark:target)  { color-scheme: dark; }
}

@layer base {
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 1.0625rem/1.75 var(--serif);
  }
  h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
  p { margin: 0; }
  ol { margin: 0; padding: 0; list-style: none; }
  dl, dd { margin: 0; }
  figure { margin: 0; }
  img { display: block; max-inline-size: 100%; block-size: auto; }
  a { color: var(--pewter-text); }
  a:focus-visible { outline: 2px solid var(--pewter-text); outline-offset: 4px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
  }
}

@layer layout {
  main > section {
    min-block-size: 80vh;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    max-inline-size: 62rem;
    margin-inline: auto;
    padding: clamp(3rem, 9vh, 6rem) clamp(1.5rem, 6vw, 4rem);
  }
  .plate-section { min-block-size: auto; }
}

@layer components {
  .hairline {
    display: block; inline-size: 6rem; block-size: 1px; margin-block: 2rem;
    background: linear-gradient(90deg, transparent, var(--pewter), transparent);
  }

  .masthead {
    max-inline-size: 72rem;
    margin-inline: auto;
    padding: 1.75rem clamp(1.5rem, 6vw, 4rem);
    display: grid;
    justify-items: center;
    gap: 1rem;
    border-block-end: 1px solid color-mix(in oklab, var(--pewter) 45%, transparent);
  }
  .brand { display: grid; justify-items: center; gap: 0.5rem; text-decoration: none;
           color: var(--ink); }
  .brand img { inline-size: 3rem; }
  .name { font-size: 1.1875rem; letter-spacing: 0.22em; text-transform: uppercase; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.75rem;
         font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; }
  .nav a { color: var(--muted); text-decoration: none; }
  .nav a:hover { color: var(--pewter-text); }
  .schemes { display: flex; gap: 0.6rem; font-size: 0.6875rem;
             text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
  .schemes a { text-decoration: none; }

  .eyebrow { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.32em;
             color: var(--pewter-text); margin-block-end: 1.5rem; }
  .hero h1 { font-size: clamp(2.25rem, 6.5vw, 4.5rem); line-height: 1.04;
             max-inline-size: 16ch; text-wrap: balance; }
  .lede { max-inline-size: 44ch; color: var(--muted); text-wrap: pretty; }
  .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
             margin-block-start: 2.5rem; }
  .btn {
    display: inline-block; padding: 0.8rem 2rem;
    border: 1px solid var(--pewter); border-radius: var(--radius);
    color: var(--ink); background: transparent;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em;
    text-decoration: none;
  }
  .btn:hover { background: var(--pewter); color: var(--on-pewter); }
  .btn-primary { background: var(--pewter); color: var(--on-pewter); }
  .btn-primary:hover { background: transparent; color: var(--ink); }

  /* One photograph per screen, centred, framed by a single pewter hairline. */
  .plate { inline-size: min(52rem, 100%); }
  .plate img {
    inline-size: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 58%;
    border: 1px solid color-mix(in oklab, var(--pewter) 55%, transparent);
  }
  figcaption { margin-block-start: 1rem; font-size: 0.6875rem;
               text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }

  .angebot h2, .kontakt h2 { font-size: clamp(1.75rem, 4vw, 2.75rem);
                             line-height: 1.1; max-inline-size: 18ch; }
  /* A tall centred run, one entry per band — never a card grid. */
  .items { display: grid; gap: 2.75rem; max-inline-size: 40rem; }
  .items h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em;
              color: var(--pewter-text); margin-block-end: 0.75rem; }
  .items p { color: var(--muted); }

  .contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
             gap: clamp(1.5rem, 5vw, 4rem); inline-size: 100%; }
  .contact > div { border-inline-end: 1px solid color-mix(in oklab, var(--pewter) 40%, transparent);
                   padding-inline-end: clamp(1rem, 3vw, 2rem); }
  .contact > div:last-child { border-inline-end: 0; padding-inline-end: 0; }
  .contact dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.2em;
                color: var(--pewter-text); margin-block-end: 0.75rem; }
  .contact dd { line-height: 1.9; font-size: 0.9375rem; }
  @media (max-width: 700px) {
    .contact { grid-template-columns: 1fr; }
    .contact > div { border-inline-end: 0; padding-inline-end: 0; }
  }

  .colophon {
    max-inline-size: 62rem; margin-inline: auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem) 4rem;
    display: grid; justify-items: center; text-align: center;
    border-block-start: 1px solid color-mix(in oklab, var(--pewter) 45%, transparent);
    font-size: 0.875rem;
  }
  .sections { display: flex; flex-wrap: wrap; justify-content: center;
              gap: 0.5rem 1.5rem; }
  .sections a { color: var(--ink); text-decoration: none; }
  .sections a:hover { color: var(--pewter-text); }
  .up { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.2em; }
}
