/* Samantha Campbell, LCMHC — quiet coastal editorial */

/* Self-hosted variable fonts (latin subset, SIL OFL) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost.woff2") format("woff2");
}

:root {
  --blue: #7da4ba;
  --blue-deep: #3d6378;
  --blue-ink: #233a47;
  --paper: #f7f5f0;
  --paper-blue: #e8eef1;
  --ink: #2e3a40;
  --soft: #5f6e76;
  --line: #d8dfe3;
  --header-bg: rgba(247, 245, 240, 0.92);
  --tint-1: #f1f5f7;
  --tint-2: #dde7ec;
  --grain-opacity: 0.035;
  --btn-dark-text: #fdfdfb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

/* quiet coastal, after dark */
:root[data-theme="dark"] {
  --blue: #7da4ba;
  --blue-deep: #9dbfd2;
  --blue-ink: #d3e0e8;
  --paper: #15212a;
  --paper-blue: #1a2933;
  --ink: #cdd8de;
  --soft: #93a5af;
  --line: #2c3e4a;
  --header-bg: rgba(21, 33, 42, 0.92);
  --tint-1: #1d2e39;
  --tint-2: #182630;
  --grain-opacity: 0.05;
  --btn-dark-text: #15212a;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #7da4ba;
    --blue-deep: #9dbfd2;
    --blue-ink: #d3e0e8;
    --paper: #15212a;
    --paper-blue: #1a2933;
    --ink: #cdd8de;
    --soft: #93a5af;
    --line: #2c3e4a;
    --header-bg: rgba(21, 33, 42, 0.92);
    --tint-1: #1d2e39;
    --tint-2: #182630;
    --grain-opacity: 0.05;
    --btn-dark-text: #15212a;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--blue-ink);
}

em { font-family: var(--serif); font-size: 1.08em; }

a { color: var(--blue-deep); }

::selection { background: var(--blue); color: #fff; }

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav .brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--blue-ink);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav ul a {
  position: relative;
  text-decoration: none;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 3px;
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--blue-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); transform-origin: left; }
.nav ul a:hover, .nav ul a.active { color: var(--blue-deep); }

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--soft);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.theme-toggle:hover { color: var(--blue-deep); border-color: var(--blue-deep); }
.theme-toggle::before { content: "☾"; }
:root[data-theme="dark"] .theme-toggle::before { content: "☀"; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle::before { content: "☀"; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fdfdfb;
  overflow: hidden;
  background:
    linear-gradient(rgba(35, 58, 71, 0.42), rgba(35, 58, 71, 0.5)),
    url("../images/hero.webp") center / cover no-repeat,
    radial-gradient(120% 90% at 20% 10%, #9fbecd 0%, #6a92a8 45%, #3d6378 100%);
}

.hero-inner { padding: 5rem 1.5rem; max-width: 820px; }

.hero .eyebrow,
.hero h1,
.hero p.tagline,
.hero .btn {
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero p.tagline { animation-delay: 0.45s; }
.hero .btn { animation-delay: 0.65s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 500;
  color: #fdfdfb;
  margin-bottom: 1.2rem;
}

.hero h1 em { font-style: italic; font-weight: 400; }

.hero p.tagline {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 2.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  max-width: 100%;
  background: transparent;
  color: #fdfdfb;
  text-decoration: none;
  padding: 0.9rem 2.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(253, 253, 251, 0.7);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, letter-spacing 0.3s;
}

.btn:hover { background: #fdfdfb; color: #233a47; letter-spacing: 0.28em; }

.btn-dark {
  background: var(--blue-deep);
  color: var(--btn-dark-text);
  border-color: var(--blue-deep);
}

.btn-dark:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: var(--btn-dark-text); }

/* ---------- Page sections ---------- */
.section {
  max-width: 680px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.section h2 { font-size: 2.4rem; margin-bottom: 1.3rem; }
.section p { color: var(--soft); margin-bottom: 1.3rem; }
.section .btn-dark { margin-top: 1rem; }

.divider {
  width: 56px;
  height: 1px;
  background: var(--blue);
  margin: 0 auto 2rem;
  border: none;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Page header banner (about/contact) */
.page-title {
  position: relative;
  background:
    radial-gradient(140% 120% at 80% -20%, var(--tint-1) 0%, var(--paper-blue) 60%, var(--tint-2) 100%);
  text-align: center;
  padding: 5rem 1.5rem 4.25rem;
  border-bottom: 1px solid var(--line);
}

.page-title h1 { font-size: clamp(2.4rem, 4.5vw, 3.2rem); margin-bottom: 0.6rem; }
.page-title p {
  color: var(--soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* ---------- About ---------- */
.about-text h2 { font-size: 2.2rem; margin-bottom: 1.1rem; }
.about-text p { color: var(--soft); margin-bottom: 1.2rem; }
.about-text .btn-dark { margin-top: 0.5rem; }

.section.about-text {
  max-width: 720px;
  text-align: left;
  padding-top: 3.5rem;
}

.section.about-text h2 { margin-top: 2.2rem; }

/* ---------- Contact / form ---------- */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.contact-info {
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--soft);
}

.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--blue-deep); }

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(35, 58, 71, 0.18);
}

.form-note {
  font-size: 0.84rem;
  color: var(--soft);
  margin-top: 1.1rem;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--paper-blue);
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

footer a { text-decoration: none; border-bottom: 1px solid transparent; }
footer a:hover { border-color: var(--blue-deep); }

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6.5rem;
  text-align: center;
}

.notfound .code {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 500;
  line-height: 1;
  color: var(--paper-blue);
  -webkit-text-stroke: 1px var(--blue);
  letter-spacing: 0.06em;
  user-select: none;
}

.notfound h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0.4rem 0 1.1rem;
}

.notfound p { color: var(--soft); max-width: 460px; margin: 0 auto 1.2rem; }

.notfound .duck {
  width: 96px;
  height: 96px;
  margin: 1.6rem auto 0.4rem;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(35, 58, 71, 0.16);
  animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-7px) rotate(2deg); }
}

.notfound .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.notfound .quiet-links {
  margin-top: 2.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notfound .quiet-links a {
  text-decoration: none;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  margin: 0 0.8rem;
  padding-bottom: 2px;
}

.notfound .quiet-links a:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

@media (prefers-reduced-motion: reduce) {
  .notfound .duck { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav { justify-content: center; flex-direction: column; }
  .nav ul { gap: 0.75rem 1.25rem; }
  .section { padding: 4rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero p.tagline, .hero .btn {
    animation: none;
    opacity: 1;
  }
}
