/* ==========================================================================
   Katharsis — layout and components
   --------------------------------------------------------------------------
   The vocabulary comes from Aletheia's admin shell: a card-coloured header on
   a hairline border, display-serif headings in tracked upper case, gold used
   as a mark rather than as a surface, and not one rounded corner anywhere.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

/* The Aletheia skin sets `html, body { height: 100% }` — correct for an app shell
   that never scrolls, wrong for a document. A fixed body height ends after one
   viewport, so a sticky header stops sticking exactly there. min-height keeps
   the reset's intent without capping the page. */
html,
body {
  height: auto;
  min-height: 100%;
}

::selection {
  background: color-mix(in srgb, var(--brand-gold) 35%, transparent);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--brand-gold);
  color: var(--foreground);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  /* A gold-tinted edge, not the neutral hairline: the bar has to stay a bar
     when content of the same tone slides beneath it. */
  border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 34%, var(--border));
}

/* And it casts a short shadow onto whatever passes underneath — the seam alone
   is invisible once the page is darker than the head. */
.site-header::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 14px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.2), transparent);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.nav a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover {
  color: var(--foreground);
  border-bottom-color: var(--brand-gold);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.icon-btn:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-btn .icon-moon,
.dark .icon-btn .icon-sun {
  display: none;
}

.dark .icon-btn .icon-moon {
  display: block;
}

.lang-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  padding: 6px 10px;
  transition: color 0.15s, border-color 0.15s;
}

.lang-link:hover {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  /* One column, centred at every width: the claim, the emblem beneath it, then
     the argument. The emblem is not pushed into a corner of the type. */
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(24px, 3vw, 40px);
  padding-block: clamp(48px, 7vw, 88px);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

/* The claim stands alone at the top of the hero: two lines, read whole, like a
   poster, and centred over the emblem that answers it. */
.hero__title {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

/* The second half of the claim — the part that names us. */
.hero__accent {
  color: var(--brand-gold);
}

/* The emblem answers the claim from beneath it, on the same axis. */
.hero__mark {
  order: 2;
  display: flex;
  justify-content: center;
}

.hero__mark img {
  width: clamp(88px, 10vw, 140px);
  height: auto;
}

/* The argument belongs to no column — it runs the whole measure. */
.hero__manifesto {
  order: 3;
  grid-column: 1 / -1;
}

/* The manifesto: one statement per line, as a stanza. The measure is wide
   enough that a statement holds its own line at desktop size. */
.hero__manifesto {
  margin: 0;
  max-width: 100%;
  /* Ten per cent above the earlier 15–17px measure: the argument has to be read,
     not merely seen. */
  font-size: clamp(16.5px, 1.87vw, 18.7px);
  line-height: 1.8;
  /* Centred at every width: the argument is spoken towards the reader, not
     set left against the emblem. */
  text-align: center;
  /* Full-strength ink, not the muted tone: gold only reads as emphasis when
     the words it interrupts are bright. */
  color: var(--foreground);
}

.hero__manifesto p {
  margin: 0;
  /* A statement may run past the measure; when it does, break it where the
     sense breaks, never leaving one word alone on the line. */
  text-wrap: pretty;
}

.hero__manifesto p + p {
  margin-top: 22px;
}

/* Words the reader should carry away. Gold, not bold: the colour is the
   emphasis, the rhythm of the sentence stays intact. */
.hero__gold {
  color: var(--brand-gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn--ghost:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

/* A hairline between sections, the way the admin separates its panels — drawn
   inside the measure, not edge to edge: a full-bleed rule reads as a page
   break, an inset one as a seam between panels. */
.hero,
.section + .section {
  position: relative;
}

.section + .section {
  border-top: 0;
}

.hero::after,
.section + .section::before {
  content: '';
  position: absolute;
  left: 50%;
  width: min(1184px, calc(100% - 48px));
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::after {
  bottom: 0;
}

.section + .section::before {
  top: 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 54px);
}

.section__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__note {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* The line the hero used to close on, now closing the products — in the size,
   the colour and the breaks it had there: one statement per line, the
   consequence in gold. */
.section__lead {
  margin: clamp(32px, 4vw, 52px) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
}

/* The consequence — the only line of the head allowed to be gold. */
.section__loss {
  color: var(--brand-gold);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.18s;
}

.card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), transparent 72%);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--brand-gold) 55%, var(--border));
}

.card:hover::before {
  opacity: 1;
}

/* Name and kind form one block, closed by a hairline: the line belongs under
   the label, not over the facts. */
.card__head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brand-gold);
}

/* What the product is, in one phrase: a label under the name, not a sentence. */
.card__kind {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground);
}

.card__lede {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--foreground);
}

.card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.card__facts li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--foreground);
}

.card__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--brand-gold);
}

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-gold);
}

.card__link .arrow {
  transition: transform 0.18s;
}

.card__link:hover {
  color: var(--brand-gold-light);
}

.card__link:hover .arrow {
  transform: translateX(3px);
}

/* ── Principles ─────────────────────────────────────────────────────────── */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 52px);
}

.principle {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.principle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--brand-gold);
}

.principle h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.principle p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  /* One column: the contact block stands alone now that the legal details live
     in the Impressum. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact__email {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--brand-gold);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 40%, transparent);
  transition: color 0.15s, border-color 0.15s;
  overflow-wrap: anywhere;
}

.contact__email:hover {
  color: var(--brand-gold-light);
  border-bottom-color: var(--brand-gold-light);
}

.details {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--border);
}

.details > div {
  display: grid;
  gap: 4px;
}

.details dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.details dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding-block: 28px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand img {
  height: 20px;
  width: auto;
  opacity: 0.8;
}

.site-footer__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer__links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--brand-gold);
}

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal {
  padding-block: clamp(48px, 7vw, 88px);
}

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.65;
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .details {
  margin-top: 20px;
}

.legal__note {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.legal__back {
  display: inline-block;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-gold);
}

.legal__back:hover {
  color: var(--brand-gold-light);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--2,
  .grid--3,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .brand__name {
    font-size: 17px;
  }

  .site-footer__links {
    margin-left: 0;
  }
}

/* On a phone the claim holds one sentence per line: at the natural size the
   second sentence leaves a single word stranded on a line of its own. */
@media (max-width: 520px) {
  .hero__title {
    font-size: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
