/* frommileone.com. Night is the default look; a warm paper look for people who ask for light. */
:root {
  --night: #0F1226; --dusk: #1B1F3B; --panel: #22284A; --line: #343B66;
  --ink: #F4EFE6; --mute: #A9A6C2;
  --amber: #F6B35C; --tail: #F06A7A; --sodium: #FFD9A0; --teal: #7FD1C7;
  --paper: #FBF6EE; --paper-ink: #2A2440;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--sodium); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.05; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 800 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.lede { color: #D8D3E8; max-width: 58ch; margin: 0; font-size: 19px; }
.muted { color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 22px; font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-amber { background: var(--amber); color: #1B1F3B; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-amber:hover { background: #FFC67A; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mute); }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(15,18,38,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(52,59,102,.6); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: italic 400 24px/1 var(--display); }
.logo img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 999px; }
.top nav a.btn { padding: 10px 16px; }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-block: 72px 64px; display: grid; gap: 22px; min-height: 560px; align-content: end; }
.hero h1 { font-size: clamp(46px, 8vw, 92px); max-width: 13ch; }
.hero h1 em { color: var(--amber); }
.hero .lede { max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { font-size: 14px; color: #D8D3E8; }

section.band { padding-block: 84px; }
.band-head { display: grid; gap: 12px; margin-bottom: 34px; }
.band-head h2 { font-size: clamp(34px, 5vw, 54px); }

/* how it works: a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--dusk); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; counter-increment: s; }
.steps li::before { content: counter(s); font: italic 400 40px/1 var(--display); color: var(--amber); }
.steps h3 { font-size: 28px; }
.steps p { margin: 0; color: #D8D3E8; }

/* features */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feat { background: var(--dusk); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feat h3 { font-size: 30px; }
.feat p { margin: 0; color: #D8D3E8; }
.feat .k { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

/* the book band */
.book-band { background: var(--paper); color: var(--paper-ink); }
.book-band .lede { color: #4A3F5C; }
.book-band .eyebrow { color: #95500F; }
.top nav a.btn-amber, .top nav a.btn-amber:visited { color: #1B1F3B; }
.spread { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(42,36,64,.45); border: 1px solid #E6DCCB; }
.pg { aspect-ratio: 1; padding: 9%; display: grid; align-content: space-between; min-width: 0; }
.pg + .pg { border-left: 1px solid #E6DCCB; background: #F7F0E3; text-align: center; align-content: center; justify-items: center; gap: 10px; }
.pg .chap { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6F6455; }
.pg .t { font: 400 clamp(24px, 3vw, 34px)/1.1 var(--display); }
.pg .b { font: 400 clamp(14px, 1.5vw, 17px)/1.6 Georgia, serif; color: #3D3550; }
.pg .by { font: italic 400 clamp(22px, 3vw, 32px) var(--display); }
.pg .names { font: 700 clamp(26px, 3.2vw, 36px)/1 var(--hand); color: #4A3F5C; }
.pg .rule { width: 40%; height: 1px; background: #D9CDB9; }
.pg .plug { font-size: 12px; color: #5F5470; display: grid; gap: 4px; justify-items: center; }
.pg .plug em { font: italic 400 16px var(--display); color: var(--paper-ink); }
.qr { width: 80px; height: 80px; background: #fff; padding: 6px; border-radius: 6px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center; }
.two > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); color: var(--teal); }
.book-band .ticks li::before { color: #B5651D; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.post { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.post svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post .ov { position: absolute; left: 7%; right: 7%; bottom: 8%; display: grid; gap: 4px; }
.post .ov small { font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sodium); }
.post .ov b { font: italic 400 26px/1.05 var(--display); color: #fff; }
.chip { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; background: rgba(15,18,38,.66); color: #fff; border-radius: 999px; padding: 5px 10px 5px 6px; font: italic 400 13px/1 var(--display); }
.chip img { width: 16px; height: 16px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.price { background: var(--dusk); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.price.main { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.price .n { font: 400 64px/1 var(--display); color: var(--sodium); font-variant-numeric: tabular-nums; }
.price .n small { font: 600 15px var(--body); color: var(--mute); }
.price h3 { font-size: 30px; }

/* faq */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--dusk); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: #D8D3E8; }

/* forms */
.form { background: var(--dusk); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--mute); }
.input, textarea, select { width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: var(--night); color: var(--ink); padding: 12px 14px; font: 16px var(--body); }
textarea { min-height: 140px; resize: vertical; font: 24px/1.3 var(--hand); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.seg { display: inline-flex; background: var(--night); padding: 4px; border-radius: 999px; gap: 2px; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--mute); border-radius: 999px; padding: 9px 16px; font: 700 15px var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--amber); color: #1B1F3B; }
.note { background: var(--panel); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #D8D3E8; }
.err { color: var(--tail); font-size: 14px; font-weight: 600; }
.giftcard { border-radius: 18px; padding: 18px; background: linear-gradient(160deg, #1B1F3B, #3A2A5A 70%, #7A3E5C); display: grid; gap: 6px; }
.giftcard small { font: 800 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sodium); }
.giftcard b { font: italic 400 30px/1.1 var(--display); }
.giftcard p { margin: 0; font: 500 22px/1.3 var(--hand); color: #FFE6C2; white-space: pre-wrap; }

/* legal pages */
.doc { max-width: 760px; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.doc h2 { font-size: 30px; margin: 40px 0 10px; }
.doc h3 { font: 700 17px var(--body); margin: 22px 0 6px; }
.doc p, .doc li { color: #E4E0EE; }
.doc .updated { color: var(--mute); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .tbl { overflow-x: auto; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }

footer.site { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--mute); font-size: 14px; }
footer.site .wrap { display: grid; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .hero .wrap { padding-block: 56px 48px; min-height: 520px; }
  section.band { padding-block: 60px; }
  .spread { grid-template-columns: 1fr; }
  .pg + .pg { border-left: 0; border-top: 1px solid #E6DCCB; }
}
.logo, .top .btn { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 20px; } .logo img { width: 28px; height: 28px; } .top nav a.btn { padding: 9px 13px; font-size: 14px; } }
@media (max-width: 760px) { .gift-preview { order: -1; position: static !important; } }
