/* amberfishermedia.com — recreates the WordPress (Uncode) look as plain CSS.
   Measurements come from the live site, recorded in reference/styles/. */

:root {
  --plum: #3c1046;          /* header */
  --gold: #b4975a;          /* bands, genre line */
  --peach: #d79472;         /* menu highlight, flat buttons */
  --btn-a: #e2906b;
  --btn-b: #da845d;
  --cream: #f6f2ee;
  --ink: #000;
  --wrap: 1128px;
  --gutter: 72px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Metamorphous", Georgia, "Times New Roman", serif;
  --ui: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --label: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.75 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: calc(var(--wrap) + 72px); margin: 0 auto; padding: 0 36px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--plum); position: relative; z-index: 20; }
.site-header.is-transparent { background: transparent; position: absolute; left: 0; right: 0; top: 0; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 154px; gap: 24px; }
.logo { flex-shrink: 0; }
.logo img { width: 330px; height: auto; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; row-gap: 10px; }
.menu > li { display: flex; align-items: center; }
.menu-top { font: 600 15px/15px var(--ui); letter-spacing: .75px; text-transform: uppercase; color: #fff; text-decoration: none; padding: 0 14px; }
.menu > li:last-child .menu-top { padding-right: 0; }
.menu-top:hover, .menu-top[aria-current], .has-sub.open > .menu-top { color: var(--peach); }
.sub-toggle { background: none; border: 0; color: #fff; padding: 0 14px 0 0; margin-left: -10px; font-size: 10px; cursor: pointer; }
.has-sub.open .sub-toggle { color: var(--peach); }

/* Books mega-menu: five columns, dark panel */
.mega { list-style: none; margin: 0; padding: 18px 18px 22px; position: absolute; top: calc(100% - 30px); right: 36px; width: min(1128px, calc(100vw - 48px));
  background: #1b1b1d; display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 24px; }
/* Invisible bridge under "Books" (link and arrow only) down to the panel, so the pointer
   never "leaves" on the way down. Kept narrow so it never covers the other menu links. */
.has-sub > .menu-top { position: relative; }
.has-sub.open > .menu-top::after { content: ""; position: absolute; left: 0; right: -24px; top: 100%; height: 60px; }
.has-sub.open .mega { display: grid; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.menu-col-head { display: block; font: 600 12px/1.4 var(--ui); letter-spacing: .5px; color: #fff; text-decoration: none; padding: 5px 9px 8px; text-transform: uppercase; }
.mega li li a { display: block; font: 400 12px/1.5 var(--ui); color: #fff; text-decoration: none; padding: 5px 9px; }
.mega a:hover, .mega a[aria-current] { color: var(--peach); }

/* ---------------------------------------------------------------- shared pieces */
.gold-band { height: 18px; background: var(--gold); position: relative; }
.gold-band.with-arrow::after, .cream-arrow::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 24px solid var(--gold); z-index: 2; }
.cream-arrow { position: relative; height: 0; }
.cream-arrow::after { top: 0; border-top-color: var(--cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1.2 var(--ui); letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; text-decoration: none; padding: 16px 39px; border: 0; transition: filter .2s; }
.btn:hover { filter: brightness(1.06); }
.btn-gradient { background: linear-gradient(to right, var(--btn-a) 37%, var(--btn-b) 86%); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.btn-flat { background: var(--peach); }
.btn-wide { display: flex; width: 100%; margin-top: 36px; }
.btn .icon { width: 1.05em; height: 1.05em; }

/* Purple hero with the curved bottom */
.hero { position: relative; color: #fff; text-align: center; padding: 72px 0 98px;
  background: linear-gradient(rgb(20,22,24), rgba(20,22,24,0) 54%), url("/img/purple-signature-bg2.webp") center / cover; }
.hero h1 { font: 600 50px/60px var(--display); }
.hero-genre { font: 600 17px/20.4px var(--ui); letter-spacing: 8.5px; text-transform: uppercase; color: var(--gold); margin: 18px 0 0; }
.hero .btn { margin-top: 22px; }
.hero-curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; display: block; }

/* ---------------------------------------------------------------- book page */
.two-col > .col { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: start; }
.book-main { padding: 36px 0 108px; }
.headline { font: 600 35px/42px var(--display); margin-bottom: 36px; }
.headline.lora { font-family: var(--serif); }
.prose p { font-size: 18px; line-height: 31.5px; margin: 0 0 36px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { font-size: 18px; line-height: 31.5px; margin: 0 0 36px; padding-left: 18px; }
.col-side .device { display: block; }
.col-side .device img { width: 364px; max-width: 100%; }
.col-side .device.centered img { margin: 0 auto; }
.caption { margin-top: 36px; }
.caption p { font-size: 15px; line-height: 26.25px; margin: 0 0 18px; }
.caption a { text-decoration: underline; }
.side-title { font: 600 29px/34.8px var(--serif); margin-top: 36px; }

/* Layout variants */
.layout-light { background: #ececec url("/img/cards-and-crystals-4.webp") repeat; background-size: 700px; position: relative; }
.layout-light::before { content: ""; position: absolute; inset: 0; background: rgba(238,238,240,.92); }
.layout-light > .wrap { position: relative; }
.book-main.layout-light, .book-main.layout-skull, .book-main.layout-purple { padding: 96px 0 108px; }
.book-main.layout-light .col-text { padding-top: 60px; }
.layout-skull { background: url("/img/skull-tiling-background.webp") repeat; background-size: 500px; position: relative; }
.layout-skull::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.9); }
.layout-skull > .wrap { position: relative; }
.book-main.layout-purple { color: #fff; padding-top: 250px; padding-bottom: 110px;
  background: radial-gradient(ellipse at 50% 55%, rgba(122,42,170,.55), rgba(40,8,60,0) 70%), url("/img/purple-signature-bg2.webp") center / cover, #3a0d58; }
.layout-purple .headline { margin-bottom: 36px; }

/* Format tabs (A Soul to Take, Ingredients of Magic) */
.tabs { margin-top: 36px; }
.tabs [role=tablist] { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid rgba(127,127,127,.25); }
.tabs [role=tab] { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 36px 22px 0; cursor: pointer;
  font: 600 12px/1 var(--ui); letter-spacing: 2px; color: inherit; display: inline-flex; align-items: center; gap: 18px; }
.tabs [role=tab] .icon { width: 14px; height: 14px; }
.tabs [role=tab][aria-selected=true] { color: var(--gold); border-bottom-color: var(--gold); }
.tabs [role=tabpanel] { padding: 30px 0 0; }
.tabs [role=tabpanel] .btn { margin-bottom: 24px; }
.tabs [role=tabpanel] p { font-size: 15px; line-height: 26.25px; margin: 0; }
.layout-purple .tabs [role=tab][aria-selected=true] { color: var(--peach); border-bottom-color: var(--peach); }

/* Audiobook block (Temple) */
.audiobook { background: var(--cream); text-align: center; padding: 0 0 110px; position: relative; }
.audiobook::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px; background: #fff;
  border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ab-play { position: relative; display: inline-block; width: 40px; margin-top: -10px; top: -20px; }
.audiobook h2 { font: 600 35px/42px var(--display); margin: 80px 0 60px; position: relative; }
.ab-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
.ab-icon { width: 56px; height: 56px; color: var(--peach); }
.ab-box h3 { font: 600 20px/1.2 var(--serif); margin: 18px 0 12px; }
.ab-box p { font-size: 15px; margin: 0; }

/* More books in the series */
.more-books { color: #fff; text-align: center; padding: 0 0 60px; position: relative;
  background: linear-gradient(rgba(27,29,28,.35), rgba(47,49,49,0)), url("/img/purple-signature-bg2.webp") center / cover; }
.more-skull { background: linear-gradient(rgba(42,10,42,.66), rgba(42,10,42,.66)), url("/img/skull-tiling-background.webp") repeat; background-size: auto, 500px; }
.more-books h2 { font: 600 24px/28.8px var(--serif); margin: 48px 0 36px; }
.more-books h2 a { text-decoration: underline; }
.cover-grid { list-style: none; margin: 0; padding: 0; display: grid; justify-content: start; }
.cover-grid h3 { font: 600 14px/16.8px var(--label); text-transform: uppercase; margin-top: 18px; }
.cover-grid h3 a { text-decoration: none; }
.cover-grid img { width: 100%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.grid-more { grid-template-columns: repeat(auto-fill, 156px); gap: 38px; }
.grid-more li { text-align: center; }

/* ---------------------------------------------------------------- series and bookshelf */
.series-intro { padding: 100px 0 36px; }
.series-intro .prose p { font-size: 17px; line-height: 28.5px; }
.grid-series { grid-template-columns: repeat(3, 221px); gap: 72px 37px; justify-content: center; margin: 48px 0 0; text-align: center; }
.grid-series h3 { color: #000; }
.bookshelf { padding: 48px 0 60px; }
.shelf-heading { font: 600 30px/36px var(--display); margin: 0 0 30px; }
.shelf + .shelf { margin-top: 72px; }
.grid-shelf { grid-template-columns: repeat(6, minmax(0, 156px)); column-gap: 38px; row-gap: 72px; text-align: center; }

/* ---------------------------------------------------------------- home */
.home-hero-img { height: 530px; background: #b4975a url("/img/bookstack4-scaled.webp") center / cover; }
.home-shelf { background: var(--cream); padding: 70px 0 100px; }
.tagline { font: 600 35px/42px var(--display); text-align: center; margin-bottom: 70px; }
.carousel { position: relative; }
.car-track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 36px) / 4); gap: 36px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track li { scroll-snap-align: start; }
.car-track img { width: 100%; aspect-ratio: 255 / 380; object-fit: cover; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.car-btn .icon { width: 14px; height: 14px; }
.car-prev { left: -48px; } .car-prev .icon { transform: rotate(90deg); }
.car-next { right: -48px; } .car-next .icon { transform: rotate(-90deg); }
.home-feature { background: #fff url("/img/skullbgsketch-1.webp") right 6% center / auto 90% no-repeat; padding: 0 0 36px; }
.home-feature .two-col { padding-top: 36px; align-items: center; grid-template-columns: 396px 1fr; padding-left: 132px; }
.feature-heading { font: 600 24px/28.8px var(--display); margin-bottom: 30px; }
.home-feature .prose p { margin-bottom: 30px; }
.home-feature .btn { margin-top: 6px; }
.home-feature .col-side img { width: 396px; }
.home-about { color: #fff; background: linear-gradient(rgba(27,29,28,.2), rgba(27,29,28,0)), url("/img/purple-signature-bg2.webp") center / cover; }
.home-about .two-col { padding: 60px 36px 36px; }
.home-about h2 { font: 400 35px/42px var(--serif); }
.about-lead p { font-size: 20px; line-height: 30px; margin: 36px 0; }
.follow { font: 600 12px/1 var(--ui); letter-spacing: 2.4px; text-transform: uppercase; margin: 48px 0 24px; }
.follow-icons, .about-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.follow-icons a { color: var(--gold); }
.follow-icons .icon { width: 30px; height: 34px; }
.home-about .col-side img { width: 364px; margin-left: 81px; }

/* ---------------------------------------------------------------- about */
.about { background: var(--cream); padding: 22px 0 40px; }
.about .two-col { column-gap: 36px; }
.about .headline { font-weight: 400; margin-bottom: 36px; }
.about-text p { font-size: 17px; line-height: 25.5px; margin: 0 0 36px; }
.about-social { margin: 0 0 36px 18px; }
.about-social .icon { width: 40px; height: 44px; }
.about-social .fb { color: #c99a5e; }
.about-social .tw { color: #1fb0e0; }
.about .prose a { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */
.footer-girl { height: 72px; background: #000 url("/img/girl-with-books-footer.webp") center / cover; }
.footer-bar { background: #000; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 73px; }
.footer-inner p { margin: 0; font-size: 13.125px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.footer-social a { color: #fff; text-decoration: none; display: inline-flex; }
.footer-social .icon { width: 13px; height: 13px; }
.footer-social .bookbub { font: 700 19px/1 Georgia, serif; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1280px) {
  .car-prev { left: 4px; } .car-next { right: 4px; }
  .menu-top { font-size: 13px; padding: 0 10px; }
  .logo img { width: 320px; }
}

@media (max-width: 959px) {
  .header-inner { height: 82px; }
  .site-header.is-transparent { position: relative; background: var(--plum); }
  .book-main.layout-purple { padding-top: 60px; }
  .logo img { width: 210px; }
  .nav-toggle { display: grid; place-items: center; background: none; border: 0; color: #fff; width: 44px; height: 44px; font-size: 22px; cursor: pointer; margin-right: -10px; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--plum); padding: 8px 0 24px; max-height: calc(100vh - 82px); overflow-y: auto; }
  .nav-open .site-nav { display: block; }
  .menu { display: block; }
  .menu > li { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); }
  .menu-top { font-size: 16px; line-height: 1.3; padding: 16px 24px; flex: 1; }
  .menu > li:last-child .menu-top { padding-right: 24px; }
  .sub-toggle { margin: 0; padding: 0 24px; font-size: 14px; align-self: stretch; min-height: 52px; min-width: 64px; }
  .has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
  .mega { position: static; width: auto; flex-basis: 100%; background: rgba(0,0,0,.2); padding: 8px 24px 16px; grid-template-columns: 1fr; }
  .has-sub.open > .menu-top::after { display: none; }
  .has-sub.open .mega { display: grid; }
  .menu-col-head { font-size: 14px; padding: 10px 0 4px; }
  .mega li li a { font-size: 16px; padding: 8px 0 8px 12px; }

  .two-col { grid-template-columns: 1fr; row-gap: 36px; }
  .book-main .col-side { order: -1; }
  .book-main .col-side .device img { max-width: 70%; }
  .book-main.layout-light .col-text { padding-top: 0; }
  .hero { padding: 48px 0 80px; }
  .grid-shelf { grid-template-columns: repeat(3, 1fr); }
  .home-feature .two-col { grid-template-columns: 1fr; padding-left: 36px; }
  .home-feature .col-side { order: -1; }
  .home-feature .col-side img { width: 100%; max-width: 396px; }
  .grid-series { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .car-track { grid-auto-columns: calc((100% - 36px) / 2.3); }
  .car-btn { display: none; }
  .home-about .col-side img { width: 100%; max-width: 364px; margin-left: 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .hero-genre { font-size: 14px; letter-spacing: 6px; }
  .headline, .tagline, .audiobook h2 { font-size: 30px; line-height: 36px; }
  .prose p, .prose ul { font-size: 17px; line-height: 29px; }
  .home-hero-img { height: 220px; }
  .tagline { margin-bottom: 40px; }
  .grid-more { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-series { grid-template-columns: repeat(2, 1fr); }
  .grid-shelf { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .shelf-heading { font-size: 24px; line-height: 30px; }
  .ab-boxes { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 14px; padding: 24px 0; text-align: center; }
  .home-about .two-col { padding: 48px 16px 36px; }
  .home-about h2 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 600px) { .home-feature .two-col { padding-left: 16px; } }
