/* Palčica Pomagalčica — Travnik upanja (option C)
   Multi-page charity site · sage · berry · cream */

:root {
  --cream: #fff9f2;
  --leaf: #3f6b52;
  --leaf-deep: #2c4d3a;
  --sage: #d9e8dc;
  --sage-deep: #b7d0be;
  --berry: #c45c6a;
  --berry-soft: #f6dfe3;
  --berry-text: #9e3b4c;
  --butter: #f7e7c8;
  --ink: #243128;
  --muted: #5a6b60;
  --white: #ffffff;
  --display: "Petrona", Georgia, serif;
  --body: "Commissioner", system-ui, sans-serif;
  --shadow: 0 16px 40px rgba(63, 107, 82, 0.1);
  --frame: 72rem;
  --read: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main[id],
main [id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-a {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, var(--berry-soft), transparent 70%);
}

.blob-b {
  width: 32rem;
  height: 32rem;
  bottom: 10%;
  left: -10rem;
  background: radial-gradient(circle, var(--sage), transparent 70%);
}

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

a {
  color: var(--leaf-deep);
  text-underline-offset: 0.16em;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

a:hover {
  color: var(--berry-text);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--leaf);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
  color: white;
}

.frame {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--frame));
  margin-inline: auto;
}

.slim {
  width: min(100% - 2.5rem, var(--read));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 249, 242, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(63, 107, 82, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-halo {
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sage), var(--butter));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.logo-halo img {
  width: 2.9rem;
  height: auto;
}

.brand-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-copy span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--leaf);
  background: var(--sage);
}

.site-nav a[aria-current="page"] {
  color: var(--leaf-deep);
  background: var(--sage);
}

/* Six nav items: tighten spacing so the header stays on one row
   between the mobile breakpoint and roomy desktop widths. */
@media (min-width: 745px) and (max-width: 900px) {
  .site-nav a {
    padding-inline: 0.5rem;
    font-size: 0.9rem;
  }

  .logo-halo {
    width: 3.4rem;
    height: 3.4rem;
  }

  .logo-halo img {
    width: 2.4rem;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }
}

/* Mobile nav disclosure */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--sage-deep);
  background: var(--sage);
  color: var(--leaf-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--sage-deep);
  color: var(--leaf-deep);
}

.nav-toggle-icon {
  display: grid;
  gap: 0.2rem;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
}

.pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--leaf-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 1.15rem;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--leaf-deep);
}

.hero h1 .accent-line {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: linear-gradient(180deg, transparent 62%, rgba(184, 214, 230, 0.75) 62%);
  padding: 0 0.12em;
}

.lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn.fill {
  background: var(--berry);
  color: white;
  border-color: var(--berry);
  box-shadow: 0 10px 24px rgba(196, 92, 106, 0.28);
}

.btn.fill:hover {
  background: #ad4a58;
  color: white;
  border-color: #ad4a58;
}

.btn.outline {
  background: transparent;
  color: var(--leaf-deep);
  border-color: var(--sage-deep);
}

.btn.outline:hover {
  background: var(--sage);
  color: var(--leaf-deep);
  border-color: var(--leaf);
}

.float-card {
  margin: 0 auto;
  max-width: 34rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 28px 28px 40px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(63, 107, 82, 0.08);
}

.float-card img {
  width: 100%;
  border-radius: 20px;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 3.75rem 0;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 auto 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--leaf-deep);
  text-wrap: balance;
  max-width: 20ch;
}

.page-hero .lead {
  margin-bottom: 0;
}

.sage-band {
  background: linear-gradient(180deg, transparent, rgba(217, 232, 220, 0.55), transparent);
}

.contact-band {
  background: linear-gradient(180deg, #fff9f2 0%, #fdeef1 45%, #f8e8ec 100%);
  padding: 4.5rem 0 5.5rem;
}

h2 {
  margin: 0 0 1.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--leaf-deep);
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

.section-head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--leaf-deep);
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry-text);
}

.soft-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(63, 107, 82, 0.08);
}

.soft-card.rose {
  background: linear-gradient(160deg, var(--berry-soft), var(--white) 60%);
  margin-bottom: 2rem;
}

.soft-card.rose p {
  margin: 0;
  font-size: 1.1rem;
}

.story-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--berry-text);
}

.story-flow p {
  margin: 0 0 1.2rem;
}

.story-flow p:last-child {
  margin-bottom: 0;
}

