/* ============================================================
   Dennis Eick — theme styles
   Brutalist, toned down. Monospace on warm off-white.
   ============================================================ */

:root {
  --color-bg: #eeeee6;
  /* --color-bg: #ffe79b; */
  --color-fg: #111;

  --font: monospace, monospace;

  --font-size: 1rem; /* single base size for everything — final value TBD */
  --font-scale-lg: 1.5; /* hero text + Vita link: visibly larger, not double */

  --maxw-text: 42rem; /* readable measure for vita / impressum */
  --maxw-hero: 50rem;

  --pad-x: clamp(1rem, 5vw, 3rem);
  --gap: clamp(2.5rem, 5vw, 6rem);

  --underline-thickness: 0.1em; /* underline weight ≈ monospace stroke; bump for chunkier */
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: var(--underline-thickness);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- page shell: full-height column, no padding (elements pad themselves) --- */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.55;
}

.site-main {
  flex: 1 1 auto;
}

/* --- header: full width, logo left, contact right --- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem;
}

.site-header__logo {
  text-transform: uppercase;
  text-decoration: none;
}

.site-header__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-header__contact a {
  text-decoration: none;
}

.site-header__contact a:hover,
.site-header__contact a:focus-visible {
  text-decoration: underline;
}

/* On narrow screens the header stacks (no burger, nothing hidden). */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* --- landing: centered hero, roughly one screen tall --- */
.front-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap) var(--pad-x);
}

.hero {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  max-width: var(--maxw-hero);
}

.hero__image {
  flex: 1 1 50%;
  opacity: 0.9;
}

.hero__img {
  width: 100%;
}

.hero__body {
  flex: 1 1 50%;
}

.hero__text {
  margin: 0 0 2.5rem;
  /* font-size: calc(var(--font-size) * var(--font-scale-lg)); */
  white-space: pre-line; /* keep the client's line breaks, no HTML */
}

.hero__cta {
  margin: 0;
}

.hero__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  /* font-size: calc(var(--font-size) * var(--font-scale-lg)); */
  text-decoration: none;
}

.hero__cta-label {
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: 0.2em;
}

.hero__cta-link:hover .hero__cta-label,
.hero__cta-link:focus-visible .hero__cta-label {
  text-decoration: none;
}

/* Hero stacks on mobile: image on top, then text + link. */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__image,
  .hero__body {
    flex: none;
    width: 100%;
  }
}

/* --- vita / impressum: centered, readable column --- */
.page {
  /* padding: var(--gap) var(--pad-x) calc(var(--gap) * 1.5); */
}

.page__back {
  max-width: var(--maxw-text);
  margin: 5rem auto 3rem;
  padding: 0 1.25rem;
}

.page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
}

.page__back-link:hover,
.page__back-link:focus-visible {
  text-decoration: underline;
}

.page__content {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 0 1.25rem var(--gap);
  text-align: justify;
}

.page__content > :first-child {
  margin-top: 0;
}

.page__content h1,
.page__content h2,
.page__content h3 {
  line-height: 1.2;
}

.page__content a {
  text-underline-offset: 0.2em;
}

/* Justify (Blocksatz) reads tidy on the wide desktop measure, but opens ugly
   gaps once the column narrows — so fall back to ragged-right on small screens. */
@media (max-width: 600px) {
  .page__content {
    text-align: left;
  }
}

/* --- footer: full width, centered link, corner brackets on the link's line --- */
.site-footer {
  position: relative;
  padding: 2rem var(--pad-x);
  text-align: center;
}

.site-footer a {
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 0 solid var(--color-fg);
}

.site-footer::before {
  left: 14px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.site-footer::after {
  right: 14px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

/* --- icons --- */
.icon {
  flex: none;
  width: 1em;
  height: 1em;
}
