@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600&display=swap');

/* ── Tokens ── */
:root {
  /* Tints & shades */
  --color-lightest:    #d4dde3;
  --color-light:       #a3b4bf;
  --color-mid-light:   #718d9b;
  --color-base:        #475a67;
  --color-dark:        #2e3d47;
  --color-darkest:     #172028;

  /* Neutrals */
  --color-warm-white:  #f0ece8;
  --color-cool-mist:   #dce4e8;
  --color-slate-grey:  #8a8f92;
  --color-charcoal:    #3a3f42;
  --color-near-black:  #1a1f22;

  /* Accents */
  --color-accent-warm: #c4855a;
  --color-accent-cool: #5aacb8;
  --color-complement:  #67533f;
  --color-analogous-1: #3d6267;
  --color-analogous-2: #47506a;
}

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

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ── Base ── */
body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
  color: var(--color-light);
  background: var(--color-near-black);
}

/* ── Sleeve ── */
.sleeve {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

/* ── Film strips ── */
.film_strip {
  position: fixed;
  left: 0;
  right: 0;
  height: 75px;
  z-index: 10;
  background: url('/media/film.png') repeat-x center / auto 75px;
}

.film_strip_top    { top: 0;    background-position-y: top; }
.film_strip_bottom { bottom: 0; background-position-y: bottom; transform: scaleY(-1); }

/* ── Header ── */
header {
  height: 100px;
  position: fixed;
  top: 75px; left: 0; right: 0;
  z-index: 11;
  background: #000;
}

header .sleeve {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #000 url('/media/onedcc.png') no-repeat right center / auto 100%;
}

/* ── Burger ── */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 50px;
  height: 72px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0.15rem;
}

.burger span {
  display: block;
  width: 30px;
  height: 2.5px;
  background: var(--color-accent-warm);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav menu ── */
.nav_menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  z-index: 9;
  background: var(--color-analogous-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 4px 8px 24px rgb(0 0 0 / 0.5);
  border-radius: 0 0 12px 12px;
}

.nav_menu a {
  display: block;
  color: var(--color-light);
  text-decoration: none;
  padding: 0.875rem 1.25rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav_menu a:hover {
  color: var(--color-warm-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav_menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav_group_label {
  display: block;
  padding: 0.875rem 1.25rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
}

.nav_children a {
  padding-left: 2rem;
  color: var(--color-mid-light);
}

.nav_children a:hover {
  color: var(--color-warm-white);
}

/* ── Logo ── */
header a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.logo_sub {
  color: #fff;
}

.logo_name {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent-warm);
}

/* ── Banner ── */
.banner {
  position: relative;
  z-index: 9;
  margin-top: 175px;
  padding: 0;
  background-color: var(--color-dark);
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.6);
}

.banner::before {
  content: '';
  position: absolute;
  inset: -30px;
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.5;
}

.banner .sleeve {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 1.15;
  height: 100%;
  max-width: 1580px;
  padding: 0;
  margin-top: 0;
  background-image: var(--banner-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Main ── */
main {
  position: relative;
  z-index: 8;
  margin-top: 0;
}

main.no_banner {
  margin-top: 175px;
}

main > .sleeve {
  background: var(--color-dark);
  border-radius: 0 0 12px 12px;
}

footer .sleeve {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

/* ── Social icons ── */
.social_icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social_icons a { display: inline-flex; }

.social_icons img {
  transition: opacity 0.2s ease;
}

.social_icons a:hover img { opacity: 0.7; }

/* ── Footer nav ── */
.footer_nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
}

.footer_nav a {
  color: var(--color-accent-cool);
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s ease;
}

.footer_nav a:hover {
  color: var(--color-warm-white);
}

/* ── Sub footer ── */
.sub_footer {
  position: relative;
  z-index: 7;
  text-align: left;
  font-size: inherit;
  margin-bottom: 75px;
}

.sub_footer .sleeve { padding-top: 0; }

.sub_footer a {
  color: var(--color-accent-warm);
  text-decoration: none;
}

footer .sleeve > *:first-child { margin-top: 0; }
footer .sleeve > *:last-child  { margin-bottom: 0; }

.footer_col {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.footer_col { padding-top: 0; }
.footer_col:nth-child(1) { padding-left: 0; }
.footer_col:nth-child(2), .footer_col:nth-child(3) { padding-top: 0; }
.footer_col:nth-child(3) { padding-right: 0; }
.footer_col:nth-child(3) p:first-child { margin-bottom: 0.75rem; }

.footer_col:nth-child(1),
.footer_col:nth-child(2) {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  body { font-size: 1rem; }

  .nav_menu { width: 100%; }

  .banner .sleeve {
    width: calc(100% + 80px);
    max-width: none;
    margin-left: -40px;
  }


  footer .sleeve {
    grid-template-columns: 1fr;
  }

  .footer_col {
    padding: 0 0 clamp(1.25rem, 3vw, 2.5rem);
  }

  .footer_col:nth-child(3) {
    text-align: center;
  }

  .footer_col:nth-child(3) .social_icons {
    justify-content: center;
  }

  .sub_footer {
    text-align: center;
  }

  .footer_col:nth-child(1),
  .footer_col:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .img_left,
  .img_right {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 7;
  margin-top: 0;
  text-align: center;
  font-size: 0.8rem;
}

footer p { margin: 0; }
footer p + p { margin-top: 0.35rem; }
footer p:first-child { font-weight: 700; font-size: 0.9rem; color: var(--color-accent-warm); }

/* ── Home hero ── */
.hero_section {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-darkest);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
  margin-left: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
  margin-right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
}

.hero_section::before {
  content: '';
  position: absolute;
  inset: -30px;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.25;
  z-index: 0;
}

.hero_section > * {
  position: relative;
  z-index: 1;
}

.hero_label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-warm);
}

.hero_grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  height: 480px;
}

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

.hero_stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.hero_card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: var(--color-dark);
  display: block;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.7);
}

