:root {
  --text: #f7f2df;
  --muted: rgba(247, 242, 223, 0.84);
  --quiet: rgba(230, 228, 203, 0.68);
  --line: rgba(255, 255, 255, 0.24);
  --gold: #f59a00;
  --gold-soft: #ffbb56;
  --button-bg: #f59a00;
  --button-text: #1b1b16;
  --focus: #ffbb56;
  --fallback-a: #495449;
  --fallback-b: #6d7048;
  --fallback-c: #151813;
  --page-x: clamp(2rem, 5vw, 4.75rem);
  --logo-offset: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--fallback-c);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(159, 216, 255, 0.18), transparent 32rem),
    linear-gradient(135deg, var(--fallback-a), var(--fallback-b) 52%, var(--fallback-c));
  padding-top: 4.8rem;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.8rem;
  padding: 0.65rem var(--page-x);
  border-bottom: 1px solid rgba(73, 84, 73, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(11rem, 15vw, 13.25rem);
  overflow: hidden;
}

.header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.header-nav a {
  color: #495449;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.page-shell {
  position: relative;
  min-height: calc(100svh - 4.8rem);
  padding: clamp(3rem, 7vw, 6.5rem) var(--page-x) clamp(2rem, 5vw, 4.5rem);
  isolation: isolate;
}

.background,
.shade {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.background {
  background-image: url("assets/images/background.jpg");
  background-position: center right;
  background-size: cover;
  opacity: 1;
  transform: scale(1.02);
  transition: opacity 600ms ease;
}

.background.is-loaded {
  opacity: 1;
}

.shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 24, 18, 0.72) 0%, rgba(55, 64, 50, 0.42) 45%, rgba(55, 64, 50, 0.12) 100%),
    linear-gradient(180deg, rgba(19, 24, 18, 0.08), rgba(19, 24, 18, 0.58));
}

.profile {
  display: flex;
  min-height: calc(100svh - 4.8rem - clamp(5rem, 12vw, 11rem));
  flex-direction: column;
  justify-content: flex-start;
  width: min(100%, 36rem);
  margin-left: var(--logo-offset);
  padding-block: clamp(2.8rem, 7vw, 6rem) 2rem;
}

.tagline {
  margin: 0 0 1.15rem;
  color: rgba(255, 250, 242, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-style: italic;
  line-height: 1.15;
}

.portrait {
  width: 6.2rem;
  height: 6.2rem;
  margin-bottom: 1.65rem;
  border: 2px solid rgba(247, 242, 223, 0.46);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
}

.kicker,
.location {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.location {
  margin-top: 1.1rem;
  color: var(--quiet);
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.profile h1 + .bio,
.profile h1 + * {
  margin-top: 0;
}

/*
h1 {
  max-width: 12ch;
  margin: 0.42rem 0 0;
  font-size: clamp(3.2rem, 9vw, 6.1rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}
*/

.bio {
  max-width: 31rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.contact-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.45rem;
  margin-top: 1.15rem;
  padding: 0.64rem 1.08rem;
  border: 1px solid rgba(245, 154, 0, 0.56);
  border-radius: 4px;
  color: var(--button-text);
  background: var(--button-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-button:hover {
  transform: translateY(-1px);
  color: #151813;
  background: var(--gold-soft);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-links a {
  color: var(--quiet);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration-color: rgba(255, 250, 242, 0.32);
  text-underline-offset: 0.28em;
}

.profile-links a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid rgba(247, 242, 223, 0.28);
  border-radius: 4px;
  color: var(--quiet);
  background: rgba(21, 24, 19, 0.18);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.social-links a:hover {
  border-color: rgba(245, 154, 0, 0.72);
  color: var(--text);
  background: rgba(245, 154, 0, 0.16);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.imprint-kicker {
  margin: 0;
  color: #8f7a45;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.imprint-dialog h2 {
  margin: 0.45rem 0 0;
  color: #495449;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.08;
}

.imprint-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.35rem;
  font-family: Arial, Helvetica, sans-serif;
}

.imprint-columns section {
  margin: 0;
}

.imprint-columns h3 {
  margin: 0 0 0.38rem;
  color: #495449;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.imprint-columns p {
  margin: 0;
  color: #495449;
  font-size: 0.92rem;
  line-height: 1.65;
}

.imprint-columns a {
  color: #495449;
  text-decoration-color: rgba(73, 84, 73, 0.38);
  text-underline-offset: 0.24em;
}

.imprint-columns a:hover {
  color: var(--gold);
}

.imprint-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.imprint-modal:target {
  display: flex;
}

.imprint-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 24, 18, 0.62);
}

.imprint-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(80svh, 42rem);
  overflow: auto;
  padding: clamp(1.35rem, 4vw, 2.35rem);
  color: #495449;
  background: #f8f4ec;
  border: 1px solid rgba(73, 84, 73, 0.18);
  border-radius: 6px;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
}

.imprint-close {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  color: #495449;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration-color: rgba(73, 84, 73, 0.38);
  text-underline-offset: 0.24em;
}

.imprint-close:hover {
  color: var(--gold);
}

.site-logo {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  :root {
    --page-x: 1.25rem;
  }

  body {
    padding-top: 4.35rem;
  }

  .site-header {
    min-height: 4.35rem;
    padding-inline: var(--page-x);
  }

  .header-logo img {
    width: 100%;
  }

  .header-logo {
    width: 10rem;
  }

  .header-nav {
    gap: 0.75rem;
  }

  .header-nav a {
    font-size: 0.78rem;
  }

  .page-shell {
    min-height: calc(100dvh - 4.35rem);
    padding: 2rem var(--page-x) 1.35rem;
  }

  .shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
  }

  .profile {
    min-height: calc(100dvh - 4.35rem - 2.7rem);
    padding-block: 3.2rem 2.35rem;
  }

  .portrait {
    width: 5.35rem;
    height: 5.35rem;
    margin-bottom: 1.1rem;
  }

  .bio {
    margin-top: 1.15rem;
  }

  .contact-button {
    width: auto;
    max-width: none;
    align-self: flex-start;
  }

  .imprint-columns {
    grid-template-columns: 1fr;
  }

  .site-logo {
    top: 1.25rem;
    right: 1.25rem;
    bottom: auto;
    width: min(6.5rem, 34vw);
    max-height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
