/* Luna & Co. Publishing: site styles */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #2B2560;
  --night-2: #3A3380;
  --lilac: #C9B8F0;
  --lilac-soft: #E4DCF7;
  --peach: #F4A988;
  --moon: #F6E7C8;
  --ground: #F7F5FC;
  --ink: #1F1B3A;
  --muted: #5A5478;
  --on-night: #E6E1F7;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--night); }
a:hover { color: #4A3F99; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 40px); color: var(--night); }
p { margin: 0; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent; }
.btn-peach { background: var(--peach); color: var(--night); }
.btn-peach:hover { background: #F7BBA1; color: var(--night); }
.btn-outline { color: #fff; border-color: var(--lilac); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-2); color: #fff; }

/* header */
.site-header { background: var(--night); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; font-size: 16px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--lilac); }
.socials { display: flex; gap: 6px; }
.icon-link { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.icon-link:hover { color: var(--lilac); background: rgba(255,255,255,0.06); }
.icon-link svg { width: 22px; height: 22px; }

/* hero */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 720px; }
.hero .lead { font-size: 20px; max-width: 600px; color: var(--on-night); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* sections */
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* books */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.book { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(43,37,96,0.08); }
.book img { border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; height: auto; background: var(--lilac-soft); }
.book h3 { font-size: 22px; }
.book .by { font-size: 15px; color: var(--muted); }
.book .blurb { font-size: 16px; color: var(--muted); }
.book .btn { margin-top: auto; text-align: center; font-size: 16px; padding: 12px 18px; }

/* coming soon */
.soon { background: var(--lilac-soft); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.soon img { width: 140px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.soon .text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.soon .eyebrow { color: #4A3F99; }
.soon h2 { font-size: 32px; }
.soon p { font-size: 18px; color: #3E3862; }

/* free download */
.free { background: #fff; }
.free .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.free .text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.free .text p { color: var(--muted); font-size: 18px; }
.free .cta { flex: 0 1 auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.small { font-size: 14px; color: var(--muted); }

/* about */
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.about .badge { width: 220px; height: 220px; border-radius: 50%; background: var(--night); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about .text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.about .text p { font-size: 18px; color: #3E3862; }

/* footer */
.site-footer { background: var(--night); color: var(--on-night); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; }
.site-footer a { color: var(--on-night); }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .label { font-size: 15px; font-weight: 700; color: #fff; }
.site-footer .socials .icon-link { border: 1px solid #5A51A8; }
.site-footer .legal { flex-basis: 100%; font-size: 14px; color: #B9B2D6; }

@media (max-width: 640px) {
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .soon { padding: 28px; }
  .about .badge { width: 160px; height: 160px; }
}
.soon-wrap { padding-bottom: 88px; }
