@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=Martian+Mono:wght@500&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --deep-indigo: #131A2E;
  --night-indigo: #1E2740;
  --linen: #EFE9DD;
  --amber: #E8A64B;
  --plum: #7C5C8A;
  --steel: #77808F;
  --measure: min(42rem, 100%);
  --section-pad: clamp(3rem, 8vw, 7.5rem);
  --transition: 0.45s ease;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { opacity: 0.85; }

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }

p { margin: 0 0 1.25rem; }

.surface-linen { background: var(--linen); color: var(--deep-indigo); }
.surface-nightindigo { background: var(--night-indigo); color: var(--linen); }
.surface-indigo { background: var(--deep-indigo); color: var(--linen); }
.surface-amber { background: var(--amber); color: var(--deep-indigo); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(239, 233, 221, 0.12);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-logo span { color: var(--amber); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--amber); text-decoration: underline; }

.current-line {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  pointer-events: none;
  z-index: 50;
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .current-line { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

.js .reveal {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: var(--section-pad) 1.5rem;
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.surface-linen .eyebrow { color: var(--plum); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Martian Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition);
}

.btn:hover { filter: brightness(1.08); }

.btn-primary { background: var(--amber); color: var(--deep-indigo); }
.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--deep-indigo) 0%, rgba(19, 26, 46, 0.55) 55%, rgba(19, 26, 46, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
  width: 100%;
}

.hero h1 .highlight { color: var(--amber); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid rgba(239, 233, 221, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.surface-linen .card { border-color: rgba(19, 26, 46, 0.1); }

.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.card-thumb {
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.card-date {
  font-family: 'Martian Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.surface-linen .card-date { color: var(--plum); }

.card h2, .card h3 { font-size: 1.25rem; }

.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
}

.surface-linen .card .card-link { color: var(--plum); }

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(19, 26, 46, 0.12);
  overflow: hidden;
}

@media (min-width: 48rem) {
  .featured-card { grid-template-columns: 1.1fr 1fr; }
}

.featured-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: 100%; }

.featured-card-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

.about-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 40rem) {
  .about-strip { grid-template-columns: 10rem 1fr; }
}

.about-strip img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--amber);
}

.article-wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

.article-meta {
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(239, 233, 221, 0.15);
}

.surface-linen .article-meta {
  color: var(--plum);
  border-color: rgba(19, 26, 46, 0.12);
}

.article-photo {
  margin: 2rem 0;
  border: 1px solid rgba(239, 233, 221, 0.2);
  box-shadow: 0 0 0 1px rgba(232, 166, 75, 0.15), 0 24px 48px rgba(0, 0, 0, 0.25);
}

.surface-linen .article-photo {
  border-color: rgba(19, 26, 46, 0.1);
  box-shadow: 0 16px 40px rgba(19, 26, 46, 0.08);
}

.article-photo figcaption {
  font-family: 'Martian Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  color: var(--steel);
  border-top: 1px solid rgba(239, 233, 221, 0.1);
}

.pull-quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--amber);
  color: var(--amber);
}

.surface-linen .pull-quote { color: var(--plum); border-color: var(--plum); }

.more-strip {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 233, 221, 0.15);
  text-align: center;
}

.surface-linen .more-strip { border-color: rgba(19, 26, 46, 0.12); }

.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(239, 233, 221, 0.1);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-disclaimer {
  color: var(--steel);
  font-size: 0.85rem;
  max-width: 42rem;
}

.surface-linen .footer-disclaimer { color: var(--plum); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Martian Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form {
  max-width: 32rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-family: 'Martian Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  border: 1px solid rgba(19, 26, 46, 0.2);
  background: #fff;
  color: var(--deep-indigo);
}

.contact-form textarea { min-height: 8rem; resize: vertical; }

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Source Serif 4', serif;
}

.checkbox-row input { width: auto; margin-top: 0.25rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.privacy-content h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
}

.privacy-content h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(239, 233, 221, 0.15);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .cookie-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-customise {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 233, 221, 0.12);
}

.cookie-customise label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.lamp-glow {
  position: relative;
}

.lamp-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(232, 166, 75, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wave-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.06;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
}
