/*
Theme Name: AS Juers
Theme URI: https://as-juers.de/
Author: Anja & Stephan Jürs
Description: Persönliches WordPress-Theme über Gaming, Hunde und das gemeinsame Leben.
Version: 1.0.1
Text Domain: as-juers
*/

:root {
  --ink: #f5f1e8;
  --muted: #b8b1a5;
  --night: #11100f;
  --night-soft: #191715;
  --panel: #211e1b;
  --line: rgba(255, 255, 255, 0.1);
  --red: #b92d35;
  --red-dark: #741b24;
  --gold: #d8ad62;
  --sage: #8da387;
  --radius: 1.5rem;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 10%, rgba(185, 45, 53, 0.16), transparent 30rem),
    radial-gradient(circle at 10% 70%, rgba(141, 163, 135, 0.09), transparent 30rem),
    var(--night);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(76rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

/*
 * Alte Bootstrap-Plugins erzeugen Clearfix-Pseudoelemente in .container.
 * In Flex- und Grid-Containern würden sie als zusätzliche Layout-Elemente
 * erscheinen und die Inhalte verschieben.
 */
.container::before,
.container::after {
  display: none;
  content: none;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.82);
  backdrop-filter: blur(1rem);
}

.header-inner {
  display: flex;
  min-height: 5rem;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(216, 173, 98, 0.45);
  border-radius: 50%;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(185,45,53,.45), rgba(116,27,36,.15));
}

.brand-mark svg {
  width: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 5rem);
  align-items: center;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 15%;
  right: -8rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(216, 173, 98, 0.15);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5rem rgba(185, 45, 53, 0.035), 0 0 0 10rem rgba(185, 45, 53, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: 6rem;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero h1 em {
  color: var(--gold);
  font-weight: inherit;
}

.hero-copy {
  max-width: 38rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  padding: 0.8rem 1.3rem;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  background: var(--red);
  box-shadow: 0 0.8rem 2rem rgba(185,45,53,.22);
}

.button:hover {
  background: #cf3942;
  transform: translateY(-1px);
}

.hero-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}

.hero-card::before {
  display: block;
  width: 3rem;
  height: 0.3rem;
  margin-bottom: 3rem;
  border-radius: 1rem;
  content: "";
  background: var(--red);
}

.hero-card strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1;
}

.hero-card span {
  color: var(--muted);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.story-card {
  position: relative;
  min-height: 27rem;
  padding: clamp(1.7rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.story-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 45% 55% 50% 50%;
  content: "";
  transform: rotate(30deg);
}

.story-card--azeroth {
  background: linear-gradient(145deg, rgba(116,27,36,.65), var(--panel) 65%);
}

.story-card--dogs {
  background: linear-gradient(145deg, rgba(74,92,71,.65), var(--panel) 65%);
}

.story-number {
  color: rgba(255,255,255,.32);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.story-card h3 {
  max-width: 12ch;
  margin: 7rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
}

.story-card p {
  max-width: 32rem;
  margin: 0;
  color: #d2ccc1;
}

.news-section {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-card {
  display: flex;
  min-height: 21rem;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--night-soft);
  transition: transform .2s ease, border-color .2s ease;
}

.post-card:hover {
  border-color: rgba(216,173,98,.45);
  transform: translateY(-0.3rem);
}

.post-card time {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 1.3rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}

.post-card p {
  margin: 0 0 2rem;
  color: var(--muted);
}

.post-link {
  margin-top: auto;
  color: var(--ink);
  font-weight: 750;
}

.empty-news {
  grid-column: 1 / -1;
  padding: 3rem;
  border: 1px dashed rgba(216,173,98,.35);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.site-main {
  min-height: 60vh;
}

.content-wrap {
  width: min(52rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 6rem;
}

.entry-title {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.entry-content {
  color: #d8d2c8;
  font-size: 1.08rem;
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
}

.site-footer {
  padding-block: 3rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.footer-inner strong {
  color: var(--ink);
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 5rem;
    right: 1.25rem;
    left: 1.25rem;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #191715;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 4.5rem;
  }

  .hero-card {
    max-width: 25rem;
  }

  .story-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 23rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
