/*
Theme Name: IRC Classic
Theme URI: https://irc-reiten.de/
Author: Hanjo Winter
Description: Classic WordPress theme for the IRC redesign with Gutenberg-compatible content editing.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7
Requires PHP: 8.0
Text Domain: irc-classic
*/

:root {
  --irc-navy: #04162e;
  --irc-ink: #191c1d;
  --irc-muted: #44474d;
  --irc-line: #c5c6ce;
  --irc-ivory: #f8f9fa;
  --irc-mist: #edeeef;
  --irc-green: #48654e;
  --irc-sage: #c7e8ca;
  --irc-gold: #cba72f;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--irc-ivory);
  color: var(--irc-ink);
  font-family: "Manrope", sans-serif;
}

a {
  text-decoration: none;
}

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
}

.hero-mask {
  background: linear-gradient(90deg, rgba(4, 22, 46, 0.94) 0%, rgba(4, 22, 46, 0.7) 45%, rgba(4, 22, 46, 0.12) 100%);
}

.noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.nav-scrolled {
  background: rgba(4, 22, 46, 0.94);
  box-shadow: 0 12px 34px rgba(4, 22, 46, 0.16);
  backdrop-filter: blur(14px);
}

.irc-menu,
.irc-footer-menu,
.irc-social-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.irc-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.irc-desktop-nav {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5rem;
}

.irc-wordmark {
  display: block;
}

.irc-brand,
.irc-brand:visited,
.irc-brand:hover,
.irc-brand:focus {
  color: #fff;
}

.irc-brand .text-sage {
  color: var(--irc-sage);
}

.irc-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.irc-menu a:hover,
.irc-menu a:focus {
  color: #fff;
}

.irc-mobile-menu {
  display: grid;
  gap: 0.25rem;
}

.irc-mobile-menu a {
  display: block;
  border-radius: 0.25rem;
  padding: 0.75rem;
  color: #fff;
  font-weight: 600;
}

.irc-footer-menu a,
.irc-social-menu a {
  color: rgba(255, 255, 255, 0.82);
}

.irc-footer-menu a:hover,
.irc-footer-menu a:focus,
.irc-social-menu a:hover,
.irc-social-menu a:focus {
  color: #fff;
}

.irc-breadcrumb a {
  color: var(--irc-muted);
}

.irc-breadcrumb a:hover,
.irc-breadcrumb a:focus {
  color: var(--irc-navy);
}

.irc-content > *:first-child {
  margin-top: 0;
}

.irc-content > *:last-child {
  margin-bottom: 0;
}

.irc-legal-wrap {
  margin: 0 auto;
  max-width: 56rem;
  padding: 3rem 1.5rem 5rem;
}

.irc-archive-grid article {
  height: 100%;
}

.irc-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  background: rgba(0, 0, 0, 0.95);
  padding: 1.25rem;
}

.irc-fullscreen.is-open {
  display: block;
}

.irc-fullscreen img {
  display: block;
  width: 100%;
  max-width: 72rem;
  max-height: 92vh;
  margin: 0 auto;
  object-fit: contain;
}

.irc-fullscreen button {
  border: 0;
  cursor: pointer;
}

.irc-fullscreen-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  border-radius: 0.25rem;
  background: #fff;
  padding: 0.75rem 1rem;
  color: var(--irc-navy);
  font-weight: 700;
}

.irc-fullscreen-nav {
  position: absolute;
  top: 50%;
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.875rem;
}

.irc-fullscreen-prev {
  left: 1.25rem;
}

.irc-fullscreen-next {
  right: 1.25rem;
}

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

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  .irc-menu {
    display: none;
  }
}

@media (max-width: 639px) {
  .irc-wordmark {
    display: none;
  }
}

@media (min-width: 1024px) {
  .irc-desktop-nav {
    display: flex;
  }

  .irc-mobile-toggle,
  #mobile-menu {
    display: none !important;
  }
}
