/* ===================================================================
   outdoorcalc.com.au — core stylesheet
   Design: Australian utilitarian. Terracotta/ochre accent on warm
   off-white with charcoal ink. Fraunces display, Inter Tight body.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,400&family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-faint: #78716c;
  --paper: #faf7f2;
  --paper-warm: #f1ebe0;
  --rule: #d6cfc2;
  --ochre: #c8601f;
  --ochre-deep: #9e4a14;
  --ochre-soft: #efd9c2;
  --leaf: #3d5a3a;
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1000;
}

/* ============================= TYPOGRAPHY ============================= */

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { max-width: 65ch; }
p + p { margin-top: 1em; }

a {
  color: var(--ochre-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--ochre); }

strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--ochre); color: var(--paper); }

/* ============================= LAYOUT ============================= */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

main {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

/* ============================= NAV ============================= */

.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
  background: rgba(250, 247, 242, 0.92);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.brand__dot {
  color: var(--ochre);
  font-size: 1.5em;
  line-height: 0.5;
}
.brand__tld {
  font-size: 0.7em;
  color: var(--ink-faint);
  font-weight: 500;
  font-family: 'Inter Tight', sans-serif;
  letter-spacing: 0;
}

.site-nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  align-items: center;
}
.site-nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.site-nav__links a:hover,
.site-nav__links a.current {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-nav__links { display: none; }
  .site-nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--rule);
    gap: 1rem;
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
}

/* ============================= HERO ============================= */

.hero {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--ochre);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--ochre-deep);
  font-weight: 400;
}

.hero__lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  max-width: 48ch;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================= BUTTONS ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--ink);
  color: var(--paper);
}
.btn:hover {
  background: var(--ochre-deep);
  border-color: var(--ochre-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================= CALCULATOR GRID ============================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: clamp(2rem, 5vw, 4rem);
}
.section-head h2 { margin: 0; }
.section-head__count {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 1rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.calc-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}
.calc-card::after {
  content: "→";
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.4rem;
  color: var(--ink-faint);
  transition: all 0.2s ease;
  font-family: 'Inter Tight', sans-serif;
}
.calc-card:hover {
  border-color: var(--ochre);
  background: var(--ochre-soft);
  transform: translateY(-2px);
}
.calc-card:hover::after {
  color: var(--ochre-deep);
  transform: translateX(4px);
}
.calc-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.calc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.calc-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: auto;
  padding-right: 2rem;
}

.calc-card.coming-soon {
  opacity: 0.55;
  pointer-events: none;
}
.calc-card.coming-soon::after { content: "soon"; font-size: 0.8rem; font-style: italic; }

/* ============================= CONTENT PAGES ============================= */

.page-header {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-header__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
}
.page-header h1 { max-width: 20ch; }

.prose {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol {
  margin: 1em 0 1em 1.5em;
}
.prose li {
  margin-bottom: 0.4em;
  padding-left: 0.25em;
}
.prose li::marker { color: var(--ochre); }

.prose .last-updated {
  font-size: 0.9rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ============================= FEATURE STRIP ============================= */

.feature-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.feature-strip h2 {
  color: var(--paper);
  margin-bottom: 2rem;
  max-width: 24ch;
}
.feature-strip h2 em {
  color: var(--ochre);
  font-style: italic;
  font-weight: 400;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.feature {
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  padding-top: 1.25rem;
}
.feature__num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--ochre);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.feature h3 {
  color: var(--paper);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.55;
}

/* ============================= FOOTER ============================= */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--ochre-deep);
  text-decoration: underline;
}
.site-footer__meta {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ============================= AD PLACEHOLDERS ============================= */

.ad-slot {
  background: var(--paper-warm);
  border: 1px dashed var(--rule);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2.5rem 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Remove the placeholder styling when real AdSense code is dropped in */

/* ============================= UTILITIES ============================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.18s; }
.reveal--3 { animation-delay: 0.32s; }
.reveal--4 { animation-delay: 0.46s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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