/* ==========================================================================
   Studio Safan — sitewide stylesheet
   Kleuren: papier #f7f2e6 · inkt #2e2b24 · groen #3d5030 · roest #a4482f
   Fonts:   Young Serif (koppen, logo) · Karla (lopende tekst)
   ========================================================================== */

/* ----- Basis ----- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f2e6;
  font-family: Karla, sans-serif;
  color: #2e2b24;
}

main {
  flex: 1;
}

a {
  color: #3d5030;
}

a:hover {
  color: #a4482f;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid #e3dac2;
  background: #f7f2e6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2e2b24;
}

.brand:hover {
  color: #2e2b24;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: #3d5030;
  border-radius: 9px 9px 9px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f2e6;
  font-family: "Young Serif", serif;
  font-size: 20px;
}

.brand-name {
  font-family: "Young Serif", serif;
  font-size: 23px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15.5px;
  font-weight: 600;
}

.site-nav a {
  color: #4a4433;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #a4482f;
}

.site-nav a.is-active {
  border-bottom-color: #a4482f;
  color: #2e2b24;
}

/* ----- Knoppen en tekstlinks ----- */

.btn {
  display: inline-block;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #3d5030;
  color: #f7f2e6;
  padding: 14px 26px;
  font-size: 16px;
}

.btn-primary:hover {
  background: #2f3f25;
  color: #f7f2e6;
}

.link-underline {
  color: #3d5030;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid #c9bd99;
  padding-bottom: 2px;
  text-decoration: none;
}

.link-underline:hover {
  color: #a4482f;
}

.text-link {
  font-weight: 700;
  color: #3d5030;
  text-decoration: none;
}

.text-link:hover {
  color: #a4482f;
}

/* ----- Hero (home) ----- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 48px 56px;
  background: linear-gradient(180deg, #f7f2e6 0%, #f1e9d4 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8dfc6;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b6248;
  text-transform: uppercase;
  margin: 0;
}

.hero h1 {
  font-family: "Young Serif", serif;
  font-size: 50px;
  line-height: 1.1;
  margin: 18px 0 14px;
  font-weight: 400;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #57503d;
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-covers {
  justify-self: center;
  display: flex;
  align-items: center;
  padding: 26px 30px 14px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-cover {
  display: block;
  min-width: 0;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(62, 53, 30, 0.35);
}

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-cover-side {
  width: 168px;
  z-index: 1;
  transition: transform 0.2s ease;
}

.hero-cover-left {
  transform: rotate(-8deg) translateY(14px);
  margin-right: -46px;
}

.hero-cover-left:hover {
  transform: rotate(-8deg) translateY(8px);
}

.hero-cover-right {
  transform: rotate(8deg) translateY(14px);
  margin-left: -46px;
}

.hero-cover-right:hover {
  transform: rotate(8deg) translateY(8px);
}

.hero-cover-front {
  position: relative;
  width: 248px;
  z-index: 2;
  transform: rotate(-2deg);
  box-shadow: 0 24px 52px rgba(62, 53, 30, 0.42);
  transition: transform 0.2s ease;
}

.hero-cover-front:hover {
  transform: rotate(-2deg) translateY(-6px);
}

.hero-badge {
  position: absolute;
  top: -15px;
  right: -24px;
  background: #a4482f;
  color: #f7f2e6;
  border-radius: 999px;
  padding: 8px 17px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(6deg);
  box-shadow: 0 6px 14px rgba(62, 53, 30, 0.3);
  white-space: nowrap;
}

/* ----- Catalogus (home) ----- */

.catalog {
  padding: 48px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: "Young Serif", serif;
  font-size: 28px;
  margin: 0;
  font-weight: 400;
}

.section-note {
  font-size: 14.5px;
  color: #8a8168;
}

/* ----- Serie- en boekkaarten ----- */

.series-card,
.book-card {
  display: grid;
  gap: 28px;
  align-items: center;
  background: #fffdf6;
  border: 1px solid #e3dac2;
  border-radius: 14px;
  padding: 26px 30px;
  text-decoration: none;
  color: inherit;
}

.series-card {
  grid-template-columns: 150px 1fr auto;
}

.book-card {
  grid-template-columns: 170px 1fr auto;
  gap: 30px;
}

.series-card + .series-card,
.book-card + .book-card {
  margin-top: 20px;
}