.mail-card {
  display: block;
  margin-top: 1.75rem;
  padding: 1.35rem 1.75rem;
  text-align: center;
  font-style: normal;
  background: var(--butter);
  border-radius: 999px;
  border: 2px dashed var(--leaf);
  box-shadow: var(--shadow);
}

.path {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.path article {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(63, 107, 82, 0.1);
  box-shadow: var(--shadow);
}

.dot {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--leaf-deep);
  font-family: var(--display);
  font-weight: 800;
}

.path h3 {
  margin: 0.1rem 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--leaf-deep);
}

.path p {
  margin: 0;
  color: var(--muted);
}

.tax {
  font-variant-numeric: tabular-nums;
  background: var(--berry-soft);
  color: var(--berry-text);
  padding: 0.05em 0.4em;
  border-radius: 999px;
}

.gratitude {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border-radius: 20px;
  border-left: 5px solid var(--berry);
  font-style: italic;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  margin: -0.4rem 0 1.5rem;
}

.soft-card .muted {
  margin: 0 0 0.35rem;
}

/* Spacing and note utilities */
.gap-sm {
  margin-top: 0.75rem;
}

.gap-md {
  margin-top: 1.5rem;
}

.gap-lg {
  margin-top: 2rem;
}

.gap-xl {
  margin-top: 2.5rem;
}

.note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.ext-note {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--ink);
}

.site-footer .ext-note {
  color: rgba(230, 240, 233, 0.75);
}

.notice {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--berry-soft);
  border-radius: 20px;
  border-left: 5px solid var(--berry);
  color: var(--ink);
}

.notice strong {
  color: var(--berry-text);
}

.step-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.step-option {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid rgba(63, 107, 82, 0.12);
  color: var(--muted);
}

.step-option.recommended {
  background: linear-gradient(160deg, var(--sage), var(--white) 70%);
  border-color: var(--leaf);
}

.step-option strong:not(.tax) {
  color: var(--leaf-deep);
}

.reco-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.form-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.toc {
  margin: 0 0 2.75rem;
  padding: 1.35rem 1.6rem;
  background: var(--sage);
  border-radius: 22px;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.toc a {
  font-weight: 600;
}

.thank-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  padding: 1.2rem 1.5rem;
}

.thank-card .thank-logo {
  width: 4.4rem;
  height: auto;
  flex-shrink: 0;
}

.thank-card .thank-title {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--leaf-deep);
}

.thank-card .thank-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.form-pair {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .form-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.form-pair .soft-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.form-pair h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--leaf-deep);
}

.form-pair p {
  margin: 0;
  flex: 1;
  color: var(--muted);
}

.form-pair .btn {
  align-self: flex-start;
}

.center {
  text-align: center;
}

.narrative p {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
}

.photo-bubble {
  margin: 2rem auto;
  max-width: 28rem;
  padding: 0.7rem;
  background: linear-gradient(145deg, var(--sage), var(--butter));
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  box-shadow: var(--shadow);
}

.photo-bubble.wide {
  max-width: 34rem;
  border-radius: 48% 52% 45% 55% / 42% 55% 45% 58%;
}

.photo-bubble.portrait {
  max-width: 18rem;
}

.photo-bubble img {
  width: 100%;
  border-radius: 38% 62% 52% 48% / 48% 42% 58% 52%;
}

.photo-frame {
  margin: 2rem auto;
  padding: 0.65rem;
  background: linear-gradient(145deg, var(--sage), var(--butter));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  border-radius: 22px;
}

.photo-frame figcaption,
.photo-bubble figcaption {
  margin: 0.7rem 0.4rem 0.15rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.media-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.media-list li {
  margin: 0;
}

.media-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.media-list a:hover {
  color: inherit;
}

.media-list a:hover .media-title {
  color: var(--berry-text);
}

.media-src {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--berry-text);
}

.media-title {
  display: block;
  margin-top: 0.15rem;
  color: var(--leaf-deep);
  text-underline-offset: 0.16em;
  text-decoration: underline;
  text-decoration-color: rgba(63, 107, 82, 0.25);
}

/* Contact — wider, airier (was too tight) */
.contact-wrap {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.contact-grid .soft-card {
  padding: 1.85rem 1.75rem 2rem;
  border-radius: 24px;
}

@media (min-width: 800px) {
  .contact-grid .soft-card {
    min-height: 13rem;
  }
}

.contact-grid h3 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--berry-text);
  font-weight: 700;
}

