/* ==========================================================================
   Hannah Briar — Author Website
   ========================================================================== */

/* ---- Self-hosted fonts ---- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  /* Hannah Briar 10-color brand palette */
  --teal: #006B78;       /* Briar Teal — signature color */
  --teal-dark: #00505a;
  --ink: #111114;        /* Midnight Ink */
  --ivory: #FBF8F3;      /* Ivory */
  --oxblood: #7D2942;    /* Oxblood Rose */
  --oxblood-dark: #631f34;
  --mauve: #B98291;      /* Dusty Mauve */
  --blush: #F5E9E5;      /* Blush Parchment */
  --champagne: #C7A56A;  /* Champagne */
  --sage: #899B96;       /* Sage Smoke */
  --plum: #412C3B;       /* Plum Noir */
  --pearl: #D1D5D8;      /* Pearl Mist */

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;

  --shadow-soft: 0 20px 45px -25px rgba(17, 17, 20, 0.35);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
p { margin: 0 0 1.1em; }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.italic-accent { font-style: italic; font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { position: relative; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible,
.badge-link:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 2em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal);
  color: var(--ivory);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn-secondary {
  background: var(--oxblood);
  color: var(--ivory);
  border-color: var(--oxblood);
}
.btn-secondary:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--ivory); }

.btn-outline-ivory {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.btn-outline-ivory:hover { background: var(--ivory); color: var(--teal); }

/* ---- Logo badge (header / hero / footer) ---- */
.badge-link { display: inline-block; border-radius: 50%; }
.logo-badge {
  --badge-size: 48px;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ivory);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(17,17,20,0.18);
}
.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.logo-badge--lg { --badge-size: 88px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--pearl);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.brand-name em { color: var(--teal); font-style: italic; }

.main-nav ul {
  display: flex;
  gap: 2.1rem;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { display: block; }

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 68px;
    background: var(--ivory);
    border-bottom: 1px solid var(--pearl);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-soft);
  }
  .main-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .main-nav li { border-bottom: 1px solid var(--pearl); }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background-image:
    linear-gradient(165deg, rgba(0, 107, 120, 0.85) 0%, rgba(0, 80, 90, 0.88) 100%),
    url("../img/hero-photo.jpg");
  background-size: cover;
  background-position: center 38%;
  color: var(--ivory);
  padding: var(--space-xl) 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--ivory); }
.hero h1 {
  margin-top: 0.5rem;
  color: var(--ivory);
}
.hero-tagline {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.2rem;
  color: rgba(251,248,243,0.92);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(circle at 15% 20%, var(--champagne) 0, transparent 45%),
    radial-gradient(circle at 88% 78%, var(--blush) 0, transparent 40%);
}

/* ==========================================================================
   Books / Shop banner
   ========================================================================== */
.books-banner {
  padding: var(--space-lg) 0;
  background: var(--ivory);
}
.banner-card {
  background: linear-gradient(120deg, var(--plum), #2c1e28 100%);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(199,165,106,0.25);
}
.banner-card .eyebrow { color: var(--champagne); }
.banner-card h2 { color: var(--ivory); margin-bottom: 0.4em; }
.banner-card p { color: rgba(251,248,243,0.85); max-width: 46ch; margin-bottom: 0; }
.banner-card-text { max-width: 560px; }
.banner-card-cta { flex-shrink: 0; }

/* ==========================================================================
   Spice / promo strip
   ========================================================================== */
.promo-strip {
  background: var(--blush);
  padding: 3.25rem 0;
  text-align: center;
  border-top: 1px solid rgba(125,41,66,0.12);
  border-bottom: 1px solid rgba(125,41,66,0.12);
}
.promo-strip .eyebrow { color: var(--oxblood); margin-bottom: 0.9rem; }
.promo-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--oxblood);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: var(--space-xl) 0;
  background: var(--ivory);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about .eyebrow { color: var(--teal); margin-bottom: 1rem; }
.about-copy p { color: #2b2b30; }
.about-copy p:last-child { margin-bottom: 0; }

blockquote.pull-quote {
  margin: 0;
  padding: 2.25rem 2rem;
  background: var(--blush);
  border: 1.5px solid rgba(199, 165, 106, 0.55);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--plum);
  line-height: 1.45;
  position: sticky;
  top: 6.5rem;
}
blockquote.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oxblood);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  blockquote.pull-quote { position: static; }
}

/* ==========================================================================
   Legal (privacy policy, etc.)
   ========================================================================== */
.legal {
  padding: var(--space-xl) 0 6rem;
  background: var(--ivory);
}
.legal .container { max-width: 760px; }
.legal .eyebrow { color: var(--teal); margin-bottom: 1rem; }
.legal h1 { font-size: clamp(2.2rem, 4.2vw, 3rem); margin-bottom: 0.3em; }
.legal .legal-updated {
  color: #6b6b70;
  font-size: 0.9rem;
  margin-bottom: 2.75rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  color: var(--plum);
}
.legal p { color: #2b2b30; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Connect
   ========================================================================== */
.connect {
  background: var(--plum);
  color: var(--ivory);
  padding: var(--space-xl) 0;
}
.connect .eyebrow { color: var(--champagne); }
.connect-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-lg);
}
.connect-heading h2 { color: var(--ivory); }
.connect-heading p { color: rgba(251,248,243,0.78); margin-bottom: 0; }

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .connect-grid { grid-template-columns: 1fr; }
}

.connect-card {
  background: rgba(251,248,243,0.06);
  border: 1px solid rgba(199,165,106,0.3);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.5rem;
  text-decoration: none;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.connect-card:hover {
  background: rgba(251,248,243,0.12);
  border-color: var(--champagne);
  transform: translateY(-3px);
}
.connect-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.connect-card .icon svg { width: 20px; height: 20px; }
.connect-card .label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.connect-card .handle {
  font-size: 0.88rem;
  color: rgba(251,248,243,0.7);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--pearl);
  padding: var(--space-lg) 0 2.5rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(209,213,216,0.18);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ivory);
}
.footer-brand .brand-name { color: var(--ivory); }
.footer-social {
  display: flex;
  gap: 0.9rem;
  list-style: none;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(209,213,216,0.3);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--pearl);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--champagne);
  color: var(--champagne);
  background: rgba(199,165,106,0.08);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(209,213,216,0.75);
}
.footer-bottom a {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
.footer-bottom nav a {
  color: rgba(209,213,216,0.75);
  text-decoration: none;
}
.footer-bottom nav a:hover { color: var(--ivory); }

/* ---- misc ---- */
.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;
}