.series-card:hover,
.book-card:hover {
  border-color: #c9bd99;
  box-shadow: 0 6px 18px rgba(62, 53, 30, 0.1);
  color: inherit;
}

.card-cover {
  display: block;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(62, 53, 30, 0.2);
}

.series-card .card-cover {
  width: 150px;
}

.book-card .card-cover {
  width: 170px;
}

.card-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a4482f;
  margin: 0 0 6px;
}

.card-title {
  font-family: "Young Serif", serif;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 400;
}

.card-text {
  font-size: 15.5px;
  line-height: 1.55;
  color: #57503d;
  margin: 0 0 16px;
  max-width: 54ch;
}

.book-card .card-text {
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 14px;
  color: #6b6248;
  font-weight: 600;
}

.format-tag {
  font-size: 13.5px;
  background: #f1e9d4;
  border-radius: 6px;
  padding: 4px 10px;
  color: #6b6248;
  font-weight: 700;
}

.card-cta {
  background: #f1e9d4;
  border: 1px solid #d8cca6;
  color: #3d5030;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.card-cta-primary {
  background: #3d5030;
  border: none;
  color: #f7f2e6;
  padding: 12px 22px;
}

/* ----- Leesniveau-indicator ----- */

.level {
  display: flex;
  align-items: center;
  gap: 9px;
}

.level-bar {
  display: flex;
  gap: 3px;
}

.level-seg {
  width: 26px;
  height: 9px;
  border-radius: 4px;
  background: #e4dbc1;
}

.level-seg-done {
  background: #7a9457;
}

.level-seg-current {
  background: #3d5030;
}

.level-label {
  font-size: 14px;
  font-weight: 700;
  color: #3d5030;
}

/* ----- "In de maak"-kaarten ----- */

.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.upcoming-card {
  border: 2px dashed #d6cbaa;
  border-radius: 14px;
  padding: 22px 26px;
  color: #8a8168;
}

.upcoming-card-wide {
  padding: 24px 30px;
  margin-top: 20px;
}

.upcoming-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.upcoming-title {
  font-family: "Young Serif", serif;
  font-size: 18px;
  color: #6b6248;
  margin: 0;
}

.upcoming-card-wide .upcoming-title {
  font-size: 19px;
}

.upcoming-text {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 6px 0 0;
}

/* ----- Paginacontainers ----- */

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 48px;
}

.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
}

.page-title {
  font-family: "Young Serif", serif;
  font-size: 40px;
  margin: 0 0 16px;
  font-weight: 400;
}

.page-narrow .page-title {
  margin-bottom: 22px;
}

.page-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a4482f;
  margin: 0 0 8px;
}

.section-title {
  font-family: "Young Serif", serif;
  font-size: 24px;
  margin: 32px 0 18px;
  font-weight: 400;
}

.section-title:first-child {
  margin-top: 0;
}

/* ----- Broodkruimels ----- */

.breadcrumb {
  font-size: 14px;
  color: #8a8168;
  margin-bottom: 26px;
}

.breadcrumb a {
  font-weight: 600;
  color: #6b6248;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #a4482f;
}

.breadcrumb-current {
  color: #2e2b24;
  font-weight: 600;
}

/* ----- Seriepagina ----- */

.series-intro {
  max-width: 64ch;
  margin-bottom: 44px;
}

.lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: #57503d;
  margin: 0;
  text-wrap: pretty;
}

/* ----- Boekpagina ----- */

.book-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
}

.book-cover {
  position: relative;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: #dfd3ae;
  border-radius: 6px;
  transform: rotate(2.5deg);
}

.book-cover img {
  position: relative;
  display: block;
  width: 300px;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(62, 53, 30, 0.26);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.download-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffdf6;
  border: 1px solid #d8cca6;
  color: #3d5030;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
}

.download-btn:hover {
  border-color: #3d5030;
  color: #3d5030;
}

.download-hint {
  font-weight: 400;
  font-size: 13.5px;
  color: #8a8168;
}

.download-btn-primary {
  background: #3d5030;
  border: none;
  color: #f7f2e6;
  padding: 14px 20px;
}

.download-btn-primary:hover {
  background: #2f3f25;
  color: #f7f2e6;
}

.download-btn-primary .download-hint {
  color: inherit;
  opacity: 0.75;
}

.download-note {
  font-size: 13.5px;
  color: #8a8168;
  line-height: 1.5;
  margin: 6px 0 0;
}

