/* Mina Witteman — static site */
:root {
  --accent: #9caebf;
  --accent-dark: #7d92a6;
  --accent-deep: #5f7891;
  --sand: #f6f1e7;
  --text: #2e3440;
  --muted: #6b7280;
  --bg: #fbf9f5;
  --card: #ffffff;
  --rule: #e7e2d8;
  --max: 880px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(46, 52, 64, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1.05rem;
}

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

/* Header */
.site-header {
  background: var(--card);
}
.banner { display: block; position: relative; }
.banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  /* 40vw is just above the image's natural height (2.71:1), so nothing is
     cropped at the top of the page; shrinking animates this cap down. */
  max-height: 40vw;
  object-fit: cover;
  transition: max-height 0.45s ease;
}
.site-header.shrunk .banner img {
  max-height: 140px;
}
.tagline {
  margin: 0;
  padding: 1.05rem 1rem 1rem;
  text-align: center;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tagline strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.15rem;
}

/* Navigation */
nav.main-nav {
  background: var(--accent);
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(46, 52, 64, 0.12);
}
nav.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav.main-nav li { position: relative; }
nav.main-nav a {
  display: block;
  padding: 0.8rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.18s ease;
}
nav.main-nav a:hover,
nav.main-nav li:focus-within > a,
nav.main-nav a.current { background: var(--accent-dark); }
nav.main-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--accent-dark);
  z-index: 10;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
nav.main-nav li:hover > ul,
nav.main-nav li:focus-within > ul { display: block; }
nav.main-nav li ul a:hover { background: var(--accent-deep); }

/* Content */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}
h1 {
  font-size: 2.5rem;
  margin: 0 0 1.6rem;
  padding-bottom: 0.7rem;
  position: relative;
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
h2 { font-size: 1.6rem; margin-top: 2.6rem; }
h3 { font-size: 1.28rem; margin-top: 2.2rem; }

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

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  margin: 2.8rem auto;
}

img { max-width: 100%; height: auto; border-radius: 6px; }
figure { margin: 2.2rem 0; text-align: center; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: 0.9rem; color: var(--muted); font-style: italic; margin-top: 0.65rem; }

blockquote {
  margin: 1.6rem 0;
  padding: 0.9rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
blockquote cite { display: block; margin-top: 0.45rem; font-style: normal; font-size: 0.92rem; color: var(--muted); }

ul.checklist li { margin-bottom: 0.45rem; }

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 1rem;
}
.hero figure { margin: 0; }
.hero figure img { box-shadow: var(--shadow); }

/* Books */
.book-section {
  margin: 2.6rem 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  box-shadow: var(--shadow);
}
.book-section .cover {
  float: right;
  margin: 0.3rem 0 1rem 1.6rem;
  max-width: 210px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(46, 52, 64, 0.18);
}
.book-section::after { content: ""; display: table; clear: both; }
.book-section h3 { margin-top: 0.4rem; }

/* Buy buttons */
.buy { margin: 1.4rem 0 0.4rem; }
.buy a {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--accent-deep);
  color: var(--accent-deep);
  text-decoration: none;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  margin: 0.25rem 0.4rem 0.25rem 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.buy a::after { content: " \2192"; }
.buy a:hover { background: var(--accent-deep); color: #fff; }

.details {
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem 1.7rem;
  margin-top: 2rem;
}

.gallery { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.2rem 0; }
.gallery img, .gallery figure img { max-width: 260px; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figure { margin: 0; }

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
}
.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(156, 174, 191, 0.3);
}
.contact-form button {
  background: var(--accent-deep);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.contact-form button:hover { background: var(--accent-dark); }

.contact-note {
  background: var(--sand);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
}

/* Footer */
footer {
  background: var(--accent);
  text-align: center;
  padding: 2rem 1rem 1.8rem;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  color: #fff;
}
footer .footer-tagline {
  margin: 0 0 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
}
footer p { margin: 0.25rem 0; }
footer a { color: #fff; }
footer .copyright { opacity: 0.85; letter-spacing: 0.05em; }

/* Gentle motion (classes applied by js/main.js; no JS = no hidden content) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  figure img, .gallery img, .book-section .cover {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  figure:hover img, .gallery img:hover, .book-section .cover:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 26px rgba(46, 52, 64, 0.18);
  }

  main {
    animation: page-in 0.5s ease both;
  }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Mobile */
.nav-toggle { display: none; }

@media (max-width: 640px) {
  /* Collapsible menu. JS adds .collapsible to the nav; without JS the
     full menu simply stays visible. */
  .nav-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.9rem 1rem;
    cursor: pointer;
  }
  .nav-toggle::before { content: "\2630"; margin-right: 0.6rem; }
  nav.main-nav.collapsible.open .nav-toggle::before { content: "\2715"; }
  nav.main-nav.collapsible .nav-toggle { display: block; }
  nav.main-nav.collapsible ul { display: none; }
  nav.main-nav.collapsible.open ul { display: flex; }

  nav.main-nav ul { flex-direction: column; }
  nav.main-nav a { padding: 0.95rem 1.2rem; }  /* comfortable tap targets */
  nav.main-nav li ul {
    display: block;
    position: static;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  nav.main-nav li ul a { padding-left: 2.4rem; }

  .tagline strong { font-size: 1.35rem; }
  .tagline { font-size: 0.8rem; padding: 0.85rem 0.75rem 0.8rem; }

  main { padding: 2rem 1rem 3rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; }
  body { font-size: 1rem; line-height: 1.65; }

  .hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .book-section { padding: 1.2rem 1.2rem; }
  .book-section .cover { float: none; display: block; margin: 1rem auto; }
  .gallery img, .gallery figure img { max-width: 100%; }
  blockquote { padding: 0.7rem 1.1rem; margin: 1.3rem 0; }
  .details, .contact-form, .contact-note { padding: 1.1rem 1.2rem; }

  .buy a { display: block; text-align: center; }
  .contact-form button { width: 100%; padding: 0.8rem; }

  .site-header.shrunk .banner img { max-height: 90px; }
}
