/* ChinVoice — Shutter Call design language */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=Fira+Mono:wght@500&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --charcoal: #1E1C1A;
  --bone: #F4EFE6;
  --orange: #C98A1A;
  --teal: #24355A;
  --clay: #B86B5A;
  --grey: #7E7A74;
  --measure: min(68ch, 100%);
  --section-pad: clamp(5.25rem, 8vw, 7.25rem);
  --header-h: 4.25rem;
  --shadow-card: 0 10px 36px rgba(33, 31, 38, 0.1);
  --shadow-lift: 0 14px 44px rgba(33, 31, 38, 0.14);
  --hairline: 1px solid rgba(33, 31, 38, 0.14);
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'Fira Mono', ui-monospace, monospace;
  --scroll-progress: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.1875rem, 1.05rem + 0.25vw, 1.25rem);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--bone);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Surface system — paired bg + text, never set independently                 */
/* -------------------------------------------------------------------------- */

.surface-bone,
.surface-cream {
  background: var(--bone);
  color: var(--charcoal);
}

.surface-charcoal,
.surface-ink {
  background: var(--charcoal);
  color: var(--bone);
}

.surface-indigo {
  background: var(--teal);
  color: var(--bone);
  position: relative;
}

.surface-mustard {
  background: var(--orange);
  color: var(--charcoal);
}

/* Halftone dot accent on teal surfaces */
.surface-indigo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: radial-gradient(circle, var(--bone) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  z-index: 0;
}

.surface-indigo > * {
  position: relative;
  z-index: 1;
}

/* Links inherit surface text colour */
.surface-bone a,
.surface-cream a,
.surface-charcoal a,
.surface-ink a,
.surface-indigo a {
  color: currentColor;
}

.surface-bone a:hover,
.surface-cream a:hover,
.surface-charcoal a:hover,
.surface-ink a:hover,
.surface-indigo a:hover {
  color: var(--orange);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  filter: brightness(1.06);
}

/* Orange underline behind key words */
.mark-key,
.signal-word,
.hero-tagline .highlight {
  background: linear-gradient(transparent 62%, rgba(232, 93, 42, 0.34) 62%, rgba(232, 93, 42, 0.34) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* -------------------------------------------------------------------------- */
/* Scroll waveform signal line                                                */
/* -------------------------------------------------------------------------- */

.scroll-line {
  position: fixed;
  left: clamp(0.5rem, 1.5vw, 1rem);
  top: var(--header-h);
  width: 3px;
  height: calc(100vh - var(--header-h));
  z-index: 90;
  pointer-events: none;
  transform-origin: top center;
  transform: scaleY(var(--scroll-progress, 0));
  background:
    repeating-linear-gradient(
      180deg,
      var(--orange) 0 3px,
      transparent 3px 7px,
      var(--clay) 7px 9px,
      transparent 9px 14px
    );
  box-shadow: 0 0 12px rgba(232, 93, 42, 0.22);
  border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

.eyebrow,
.dateline,
.card-meta,
.datestamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.card-meta {
  color: var(--orange);
  margin: 0 0 1rem;
}

.dateline,
.datestamp {
  color: var(--grey);
  margin: 0 0 1.5rem;
}

.surface-charcoal .dateline,
.surface-charcoal .datestamp,
.surface-ink .dateline,
.surface-ink .datestamp,
.surface-indigo .dateline,
.surface-indigo .datestamp {
  color: rgba(245, 241, 232, 0.72);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead,
.welcome {
  font-size: 1.08em;
  max-width: var(--measure);
  color: var(--grey);
}

.surface-charcoal .lead,
.surface-charcoal .welcome,
.surface-ink .lead,
.surface-ink .welcome {
  color: rgba(245, 241, 232, 0.82);
}

.prose,
.article-body,
.content-wrap {
  max-width: var(--measure);
}

.prose p,
.article-body p {
  margin-bottom: 1.25rem;
}

.hairline {
  border: none;
  border-top: var(--hairline);
  margin: 2.5rem 0;
}

.surface-charcoal .hairline,
.surface-ink .hairline,
.surface-indigo .hairline {
  border-top-color: rgba(245, 241, 232, 0.16);
}

/* -------------------------------------------------------------------------- */
/* Layout helpers                                                             */
/* -------------------------------------------------------------------------- */

.section {
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2rem);
  position: relative;
}

.section-wide {
  max-width: 1200px;
  margin-inline: auto;
}

.content-wrap,
.page-wrap,
.article-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2rem);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  max-width: var(--measure);
  color: var(--grey);
}

.section-title {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* -------------------------------------------------------------------------- */
/* Header — sticky                                                            */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--hairline);
  backdrop-filter: blur(10px);
}