.book-desc {
  font-size: 17.5px;
  line-height: 1.65;
  color: #57503d;
  margin: 0 0 14px;
  max-width: 60ch;
  text-wrap: pretty;
}

.book-desc:last-of-type {
  margin-bottom: 30px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px;
  justify-content: start;
  margin-bottom: 34px;
}

.fact-card {
  background: #fffdf6;
  border: 1px solid #e3dac2;
  border-radius: 10px;
  padding: 12px 18px;
}

.fact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a8168;
  margin: 0 0 2px;
}

.fact-value {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.level-panel {
  background: #f1e9d4;
  border: 1px solid #e0d5b4;
  border-radius: 14px;
  padding: 24px 28px;
  max-width: 560px;
}

.level-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.level-panel-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6248;
}

.level-panel-value {
  font-size: 15px;
  font-weight: 700;
  color: #3d5030;
}

.level-scale {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-bottom: 6px;
}

.level-scale .level-seg {
  width: auto;
  height: 10px;
}

.level-scale-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  font-size: 12.5px;
  color: #8a8168;
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.level-scale-labels .is-current {
  color: #3d5030;
}

.level-panel-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #57503d;
  margin: 0;
}

/* ----- Tekstpagina's (over, verspreiden, contact) ----- */

.prose {
  font-size: 17.5px;
  line-height: 1.7;
  color: #57503d;
  margin: 0 0 18px;
  text-wrap: pretty;
}

.prose-intro {
  margin-bottom: 30px;
}

.page-narrow .prose:last-child {
  margin-bottom: 0;
}

/* ----- Verspreiden ----- */

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.share-card {
  background: #fffdf6;
  border: 1px solid #e3dac2;
  border-radius: 14px;
  padding: 24px 28px;
}

.share-card-title {
  font-family: "Young Serif", serif;
  font-size: 19px;
  color: #3d5030;
  margin: 0 0 12px;
}

.share-card-title-negative {
  color: #a4482f;
}

.share-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #57503d;
}

.license-panel {
  background: #f1e9d4;
  border: 1px solid #e0d5b4;
  border-radius: 14px;
  padding: 22px 28px;
}

.license-panel p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #57503d;
  margin: 0;
}

.license-panel a {
  font-weight: 700;
}

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

.contact-card {
  background: #fffdf6;
  border: 1px solid #e3dac2;
  border-radius: 14px;
  padding: 26px 30px;
  display: inline-block;
  margin-top: 10px;
}

.contact-card-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8168;
  margin: 0 0 6px;
}

.contact-email {
  font-family: "Young Serif", serif;
  font-size: 22px;
  font-weight: 400;
  color: #3d5030;
  text-decoration: none;
}

a.contact-email:hover {
  color: #a4482f;
}

.contact-note {
  font-size: 15px;
  line-height: 1.6;
  color: #8a8168;
  margin: 24px 0 0;
}

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

.site-footer {
  background: #3d5030;
  color: #e9e2cc;
  padding: 30px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  width: 28px;
  height: 28px;
  background: #e9e2cc;
  border-radius: 7px 7px 7px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d5030;
  font-family: "Young Serif", serif;
  font-size: 16px;
}

.footer-name {
  font-family: "Young Serif", serif;
  font-size: 18px;
}

.footer-copyright {
  font-size: 13.5px;
  opacity: 0.8;
}

/* ----- Responsief ----- */

@media (max-width: 800px) {
  .site-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px 36px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-covers {
    padding: 22px 10px 10px;
  }

  .hero-cover-side {
    width: 118px;
  }

  .hero-cover-left {
    margin-right: -34px;
  }

  .hero-cover-right {
    margin-left: -34px;
  }

  .hero-cover-front {
    width: 178px;
  }

  .hero-badge {
    top: -12px;
    right: -14px;
    padding: 6px 13px;
    font-size: 11.5px;
  }

  .catalog {
    padding: 32px 20px;
  }

  .page {
    padding: 36px 20px;
  }

  .page-narrow {
    padding: 40px 20px;
  }

  .page-title {
    font-size: 32px;
  }

  .series-card,
  .book-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-cta {
    justify-self: start;
  }

  .upcoming-grid,
  .share-grid,
  .book-layout,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .book-layout {
    gap: 40px;
  }

  .site-footer {
    padding: 24px 20px;
  }
}
