:root {
  --blue-950: #071433;
  --blue-900: #0b245b;
  --blue-700: #1d58d8;
  --blue-100: #edf3ff;
  --red-700: #c80f2e;
  --red-500: #ff5b6f;
  --red-100: #ffe9ed;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --panel-border: rgba(11, 36, 91, 0.12);
  --text: #0b245b;
  --muted: #5d6e97;
  --line: rgba(11, 36, 91, 0.1);
  --chip: rgba(11, 36, 91, 0.045);
  --link-bg: rgba(11, 36, 91, 0.045);
  --link-hover: rgba(11, 36, 91, 0.09);
  --shadow: 0 24px 80px rgba(11, 36, 91, 0.12);
  --shadow-strong: 0 20px 40px rgba(200, 15, 46, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 91, 111, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 88, 216, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--blue-100) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}

body::before {
  width: 24rem;
  height: 24rem;
  top: 7%;
  left: -8rem;
  background: rgba(255, 91, 111, 0.14);
}

body::after {
  width: 28rem;
  height: 28rem;
  right: -10rem;
  bottom: 10%;
  background: rgba(29, 88, 216, 0.12);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 920px);
  margin: 2rem auto;
}

.link-shell {
  width: min(94vw, 1120px);
  display: grid;
  place-items: center;
  min-height: calc(100vh - 4rem);
}

.brand-card,
.content-card {
  width: 100%;
  padding: 2.2rem;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand-card {
  text-align: center;
}

.brand-card-home {
  overflow: hidden;
  position: relative;
}

.brand-card-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 48%),
    linear-gradient(320deg, rgba(29, 88, 216, 0.05), transparent 42%);
  pointer-events: none;
}

.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
  text-align: left;
}

.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.25rem 0.5rem 0;
}

.logo-wrap {
  width: min(280px, 65vw);
  margin: 0 auto 1.5rem;
  padding: 1.1rem;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 255, 0.92));
  border: 1px solid rgba(11, 36, 91, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo-wrap-home {
  width: 100%;
  max-width: 320px;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand-copy strong {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

h3 {
  font-size: 1rem;
}

.tagline,
.intro,
p,
ul {
  color: var(--muted);
  line-height: 1.75;
}

.tagline {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.featured-link,
.button-link,
.footer-link,
.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700) 0%, var(--red-500) 100%);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.featured-link:hover,
.featured-link:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.cookie-button:hover,
.cookie-button:focus-visible,
.social-link:hover,
.social-link:focus-visible,
.utility-link:hover,
.utility-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
}

.featured-link {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 1rem 1.55rem;
  font-size: 1.05rem;
}

.home-actions {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.home-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 36, 91, 0.98), rgba(15, 44, 102, 0.92));
  color: var(--white);
  box-shadow: 0 30px 60px rgba(11, 36, 91, 0.22);
}

.home-panel-copy {
  display: grid;
  gap: 0.9rem;
}

