/* =========================================================================
   Tropic Now — independent Cairns & Tropical North Queensland news masthead
   Design system: regional-newspaper editorial
   Warm paper ground · deep-teal ink · ocean-blue + coral + sunshine accents
   Playfair Display (headline serif) · Libre Franklin (body sans)
   Visuals are CSS + inline SVG only — no raster, no external images
   ========================================================================= */

:root {
  /* Palette */
  --paper:      #f6f2e9;   /* warm newsprint ground */
  --paper-2:    #efe9da;   /* deeper panel */
  --paper-3:    #e7dfcc;   /* deepest neutral panel */
  --ink:        #0e2a2c;   /* deep teal-black headline ink */
  --ink-soft:   #2f4a4b;   /* body text */
  --ink-faint:  #6c7e78;   /* meta / captions */
  --hair:       #d3cbb6;   /* hairline rules */
  --hair-soft:  #e0d8c4;

  --teal:       #0e6e72;   /* masthead teal */
  --teal-dk:    #0a4f52;
  --ocean:      #145c8c;   /* ocean blue */
  --ocean-dk:   #0e4368;
  --coral:      #e2553c;   /* warm coral accent */
  --coral-dk:   #c33f29;
  --sun:        #f2a93b;   /* sunshine accent */
  --sun-dk:     #d98c1c;
  --leaf:       #3f8f5a;   /* environment green */

  /* Category colors */
  --cat-business:  var(--ocean);
  --cat-lifestyle: var(--coral);
  --cat-food:      var(--coral-dk);
  --cat-tourism:   var(--teal);
  --cat-environ:   var(--leaf);
  --cat-announce:  var(--sun-dk);
  --cat-guide:     var(--teal-dk);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 1280px;
  --gutter: clamp(1.1rem, 4.5vw, 4rem);
  --space: clamp(3rem, 7vw, 6rem);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0375rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Newsprint grain — CSS-only layered dot texture, no images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(14,42,44,.022) 0 1px, transparent 1px),
    radial-gradient(circle at 64% 70%, rgba(14,42,44,.018) 0 1px, transparent 1px),
    radial-gradient(circle at 86% 36%, rgba(14,42,44,.02) 0 1px, transparent 1px);
  background-size: 6px 6px, 10px 10px, 8px 8px;
}
body > * { position: relative; z-index: 1; }

/* ---- Accessibility helpers ----------------------------------------------- */
.skip-link {
  position: absolute;
  left: .75rem; top: -3rem;
  background: var(--teal);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  z-index: 200;
  transition: top .18s ease;
}
.skip-link:focus { top: .75rem; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.flow > * + * { margin-top: 1.15em; }
.section { padding-block: var(--space); }
.hair { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -.01em;
}
p  { margin: 0; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-dk);
  display: inline-flex;
  align-items: center;
  gap: .65em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--coral);
  display: inline-block;
}

/* Category tag / label */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: .28em .6em;
  border-radius: 3px;
  line-height: 1.2;
}
.tag--business  { background: var(--cat-business); }
.tag--lifestyle { background: var(--cat-lifestyle); }
.tag--food      { background: var(--cat-food); }
.tag--tourism   { background: var(--cat-tourism); }
.tag--environ   { background: var(--cat-environ); }
.tag--announce  { background: var(--cat-announce); }
.tag--guide     { background: var(--cat-guide); }

.byline {
  font-size: .82rem;
  color: var(--ink-faint);
  letter-spacing: .01em;
}
.byline time { font-variant-numeric: tabular-nums; }

/* Editorial inline link */
.tlink {
  color: var(--ocean-dk);
  text-decoration: none;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 100% 1px;
  background-position: 0 1.12em;
  background-repeat: no-repeat;
  font-weight: 600;
  transition: background-size .18s ease, color .18s ease;
}
.tlink:hover { color: var(--coral-dk); background-size: 100% 2px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: .8em 1.4em;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--accent { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn--accent:hover { background: var(--coral-dk); border-color: var(--coral-dk); color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   HEADER / MASTHEAD
   ========================================================================= */
.topbar {
  background: var(--teal-dk);
  color: #e8f0ee;
  font-size: .76rem;
  letter-spacing: .04em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--sun); }
.topbar .date { color: #bcd2cd; font-variant-numeric: tabular-nums; }

.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-block: clamp(1.4rem, 4vw, 2.6rem);
  gap: .35rem;
}
.masthead .kicker {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--coral-dk);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
}
.wordmark .now { color: var(--coral); font-style: italic; }
.masthead .strapline {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Primary nav strip */
.nav-strip { background: var(--ink); }
.nav-strip .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cfe0dc;
  text-decoration: none;
  padding: 1rem .95rem;
  position: relative;
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: #fff; background: var(--teal-dk); }
.nav-links a[aria-current="page"] { color: var(--sun); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .95rem; right: .95rem; bottom: .55rem;
  height: 2px;
  background: var(--coral);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .9rem;
  cursor: pointer;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: #fff;
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================================
   HOMEPAGE — news grid
   ========================================================================= */
.front { padding-block: clamp(1.6rem, 4vw, 3rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .6rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: -.01em;
}
.section-head .more {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ocean-dk);
  text-decoration: none;
}
.section-head .more:hover { color: var(--coral-dk); }

/* Lead grid: hero story + secondary stack */
.lead-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

/* Article card */
.card { display: block; text-decoration: none; color: inherit; }
.card .cover { margin-bottom: .9rem; }
.card .tag { margin-bottom: .55rem; }
.card h3 {
  font-size: 1.25rem;
  line-height: 1.12;
  transition: color .16s ease;
}
.card:hover h3 { color: var(--coral-dk); }
.card p { color: var(--ink-soft); font-size: .95rem; margin-top: .5rem; }
.card .byline { margin-top: .55rem; }

/* Hero lead card */
.lead-card h2.lead-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: .7rem 0 .6rem;
  transition: color .16s ease;
}
.lead-card:hover h2.lead-title { color: var(--coral-dk); }
.lead-card .standfirst {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.42;
  font-style: italic;
  color: var(--ink);
}

/* Secondary stack */
.secondary { display: flex; flex-direction: column; gap: 1.4rem; }
.secondary .card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1.4rem;
}
.secondary .card:last-child { border-bottom: 0; padding-bottom: 0; }
.secondary .card .cover { margin-bottom: 0; }
.secondary .card h3 { font-size: 1.02rem; line-height: 1.15; }
.secondary .card .tag { font-size: .58rem; margin-bottom: .35rem; }

/* Category strip — 3/4 col grid of cards */
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.strip-grid .card {
  border-top: 3px solid var(--ink);
  padding-top: .9rem;
}

/* =========================================================================
   COVER BLOCKS — CSS gradient + inline SVG, no photos
   ========================================================================= */
.cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(14,42,44,.06);
}
.cover svg { width: 100%; height: 100%; }
.cover--sm { aspect-ratio: 1 / 1; border-radius: 6px; }
.cover .cover-label {
  position: absolute;
  left: .7rem; bottom: .7rem;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14,42,44,.78);
  padding: .26em .55em;
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