.hero_card_no_image {
  background: var(--color-darkest);
}

.hero_card_bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.hero_card:hover .hero_card_bg {
  transform: scale(1.04);
}

.hero_card_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%);
}

.hero_card_body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero_card_body time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero_card_main .hero_card_body h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
}

.hero_card_main .hero_card_body p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.hero_card_side .hero_card_body h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero_grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero_card_main {
    aspect-ratio: 16 / 9;
  }

  .hero_stack {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .hero_card_side {
    aspect-ratio: 4 / 3;
  }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: var(--color-accent-cool);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-warm-white);
}

.breadcrumb span {
  color: var(--color-mid-light);
}

.breadcrumb_sep {
  color: var(--color-slate-grey);
}

.breadcrumb_back {
  font-size: 1rem;
  color: var(--color-accent-cool);
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s ease;
}

.breadcrumb_back:hover {
  color: var(--color-warm-white);
}

/* ── Article grid ── */
.article_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.article_card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-dark);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.6);
}

.article_card_no_image {
  background: var(--color-darkest);
}

.article_card_bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.article_card:hover .article_card_bg {
  transform: scale(1.04);
}

.article_card_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
}

.article_card time {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.article_body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article_body h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.article_body p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 768px) {
  .article_list {
    grid-template-columns: 1fr;
  }
}

/* ── Contact form ── */
.contact_form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
  margin-top: 1.5rem;
}

.form_row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form_row label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-light);
}

.form_row label span {
  color: var(--color-accent-warm);
}

.contact_form input,
.contact_form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--color-warm-white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.contact_form input:focus,
.contact_form textarea:focus {
  outline: none;
  border-color: var(--color-accent-cool);
  background: rgba(255, 255, 255, 0.09);
}

.contact_form textarea {
  resize: vertical;
  min-height: 140px;
}

.form_submit {
  align-self: flex-start;
  background: var(--color-accent-warm);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 2rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.form_submit:hover {
  background: var(--color-complement);
  transform: translateY(-1px);
}

.form_success,
.form_error {
  border-radius: 6px;
  padding: 0.875rem 1.25rem;
  margin-top: 0.5rem;
}

.form_success {
  background: rgba(90, 172, 184, 0.15);
  border: 1px solid var(--color-accent-cool);
  color: var(--color-accent-cool);
}

.form_error {
  background: rgba(196, 133, 90, 0.15);
  border: 1px solid var(--color-accent-warm);
  color: var(--color-accent-warm);
}

.form_success p,
.form_error p {
  margin: 0;
}

/* ── Content images ── */
.img_left {
  float: left;
  margin: 0 20px 20px 0;
  border-radius: 8px;
  box-shadow: 4px 4px 16px rgb(0 0 0 / 0.5);
}
.img_right {
  float: right;
  margin: 0 0 20px 20px;
  border-radius: 8px;
  box-shadow: 4px 4px 16px rgb(0 0 0 / 0.5);
}
.img_full {
  max-width: 100%;
  height: auto;
  margin: 0 0 20px 0;
}