.contact-grid p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}

.contact-grid .addr-lines {
  display: grid;
  gap: 0.15rem;
}

.contact-grid a {
  word-break: break-word;
}

.soon {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--leaf-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-grid .social-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 5.5rem;
  text-decoration: none;
  color: var(--leaf-deep);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sage), var(--butter));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-name {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(63, 107, 82, 0.35);
  text-underline-offset: 0.16em;
}

.social-tile:hover .social-icon {
  transform: translateY(-2px);
  background: var(--berry-soft);
}

.social-tile:hover .social-name {
  color: var(--berry-text);
}

/* Vaša pomoč — clickable cards to the three ways of helping */
.help-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-3px);
  color: inherit;
  box-shadow: 0 20px 44px rgba(63, 107, 82, 0.14);
}

.contact-grid .help-card p {
  flex: 1;
  color: var(--muted);
}

.help-card .more {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--berry-text);
}

.help-card:hover h3,
.help-card:hover .more {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.crumb {
  color: inherit;
  text-decoration: none;
}

.crumb::before {
  content: "← ";
}

.crumb:hover {
  text-decoration: underline;
}

.help-note h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.help-note p {
  margin: 0 0 0.75rem;
}

.help-note p:last-child {
  margin-bottom: 0;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* beats .narrative p margins inside story pages */
p.help-actions {
  margin-top: 2rem;
}

/* Contact form */
.message-card {
  max-width: var(--read);
  margin: 2.5rem auto 0;
  padding: 2rem 1.75rem 2.1rem;
  border-radius: 24px;
}

.message-card h2 {
  margin-bottom: 0.5rem;
}

.message-card .muted {
  margin-bottom: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field-pair {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--leaf-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.95rem;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sage-deep);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
  background: var(--white);
  border-color: var(--leaf);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.field-check input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  accent-color: var(--leaf);
}

.contact-form .note {
  margin: 0;
}

.form-submit {
  margin: 0.25rem 0 0;
}

.form-submit .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  background: var(--sage);
  color: var(--leaf-deep);
}

.form-status.is-error {
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  background: var(--berry-soft);
  color: var(--berry-text);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

/* News — media coverage list */
.news-year {
  margin: 2.75rem 0 1.1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.news-year:first-of-type {
  margin-top: 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(63, 107, 82, 0.14);
}

.news-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-item h3 a {
  color: var(--leaf-deep);
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--berry-text);
  text-decoration: underline;
}

.news-item p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.98rem;
}

.news-item .more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--berry-text);
}

/* Home teaser cards */
.teaser-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser:hover {
  transform: translateY(-3px);
  color: inherit;
  box-shadow: 0 20px 44px rgba(63, 107, 82, 0.14);
}

.teaser h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--leaf-deep);
}

.teaser p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.98rem;
}

.teaser .more {
  font-weight: 700;
  color: var(--berry-text);
  font-size: 0.95rem;
}

/* Site footer — wider, breathing room */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--leaf-deep);
  color: #e6f0e9;
  padding: 3.25rem 0 2.5rem;
}

.footer-inner {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand img {
  width: 3.25rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.55;
  color: rgba(230, 240, 233, 0.92);
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: #f6dfe3;
  letter-spacing: 0.03em;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col a {
  color: rgba(230, 240, 233, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.footer-col .social-links a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #e6f0e9;
}

.footer-col .social-links a:hover {
  background: #f6dfe3;
  color: var(--leaf-deep);
}

.footer-bottom {
  width: min(100% - 2.5rem, 64rem);
  margin: 2rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(230, 240, 233, 0.7);
  text-align: center;
}

@media (max-width: 744px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 3.5rem;
    padding-block: 0.4rem;
    gap: 0.4rem;
  }

  .logo-halo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .logo-halo img {
    width: 1.95rem;
  }

  .brand-copy strong {
    font-size: 1.02rem;
  }

  .brand-copy span {
    display: none;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    padding-bottom: 0.4rem;
  }

  /* Without JS the nav stays visible and usable; with JS (html.js)
     it collapses behind the toggle and opens via .is-open. */
  html.js .site-nav {
    display: none;
  }

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

  .site-nav a {
    justify-content: flex-start;
    padding: 0.65rem 0.9rem;
  }

  .mail-card {
    border-radius: 22px;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-col {
    justify-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .thank-card {
    flex-direction: column;
    text-align: center;
  }
}

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