.panel-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.social-link,
.utility-link,
.back-link,
.cookie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(2, 33, 105, 0.08);
  background: var(--link-bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible,
.utility-link:hover,
.utility-link:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.cookie-link:hover,
.cookie-link:focus-visible {
  background: var(--link-hover);
  border-color: rgba(2, 33, 105, 0.18);
}

.home-panel .social-link {
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.home-panel .social-link:hover,
.home-panel .social-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-section {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(11, 36, 91, 0.08);
}

.posts-section {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  padding: 1.4rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(11, 36, 91, 0.08);
}

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

.post-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(11, 36, 91, 0.08);
  box-shadow: 0 16px 32px rgba(11, 36, 91, 0.08);
}

.post-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(11, 36, 91, 0.05);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.post-card-date {
  margin: 0;
  color: var(--red-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-content p:first-child {
  margin-top: 0;
}

.post-hero-image {
  overflow: hidden;
  border-radius: 24px;
}

.post-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-header {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-header .eyebrow {
  margin-bottom: 0.55rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 0.9rem;
}

.photo-tile {
  display: block;
  grid-column: span 1;
  grid-row: span 2;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(11, 36, 91, 0.06);
  border: 0;
  box-shadow: 0 14px 30px rgba(11, 36, 91, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  padding: 0;
}

.photo-tile-large {
  grid-column: span 2;
  grid-row: span 3;
}

.photo-tile-tall {
  grid-row: span 3;
}

.photo-tile-wide {
  grid-column: span 2;
}

.photo-tile:hover,
.photo-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(11, 36, 91, 0.16);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(11, 36, 91, 0.05);
  border: 1px dashed rgba(11, 36, 91, 0.14);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(7, 20, 51, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox-stage {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.social-link[aria-disabled="true"] {
  opacity: 0.75;
}

.footer-note {
  margin-top: 1.35rem;
  font-size: 0.92rem;
}

.utility-links,
.footer-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0;
}

.utility-link,
.back-link,
.cookie-link {
  border-radius: 999px;
}

.utility-link {
  min-height: 48px;
  padding: 0.75rem 1.15rem;
}

.cookie-reset-button {
  font: inherit;
  cursor: pointer;
}

.footer-link {
  padding: 1rem 1.7rem;
  white-space: nowrap;
}

.content-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  padding: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 243, 255, 0.92));
  border: 1px solid rgba(11, 36, 91, 0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

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

.hero {
  padding: 0.4rem 0 1.8rem;
  border-bottom: 1px solid var(--line);
}

.intro {
  max-width: 50rem;
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

section.content-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

section.content-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.notice,
.meta-card,
.phase,
.risk-table {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), var(--chip));
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  color: var(--text);
}

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

.meta-card {
  padding: 1rem;
  border-radius: 20px;
}

.meta-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--red-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.meta-card span,
.meta-card a {
  color: var(--text);
  line-height: 1.5;
  text-decoration: none;
}

.risk-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.risk-table th,
.risk-table td {
  padding: 0.95rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.risk-table th {
  color: var(--red-500);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.risk-table tr:last-child td {
  border-bottom: 0;
}

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

.phase {
  padding: 1.1rem;
  border-radius: 20px;
}

.phase p,
.small-note {
  margin-top: 0.65rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span {
  color: var(--text);
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(2, 33, 105, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.notice-success {
  background: rgba(37, 167, 92, 0.08);
  border-color: rgba(37, 167, 92, 0.2);
}

.notice-error {
  background: rgba(200, 15, 46, 0.08);
  border-color: rgba(200, 15, 46, 0.18);
}

.form-errors {
  margin: 0;
}

.admin-messages {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-message-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chip);
}

.admin-message-card h3 {
  margin-bottom: 0.6rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-active {
  background: rgba(37, 167, 92, 0.12);
  color: #1f7a46;
}

.status-inactive {
  background: rgba(200, 15, 46, 0.1);
  color: var(--red-700);
}

.admin-action-button[disabled],
.footer-link[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.settings-divider {
  margin: 1.6rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(2, 33, 105, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(2, 33, 105, 0.14);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.cookie-banner,
.cookie-banner * {
  pointer-events: auto;
}

.cookie-copy strong {
  display: block;
  color: var(--text);
}

.cookie-copy p {
  margin: 0.35rem 0 0;
  max-width: 44rem;
  font-size: 0.94rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.cookie-button {
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  position: relative;
  z-index: 3;
}

.cookie-button-secondary {
  background: rgba(2, 33, 105, 0.06);
  color: var(--text);
  border: 1px solid rgba(2, 33, 105, 0.12);
  box-shadow: none;
}

.site-footer {
  margin-top: 1.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.site-footer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.site-footer-link {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.site-footer-disclaimer {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: left;
}

.site-footer-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 720px) {
  .shell,
  .link-shell {
    width: min(94vw, 920px);
    min-height: auto;
  }

  .brand-card,
  .content-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding-right: 0;
  }

  .logo-wrap-home {
    max-width: 280px;
    margin: 0 auto;
  }

  .home-panel {
    padding: 1rem;
  }

  .gallery-header {
    align-items: start;
    flex-direction: column;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 100px;
  }

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

  .photo-tile,
  .photo-tile-large,
  .photo-tile-tall,
  .photo-tile-wide {
    grid-column: span 1;
    grid-row: span 2;
  }

  .photo-tile-large {
    grid-column: span 2;
  }

  .topbar,
  .meta,
  .phase-grid,
  .cookie-banner,
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .featured-link,
  .social-link {
    width: 100%;
  }

  .site-footer-disclaimer {
    text-align: left;
  }

  .site-footer-actions {
    justify-content: flex-start;
  }

  .site-footer-copy {
    text-align: left;
  }
}