.site-header.surface-bone,
.site-header.surface-cream {
  background: rgba(245, 241, 232, 0.94);
}

.site-header.surface-charcoal,
.site-header.surface-ink {
  background: rgba(33, 31, 38, 0.94);
  border-bottom-color: rgba(245, 241, 232, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--orange);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-primary,
.btn.btn-primary {
  background: var(--orange);
  color: var(--charcoal);
  border-color: var(--orange);
}

.btn-secondary,
.btn.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: rgba(33, 31, 38, 0.28);
}

.surface-charcoal .btn-secondary,
.surface-ink .btn-secondary,
.surface-indigo .btn-secondary {
  border-color: rgba(245, 241, 232, 0.35);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Hero — "Said Out Loud"                                                     */
/* -------------------------------------------------------------------------- */

.hero-home,
.hero {
  position: relative;
  padding: var(--section-pad) clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  max-width: var(--measure);
}

.hero-image-wrap,
.hero-image {
  position: relative;
  border: 1px solid rgba(245, 241, 232, 0.18);
  box-shadow: var(--shadow-lift);
}

.hero-image-wrap img,
.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-waveform {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(280px, 55%);
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--orange) 0 6px,
      transparent 6px 10px,
      var(--clay) 10px 14px,
      transparent 14px 18px
    );
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------------------- */
/* Featured article card                                                      */
/* -------------------------------------------------------------------------- */

.featured-card {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
  border: var(--hairline);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

.featured-card img,
.featured-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(33, 31, 38, 0.1);
}

.featured-card-body h2 {
  margin-top: 0.35rem;
}

.featured-card .card-meta {
  margin-bottom: 0.65rem;
}

/* -------------------------------------------------------------------------- */
/* About teaser                                                               */
/* -------------------------------------------------------------------------- */