/* =========================================================================
   ARTICLE PAGE
   ========================================================================= */
.article { padding-block: clamp(2rem, 5vw, 4rem); }
.article-wrap { max-width: 760px; margin-inline: auto; }
.article .tag { margin-bottom: 1.1rem; }
.article h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.article .standfirst {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.article .byline {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding-block: .8rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.article-cover { margin-bottom: 1.8rem; }
.article-cover .cover { aspect-ratio: 16 / 8; border-radius: 10px; }

.article-body p { margin-bottom: 1.15rem; font-size: 1.075rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 900;
  float: left;
  font-size: 3.6rem;
  line-height: .78;
  padding: .1em .12em 0 0;
  color: var(--coral);
}
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2rem 0 .8rem;
}
.article-body blockquote {
  margin: 1.8rem 0;
  padding: .4rem 0 .4rem 1.4rem;
  border-left: 4px solid var(--sun);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: 2.4rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ocean-dk);
  text-decoration: none;
}
.back-link:hover { color: var(--coral-dk); }
.back-link .arrow { transition: transform .18s ease; }
.back-link:hover .arrow { transform: translateX(-3px); }

/* =========================================================================
   FEED / HUB & CATEGORY LIST
   ========================================================================= */
.page-head {
  padding-block: clamp(2rem, 5vw, 3.4rem);
  border-bottom: 3px double var(--ink);
}
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.page-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink);
  margin-top: .9rem;
  max-width: 60ch;
}

.feed { padding-block: clamp(2rem, 4vw, 3rem); }
.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.feed-item:first-child { padding-top: .6rem; }
.feed-item .cover { aspect-ratio: 4 / 3; }
.feed-item .tag { margin-bottom: .55rem; }
.feed-item h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.1;
}
.feed-item h2 a { text-decoration: none; color: inherit; transition: color .16s ease; }
.feed-item h2 a:hover { color: var(--coral-dk); }
.feed-item p { margin-top: .6rem; color: var(--ink-soft); }
.feed-item .byline { margin-top: .7rem; }

/* =========================================================================
   GENERIC CONTENT PAGES (about / contact)
   ========================================================================= */
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1rem; font-size: 1.075rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2rem 0 .8rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .5rem; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
}
.panel {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.panel .field { margin-bottom: .9rem; }
.panel label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .35rem;
}
.panel input, .panel textarea, .panel select {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  padding: .7rem .8rem;
  border: 1.5px solid var(--hair);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.panel input:focus, .panel textarea:focus, .panel select:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { margin-bottom: 1rem; }
.contact-lines .k {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dk);
  display: block;
  margin-bottom: .15rem;
}
.contact-lines .v { font-size: 1.1rem; color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: #c4d4d0;
  margin-top: var(--space);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer .wordmark-sm {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
}
.site-footer .wordmark-sm .now { color: var(--coral); font-style: italic; }
.site-footer p { color: #9fb4af; font-size: .92rem; margin-top: .7rem; max-width: 36ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #c4d4d0; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #8aa19c;
}

/* =========================================================================
   REVEAL ANIMATION (page load)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; } .d4 { animation-delay: .32s; } .d5 { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 880px) {
  .lead-grid { grid-template-columns: 1fr; }
  .secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
  .secondary .card { border-bottom: 1px solid var(--hair); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feed-item { grid-template-columns: 160px 1fr; }
}

@media (max-width: 720px) {
  .nav-strip .nav { position: relative; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    z-index: 50;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 30rem; }
  .nav-links a { padding: .9rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .secondary { grid-template-columns: 1fr; }
  .secondary .card { grid-template-columns: 84px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-item .cover { aspect-ratio: 16 / 9; max-width: 320px; }
}
