:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --white: #fffefa;
  --ink: #19212d;
  --muted: #505762;
  --night: #19212d;
  --red: #ac2631;
  --red-dark: #851c25;
  --yellow: #ffd153;
  --line: #ded9d0;
  --header-height: 4.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  scroll-padding-top: calc(var(--header-height) + .75rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 4px; }
.hero a:focus-visible, .join a:focus-visible, .footer a:focus-visible { outline-color: var(--yellow); }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 12; top: .5rem; left: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.preview { display: flex; justify-content: center; align-items: center; gap: .55rem; padding: .35rem 1rem; background: #f2e5b8; color: #4c3810; font-size: .76rem; }
.preview span, .eyebrow > span { width: .48rem; height: .48rem; background: var(--red); display: inline-block; flex: none; transform: rotate(45deg); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 .2rem .9rem #19212d12; }
.site-header::before { content: ""; display: block; height: .25rem; background: linear-gradient(90deg, var(--red) 0 78%, var(--yellow) 78%); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: .35rem 1.35rem; min-height: 4.45rem; padding-block: .45rem; }
.brand { display: flex; gap: .7rem; align-items: center; flex: none; text-decoration: none; }
.brand img { object-fit: contain; border-radius: 50%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: .07em; }
.brand small { font-size: .76rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
nav a { padding: .65rem .72rem; border-radius: .3rem; font-size: .86rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current] { background: #f7e6e5; color: var(--red-dark); }
nav a[aria-current] { box-shadow: inset 0 -.15rem var(--red); }
.menu-toggle { display: none; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .75rem; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: .35rem; font: inherit; font-weight: 750; cursor: pointer; }
.menu-toggle svg { width: 1.1rem; height: 1.1rem; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.menu-toggle[aria-expanded="true"] { background: #f7e6e5; }

.hero { background: var(--night) url("assets/vrstevnice.svg") right center / auto 110% no-repeat; color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(2rem, 5vw, 4.6rem); align-items: center; padding-block: clamp(3.2rem, 7vw, 6.6rem); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--red-dark); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.hero .eyebrow, .join .eyebrow, .footer .eyebrow { color: var(--yellow); }
.hero .eyebrow span, .join .eyebrow span, .footer .eyebrow span { background: var(--yellow); }
.hero .eyebrow b { color: var(--yellow); }
h1, h2, h3 { line-height: 1.12; }
h1 { margin-top: 1.15rem; font-size: clamp(2.35rem, 5.25vw, 4.9rem); font-weight: 780; letter-spacing: -.065em; }
h1 em { display: block; font-style: normal; color: var(--yellow); }
.hero-intro { color: #e6e8ed; max-width: 36rem; margin-top: 1.45rem; font-size: clamp(1rem, 1.75vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem; width: fit-content; padding: .74rem 1rem; font-weight: 750; font-size: .88rem; text-decoration: none; border: 1px solid transparent; }
.button-primary { background: var(--yellow); color: #241d0d; }
.button-primary:hover { background: #ffe18a; }
.button-outline { color: var(--paper); border-color: #9aa2b1; }
.button-outline:hover { background: #323c4c; }
.hero-media { border-top: .28rem solid var(--red); padding-top: .4rem; }
.team-photo { width: 100%; height: auto; background: #34404f; }
.hero-media figcaption { border-bottom: 1px solid #758093; padding: .6rem 0; color: #e6e8ed; font-size: .76rem; }

.section { padding-block: clamp(3rem, 7vw, 6.2rem); }
.section-heading { max-width: 42rem; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.45rem); letter-spacing: -.05em; margin-top: .65rem; }
h2 + p { margin-top: .95rem; color: var(--muted); }
h3 { font-size: 1.24rem; letter-spacing: -.02em; }
h3 + p { margin-top: .5rem; color: var(--muted); }
.activities, .stories { margin-top: 1.9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activities { border: 1px solid var(--line); }
.activities article { background: var(--white); padding: clamp(1.2rem, 3vw, 2.25rem); }
.activities article + article { border-left: 1px solid var(--line); }
.activities svg { width: 2rem; height: 2rem; stroke: var(--red); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; }
.band { background: #eceef2; }
.two-column { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 8vw, 7rem); align-items: start; }
.text-link { display: inline-flex; gap: .45rem; margin-top: .95rem; font-weight: 720; font-size: .9rem; }
.text-link:hover, .link-list a:hover { color: var(--red-dark); }
.deployment-note { background: var(--white); border-left: 3px solid var(--red); padding: clamp(1.25rem, 4vw, 2.3rem); }
.empty-posts { margin-top: 1.9rem; padding: 1rem 1.2rem; border-left: 3px solid var(--red); background: var(--white); color: var(--muted); }
.stories[hidden] { display: none; }
.stories { gap: 1rem; }
.story { background: var(--white); border: 1px solid var(--line); }
.story:target { outline: 2px solid var(--red); outline-offset: 3px; }
.story img, .story-date { width: 100%; height: 10.4rem; object-fit: cover; }
.story .member-photo { object-position: center 27%; }
.story-date { display: flex; gap: .75rem; align-items: center; justify-content: center; background: #f5e4b6; color: #48370f; }
.story-date span:first-child { font-size: 5.6rem; line-height: 1; letter-spacing: -.08em; font-weight: 780; }
.story-date span + span { font-size: 1rem; line-height: 1.2; font-weight: 750; }
.story-body { padding: 1.2rem; }
.story-body h3 { margin-top: .52rem; }
.join { background: var(--red-dark); color: var(--paper); }
.join-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-block: 2.6rem; }
.join h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.join p:not(.eyebrow) { color: #fff0ef; max-width: 39rem; }
.join .button { flex: none; }
.resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-list { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.link-list li + li { margin-top: .45rem; }
.link-list a { font-weight: 650; }
.members { background: #f1e8e2; border-left: 3px solid var(--red); padding: clamp(1.25rem, 4vw, 2.3rem); }
.members h2 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); }
.footer { background: var(--night); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-block: 2.8rem; }
.footer-meta { display: flex; align-items: center; gap: .8rem; color: #e6e8ed; font-size: .9rem; }
.footer-meta img { object-fit: contain; border-radius: 50%; }
.footer-email { display: inline-block; margin-top: .7rem; color: var(--yellow); font-size: 1.06rem; font-weight: 700; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #657184; padding-block: 1.1rem; font-size: .85rem; }

@media (max-width: 56rem) {
  nav a { padding-inline: .5rem; }
  .hero-inner { gap: 2rem; }
}

@media (max-width: 50rem) {
  .header-inner { flex-wrap: wrap; }
  .brand img { width: 2.6rem; height: 2.6rem; }
  .has-menu-toggle .menu-toggle { display: inline-flex; }
  .has-menu-toggle nav { position: absolute; display: none; inset: 100% 0 auto; background: var(--white); padding: .5rem 1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 .4rem 1rem #19212d26; overflow-y: auto; max-height: calc(100dvh - var(--header-height) - 3rem); }
  .has-menu-toggle .menu-toggle[aria-expanded="true"] + nav { display: grid; gap: .15rem; }
  nav a { padding: .7rem .65rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner, .two-column, .activities, .stories { grid-template-columns: minmax(0, 1fr); }
  .activities article + article { border-left: 0; border-top: 1px solid var(--line); }
  .join-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
}
