/* ==========================================================================
   Garden Island Photography — Kauai Field Guide
   Handcrafted design system. No framework.
   Palette: warm sand / lagoon teal / hibiscus coral / deep palm
   Type: Fraunces (display) + Karla (body) via Google Fonts CDN
   ========================================================================== */

:root {
  --sand: #faf6ee;
  --sand-deep: #f1e9d8;
  --ink: #22302d;
  --ink-soft: #51625e;
  --lagoon: #0d5560;
  --lagoon-deep: #093c44;
  --lagoon-tint: #e2efee;
  --coral: #e4573d;
  --coral-deep: #c43e26;
  --palm: #15332b;
  --gold: #d9a441;
  --seafoam: #cfe6e2;
  --north: #0d5560;
  --east: #b07c1f;
  --south: #c43e26;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(9, 60, 68, 0.10);
  --shadow-soft: 0 4px 14px rgba(9, 60, 68, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
}

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

a { color: var(--lagoon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-deep);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { text-decoration: none; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--lagoon-deep);
  letter-spacing: 0.01em;
  display: block;
}
.brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--lagoon-deep); border-bottom-color: var(--coral); }
.main-nav a.active { color: var(--lagoon-deep); border-bottom-color: var(--lagoon); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--lagoon);
  border-radius: var(--radius-sm);
  color: var(--lagoon);
  font-size: 1.05rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--lagoon-deep), var(--lagoon) 60%, #11707d);
  overflow: hidden;
}
.hero.has-image { min-height: 480px; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 60, 68, 0.18) 0%, rgba(9, 60, 68, 0.62) 78%, rgba(9, 50, 57, 0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.4rem;
  color: #fff;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  margin: 0.4rem 0 0.5rem;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--seafoam);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 0.25rem;
}
.hero-sub {
  max-width: 56ch;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.shore-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 0.7rem;
}
.shore-badge.north { background: var(--north); border: 1px solid rgba(255,255,255,0.35); }
.shore-badge.east { background: var(--east); }
.shore-badge.south { background: var(--south); }

/* ---------- Layout ---------- */

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-col {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.6rem 0 3.5rem;
}

.article-col h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--lagoon-deep);
  margin: 2.4rem 0 0.7rem;
  padding-top: 0.4rem;
}
.article-col h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}
.article-col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--lagoon);
  margin: 1.7rem 0 0.45rem;
}
.article-col p { margin: 0 0 1.15rem; }
.article-col ul, .article-col ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.article-col li { margin-bottom: 0.55rem; }
.article-col strong { color: var(--lagoon-deep); }
.article-col em { color: var(--ink-soft); }

.article-col figure {
  margin: 2rem 0;
}
.article-col figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-col figcaption {
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding-top: 0.6rem;
  letter-spacing: 0.02em;
}

ul.post-list { list-style: none; padding-left: 0; }
ul.post-list li {
  background: #fff;
  border: 1px solid var(--sand-deep);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- Contact form ---------- */

.contact-form {
  background: #fff;
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.45rem;
}
.contact-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lagoon-deep);
  margin-top: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--lagoon);
  outline-offset: 1px;
  background: #fff;
}
.contact-form button {
  margin-top: 0.9rem;
  justify-self: start;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.contact-form button:hover { background: var(--coral-deep); transform: translateY(-1px); }
.form-note {
  background: var(--lagoon-tint);
  border-radius: var(--radius-sm);
  color: var(--lagoon-deep);
  padding: 0.8rem 1rem;
  font-weight: 700;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 5.5rem 1.25rem 6rem;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: 5.4rem;
  font-weight: 700;
  color: var(--lagoon);
  line-height: 1;
  margin: 0 0 0.6rem;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--lagoon-deep);
  margin: 0 0 0.8rem;
}
.notfound p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.6rem; }
.btn-home {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lagoon);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 2rem;
}
.btn-home:hover { background: var(--lagoon-deep); color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--palm);
  color: #c9d8d2;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.2rem;
}
.footer-inner h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.8rem;
}
.footer-inner p { font-size: 0.92rem; margin: 0 0 0.8rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 0.45rem; }
.footer-inner a { color: var(--seafoam); text-decoration: none; font-size: 0.92rem; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #9db3ab;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.6rem 0 0.9rem;
  }
  .main-nav a { display: block; padding: 0.45rem 0.2rem; font-size: 0.92rem; }
  .header-inner { flex-wrap: wrap; }
  .hero.has-image { min-height: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}
