/*
Theme Name: Albert Kirchengast
Text Domain: albert-kirchengast
Description: Persönliche One-Page-Website von Albert Kirchengast, Architekturtheorie.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root{
  --ink: #111111;
  --paper: #ffffff;
  --signal: #111111;
  --hover-ink: #811c35;
  --size: clamp(16px, 0.403vw + 14.548px, 21px);
}

*{ box-sizing: border-box; }

html{ background: var(--paper); }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, "Liberation Serif", serif;
  font-size: var(--size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10vh 6vw 0;
}

.layout{
  display: block;
  max-width: clamp(38ch, 54vw, 58ch);
  padding-bottom: 7vh;
}

.field{
  max-width: none;
  margin-top: 40px;
}

.quote-stack,
.bio-stack{ display: grid; }
.quote-stack > .quote,
.bio-stack > .bio,
.current-stack > .current{
  grid-area: 1 / 1;
  min-width: 0;
}
.is-inactive{
  visibility: hidden;
  pointer-events: none;
}

.quote{
  max-width: none;
  font-size: calc(var(--size) * 0.75);
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
  text-wrap: pretty;
}
.quote cite{
  display: block;
  font-style: normal;
  color: var(--ink);
  margin-top: 0;
}
.quote a{
  color: inherit;
  text-decoration: none;
}
.quote a:hover{
  color: var(--hover-ink);
  text-decoration: underline solid var(--hover-ink);
  text-underline-offset: 0.15em;
}
.quote a:hover cite{ color: var(--hover-ink); }

.bio{
  font-size: var(--size);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphenate-character: "‐";
}

.no-hyphen{ hyphens: none; -webkit-hyphens: none; -moz-hyphens: none; }

.lang-toggle{
  font-family: inherit;
  font-size: calc(var(--size) * 0.75);
  font-weight: 400;
  line-height: inherit;
  color: var(--ink);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.6em;
  cursor: pointer;
}
.lang-toggle:hover{ text-decoration: underline; }

.contacts{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.contact{
  font-size: var(--size);
  font-weight: 400;
  margin: 0;
}
.contact a{
  color: var(--ink);
  text-decoration: none;
}
.contact a:hover{
  color: var(--hover-ink);
  text-decoration: underline solid var(--hover-ink);
  text-underline-offset: 0.15em;
}

.current-item a:hover{
  color: var(--hover-ink);
  text-decoration: underline solid var(--hover-ink);
  text-underline-offset: 0.15em;
}

#link-preview{
  position: fixed;
  max-width: 32ch;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--hover-ink);
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--hover-ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  word-break: break-all;
  overflow-y: auto;
}
#link-preview.is-visible{ opacity: 1; }

@media (max-width: 1000px){
  #link-preview{ display: none; }
}

[data-href]{ cursor: pointer; }

.current-stack{
  display: grid;
  margin-top: 40px;
}

.section-heading{
  font-size: calc(var(--size) * 0.75);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 1px;
}

.current-item{
  font-size: var(--size);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.current-item a{
  color: inherit;
  text-decoration: none;
  display: block;
}

.impressum{
  max-width: 1200px;
  margin: 0 auto;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 4vh 6vw 4vh;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.impressum.is-visible{ opacity: 1; }
.impressum a{ color: var(--ink); text-decoration: none; }
.impressum a:hover{
  color: var(--hover-ink);
  text-decoration: underline solid var(--hover-ink);
  text-underline-offset: 0.15em;
}

/* feine, umbruchsichere Abstände statt echter Leerzeichen */
.spacer-at{ margin: 0 0.05em; }
.spacer-dash{ margin: 0 0.125em; }
.spacer-year{ margin-left: 0.08em; }

@media (max-width: 760px){
  .layout{ max-width: none; }
}

/* Unterseiten (Datenschutz u. a.) */
.subpage{ padding-bottom: 10vh; }
.back{
  font-size: calc(var(--size) * 0.75);
  letter-spacing: 0.02em;
  margin: 0 0 40px;
}
.back a,
.subpage-content a{
  color: var(--ink);
  text-decoration: none;
}
.back a:hover,
.subpage-content a:hover{
  color: var(--hover-ink);
  text-decoration: underline solid var(--hover-ink);
  text-underline-offset: 0.15em;
}
.subpage-title{
  font-size: var(--size);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 24px;
}
.subpage-content{
  font-size: calc(var(--size) * 0.85);
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}
.subpage-content h2{
  font-size: calc(var(--size) * 0.75);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 28px 0 2px;
}
.subpage-content p{ margin: 0 0 0.8em; }

.impressum .spacer-link{ margin-left: 0.6em; }