.about-teaser,
.about-strip {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

@media (min-width: 640px) {
  .about-teaser,
  .about-strip {
    grid-template-columns: minmax(140px, 200px) 1fr;
  }
}

.about-teaser img,
.about-strip img,
.portrait {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(33, 31, 38, 0.12);
  box-shadow: var(--shadow-card);
}

/* -------------------------------------------------------------------------- */
/* Post cards & journal cards                                                 */
/* -------------------------------------------------------------------------- */

.post-feed,
.card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 640px) {
  .post-feed.two-up,
  .card-grid.two-up {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .post-feed,
  .card-grid.three-up {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card,
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
  border: var(--hairline);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.post-card:hover,
.card:hover {
  filter: brightness(1.02);
  transform: translateY(-2px);
}

.post-card img,
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(33, 31, 38, 0.08);
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.journal-card {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: var(--hairline);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: filter 0.2s ease;
}

.journal-card:hover {
  filter: brightness(1.02);
}

@media (min-width: 640px) {
  .journal-card {
    grid-template-columns: minmax(160px, 220px) 1fr;
    align-items: start;
  }
}

.journal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(33, 31, 38, 0.08);
}

.journal-card.featured {
  border-color: rgba(232, 93, 42, 0.35);
  box-shadow: var(--shadow-lift);
}

/* -------------------------------------------------------------------------- */
/* Article layout                                                             */
/* -------------------------------------------------------------------------- */

.article-header {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.article-photo,
.inline-photo {
  margin: 2rem 0;
  border: 1px solid rgba(33, 31, 38, 0.12);
  box-shadow: var(--shadow-card);
}

.article-photo img,
.inline-photo img {
  width: 100%;
}

.article-photo figcaption,
.inline-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding: 0.75rem 0 0;
}

.surface-charcoal .article-photo figcaption,
.surface-ink .article-photo figcaption,
.surface-indigo .article-photo figcaption {
  color: rgba(245, 241, 232, 0.68);
}

.more-strip {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  border-top: var(--hairline);
}

.more-strip-inner {
  max-width: 1200px;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Forms — light surfaces only                                                */
/* -------------------------------------------------------------------------- */

.contact-form,
form[action='/send.php'] {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid rgba(126, 122, 116, 0.45);
  background: var(--bone);
  color: var(--charcoal);
}

.form-group textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 36rem;
}

.form-check input[type='checkbox'] {
  width: auto;
  flex-shrink: 0;
  margin-top: 0.3rem;
  accent-color: var(--orange);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-msg {
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(31, 78, 74, 0.35);
  background: rgba(31, 78, 74, 0.08);
  max-width: 36rem;
}

.form-msg.error {
  border-color: rgba(232, 93, 42, 0.45);
  background: rgba(232, 93, 42, 0.08);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: var(--hairline);
  padding: clamp(2.25rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  margin-top: clamp(2rem, 4vw, var(--section-pad));
}

.site-shutter-call .site-footer.surface-ink,
.site-shutter-call .site-footer {
  background: var(--charcoal);
  color: var(--bone);
  border-top-color: rgba(245, 241, 232, 0.12);
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-inner p {
  margin: 0 0 0.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: var(--grey);
  max-width: var(--measure);
}

.site-footer.surface-charcoal .footer-disclaimer,
.site-footer.surface-ink .footer-disclaimer {
  color: rgba(245, 241, 232, 0.68);
}

.footer-links a,
.footer-address a {
  color: currentColor;
  text-decoration-color: var(--orange);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  opacity: 0.78;
  margin-top: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Cookie banner                                                              */
/* -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 1.15rem clamp(1.25rem, 4vw, 2rem);
  background: var(--charcoal);
  color: var(--bone);
  border-top: 1px solid rgba(232, 93, 42, 0.35);
  box-shadow: 0 -10px 36px rgba(33, 31, 38, 0.22);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-shutter-call .cookie-inner.surface-cream {
  background: transparent;
  color: inherit;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 62ch;
}

.cookie-inner a {
  color: var(--clay);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-panel {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 241, 232, 0.14);
  width: 100%;
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-panel label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.875rem;
}

.cookie-panel input[type='checkbox'] {
  accent-color: var(--orange);
}

/* -------------------------------------------------------------------------- */
/* Reveal animations — transform only, text always visible                    */
/* -------------------------------------------------------------------------- */

.js .reveal {
  transform: translateY(16px);
  transition: transform 0.55s ease;
}

.js .reveal.is-visible {
  transform: none;
}

/* -------------------------------------------------------------------------- */
/* 404 & utilities                                                            */
/* -------------------------------------------------------------------------- */

.page-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.page-404 .content-wrap {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.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;
}

/* -------------------------------------------------------------------------- */
/* Site scope — Kopi Broadcast body class                                     */
/* -------------------------------------------------------------------------- */

.site-shutter-call {
  background: var(--bone);
  color: var(--charcoal);
}

.site-shutter-call .page-404.surface-cream {
  background: var(--bone);
  color: var(--charcoal);
}

/* -------------------------------------------------------------------------- */
/* Reduced motion & focus                                                       */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-line {
    display: none;
  }

  .js .reveal {
    transform: none;
    transition: none;
  }

  .post-card:hover,
  .card:hover,
  .journal-card:hover {
    transform: none;
  }

  .btn,
  .post-card,
  .card,
  .journal-card {
    transition: none;
  }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* --- performance & scroll --- */
html { scroll-behavior: auto; }

.site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header.surface-parchment,
.site-header.surface-bone,
.site-header.surface-cream {
  background: rgba(241, 233, 217, 0.97) !important;
}

.scroll-line {
  width: 2px;
  box-shadow: none !important;
  will-change: transform;
  transform: scaleY(0);
  transform-origin: top center;
  opacity: 0.75;
}

/* --- buttons: white label on amber/coral fill only --- */
.btn-primary,
.btn.btn-primary {
  background: var(--lamp-amber, var(--orange)) !important;
  border-color: var(--lamp-amber, var(--orange)) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  filter: none;
  background: #c94e2a !important;
  border-color: #c94e2a !important;
  color: #fff !important;
}

.surface-coral .btn-primary,
.surface-amber .btn-primary,
.surface-mustard .btn-primary,
.surface-orange .btn-primary {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
}

/* --- images: keep article & hero photos modest --- */
.hero-image-wrap {
  max-width: 460px;
  margin-inline: auto;
  border-radius: 4px;
  overflow: hidden;
}

.hero-image-wrap img {
  max-height: 300px;
}

.featured-card img {
  max-height: 200px;
  border-radius: 4px;
}

.about-strip img,
.portrait {
  max-width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.article-photo,
.inline-photo {
  margin-inline: auto;
  max-width: min(480px, 100%);
  border-radius: 4px;
  overflow: hidden;
}

.article-photo img,
.inline-photo img {
  max-height: 280px;
  object-fit: cover;
}

.post-card,
.journal-card {
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.journal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 21, 32, 0.12);
}

.post-card img,
.journal-card img {
  max-height: 160px;
  object-fit: cover;
}

.featured-card {
  border-radius: 6px;
  overflow: hidden;
}

/* --- contact form --- */
.contact-form {
  margin-top: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 21, 32, 0.1);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(26, 21, 32, 0.07);
}

.form-group:not(.form-consent) label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 90, 58, 0.18);
}

.form-consent {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: rgba(241, 233, 217, 0.85);
  border: 1px solid rgba(212, 90, 58, 0.28);
  border-radius: 4px;
}

.form-consent-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}

.form-consent-label input[type='checkbox'] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--lamp-amber, var(--orange));
  cursor: pointer;
}

