/* WiM — light redesign, flexbox, original black/white vibe */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --surface: #f7f5f2;
  --text: #1a1a1a;
  --text-muted: #555;
  --invert: #f7f5f2;
  --accent: #c45c26;
  --accent-soft: #e8d5c4;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.1);
  --font-display: "Dosis", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #9a3f12;
}

.btn,
.sqs-block-button-element,
a.sqs-block-button-element--large {
  display: inline-block;
  margin: 0.35rem 0;
  padding: 0.65rem 1.15rem;
  background: var(--bg);
  color: var(--invert) !important;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  border: 1px solid var(--bg);
  transition: background 0.15s, color 0.15s;
}

.btn:hover,
.sqs-block-button-element:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- Header / Nav ----- */
.site-header {
  background: var(--bg);
  color: var(--invert);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--invert);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--invert);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: rgba(247, 245, 242, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.nav-item.is-active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ----- Main ----- */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--bg);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-content .content-block {
  margin: 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 1.5rem 0 0.6rem;
}

.page-content p {
  margin: 0 0 0.85rem;
}

.page-content .text-align-center {
  text-align: center;
}

.page-content .sqs-col-6,
.page-content .col {
  /* flatten old grid remnants */
}

/* two-column feel for paired blocks on home */
.page-content:has(> .content-block:nth-child(3)) {
  /* keep simple stack; styled via children */
}

.content-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.content-columns > * {
  flex: 1 1 280px;
}

/* Home hero (local archive photo — Squarespace CDN 404) */
.hero-band {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
  margin: -0.5rem 0 0.5rem;
  position: relative;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.15));
}

.hero-kicker {
  position: relative;
  margin: 0;
  color: #f7f5f2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 36rem;
}

/* Gallery */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-item {
  flex: 1 1 200px;
  margin: 0;
  background: var(--bg-elevated);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Blog list (r-template_blog) */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--accent);
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.blog-title a {
  color: var(--bg);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--accent);
}

.blog-preview {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.blog-preview p {
  margin: 0;
}

/* Article shell */
.romlicontainer {
  max-width: 100%;
}

/* romlidata / showLinks on homepage */
.romlidata {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg);
  color: rgba(247, 245, 242, 0.75);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

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

.footer-social a {
  color: var(--invert);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-social a:hover {
  color: var(--accent-soft);
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta a {
  color: var(--accent-soft);
}

.romlifooter {
  margin-top: 1rem;
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
}

.contact-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-dark);
  background: #fff;
  font: inherit;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.75rem;
  cursor: pointer;
}

/* Legacy cleanup helpers */
.legacy-content table {
  width: 100%;
  border-collapse: collapse;
}

.legacy-content td {
  vertical-align: top;
  padding: 0.35rem;
}

/* Home intro emphasis */
body.home .page-header h1,
.site-main .page-header h1 {
  /* shared */
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header,
.page-content > .content-block:first-child {
  animation: fade-up 0.55s ease both;
}

.page-content > .content-block:nth-child(2) {
  animation: fade-up 0.55s ease 0.08s both;
}

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

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

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .site-logo-text {
    font-size: 1.25rem;
  }
}