.form-consent-text {
  flex: 1 1 auto;
  min-width: 0;
}

.form-actions {
  margin-top: 0.5rem;
}

/* --- footer grid --- */
.site-footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(212, 90, 58, 0.28);
  background:
    radial-gradient(680px 260px at 0% 0%, rgba(212, 90, 58, 0.12), transparent 60%),
    var(--ink, var(--charcoal));
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1.15fr 0.75fr;
    align-items: start;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 0.35rem;
}

.footer-byline {
  margin: 0 0 0.65rem;
  color: var(--lamp-amber, var(--orange));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-note {
  margin: 0;
  opacity: 0.72;
  font-size: 0.9rem;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lamp-amber, var(--orange));
  margin: 0 0 0.65rem;
}

.footer-address {
  margin: 0;
  opacity: 0.85;
  font-size: 0.92rem;
}

.footer-address a {
  text-decoration-color: var(--lamp-amber, var(--orange));
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
  opacity: 0.88;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--lamp-amber, var(--orange));
  opacity: 1;
}

.footer-disclaimer {
  font-size: 0.84rem;
  max-width: 72ch;
  opacity: 0.62;
  margin: 0 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 233, 217, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--lamp-amber, var(--orange));
}

@media (prefers-reduced-motion: reduce) {
  .post-card:hover,
  .journal-card:hover {
    transform: none;
  }
}
