/* ------------------------------------------------------------------
   Fernpoints — a Sydney illustration studio. Warm cream canvas,
   sage + terracotta accents, serif display over humanist sans. The
   site reads like a printed fanzine: editorial columns, hand-drawn
   accents, and generous white space.
   ------------------------------------------------------------------ */

:root {
  --cream: #F7F1E6;
  --cream-2: #EFE6D3;
  --paper: #FFFDF8;
  --ink: #2A201A;
  --ink-2: #5B4E42;
  --ink-3: #948474;
  --line: #E0D3B8;
  --sage: #4A7C6B;
  --sage-soft: #7FA396;
  --terracotta: #B66044;
  --terracotta-soft: #D88C70;
  --ochre: #D4A24C;
  --t-fast: 150ms ease;
  --t: 280ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); font-family: 'Nunito', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sage); color: var(--paper); }

/* Custom scrollbar */
html { scrollbar-color: var(--sage) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage-soft); border: 2px solid var(--cream); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* ---- Shared layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }

/* ---- Page loader ---- */
#fp-loader { position: fixed; inset: 0; background: var(--cream); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 450ms ease 200ms, visibility 0s 650ms; }
#fp-loader.is-done { opacity: 0; visibility: hidden; }
.fp-loader-mark { font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 500; font-style: italic; font-size: 32px; letter-spacing: -0.02em; color: var(--ink); opacity: 0.9; }
.fp-loader-mark::after { content: ''; display: block; width: 42px; height: 1px; background: var(--sage); margin: 14px auto 0; transform-origin: left; animation: fpLoadLine 1.6s ease-in-out infinite; }
@keyframes fpLoadLine { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---- Section tag (monospace) ---- */
.tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.tag::before { content: '→'; margin-right: 10px; color: var(--sage); opacity: 0.7; }

/* ---- Typography ---- */
.display { font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; }
.display em { font-style: italic; color: var(--terracotta); font-weight: 400; }
h1.display { font-size: clamp(44px, 7vw, 86px); }
h2.display { font-size: clamp(32px, 4.5vw, 54px); margin: 0 0 22px; }
h3.display { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 10px; }
p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; line-height: 1.75; }

/* ---- Nav (glass) ---- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(247, 241, 230, 0.78); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(224, 211, 184, 0.6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-brand { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.nav-brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--ink-2); position: relative; transition: color var(--t-fast); }
.nav-links a:hover { color: var(--sage); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--sage); transition: width var(--t); }
.nav-links a:hover::after { width: 100%; }
.nav-mobile-btn { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-mobile { display: none; padding: 20px 0; border-top: 1px solid var(--line); }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { padding: 10px 0; font-size: 15px; }

/* ---- Hero ---- */
.hero { padding: 96px 0 80px; position: relative; min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 12px; }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.hero-title { margin: 0 0 28px; }
.hero-sub { font-size: 18px; color: var(--ink-2); line-height: 1.75; max-width: 500px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 58px; padding-top: 30px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta strong { color: var(--ink); font-weight: 500; display: block; font-size: 22px; font-family: 'Fraunces', serif; letter-spacing: -0.01em; text-transform: none; margin-bottom: 4px; }
.hero-image-wrap { position: relative; }
.hero-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); box-shadow: 24px 24px 0 -1px var(--sage-soft); }
.hero-image-tape { position: absolute; top: -16px; left: 30px; width: 90px; height: 22px; background: var(--terracotta-soft); transform: rotate(-4deg); opacity: 0.7; }
.hero-image-tape.alt { top: auto; bottom: -12px; left: auto; right: 40px; background: var(--ochre); transform: rotate(3deg); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); cursor: pointer; border: none; }
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 6px 0 -1px var(--sage); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -1px var(--sage); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 18px 34px; font-size: 13px; }
.btn-sm { padding: 11px 20px; font-size: 11px; }

/* ---- Marquee ---- */
.marquee-wrap { background: var(--ink); color: var(--cream); padding: 22px 0; overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.marquee-track { display: flex; white-space: nowrap; animation: fpMarquee 32s linear infinite; }
.marquee-item { font-family: 'Fraunces', serif; font-size: 20px; font-style: italic; padding: 0 44px; display: inline-flex; align-items: center; gap: 16px; opacity: 0.9; }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
@keyframes fpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Products ---- */
.products-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; flex-wrap: wrap; gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.product-card { position: relative; background: var(--paper); border: 1px solid var(--line); padding: 24px; transition: transform var(--t), box-shadow var(--t); }
.product-card:hover { transform: translateY(-4px); box-shadow: 16px 16px 0 -2px var(--sage-soft); }
.product-card-index { position: absolute; top: 18px; right: 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; }
.product-media { aspect-ratio: 4/5; overflow: hidden; margin-bottom: 22px; position: relative; background: var(--cream-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.product-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
.product-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.7; }
.product-row { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.product-price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; color: var(--ink); }
.product-price small { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); margin-left: 5px; letter-spacing: 0.12em; }
.product-buy { background: none; border: none; padding: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); cursor: pointer; transition: color var(--t-fast); border-bottom: 1px solid var(--terracotta); padding-bottom: 3px; }
.product-buy:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Bundle ---- */
.bundle { background: var(--ink); color: var(--cream); }
.bundle-wrap { display: grid; grid-template-columns: 1fr 0.85fr; gap: 80px; align-items: center; }
.bundle .tag { color: var(--ochre); }
.bundle .tag::before { color: var(--ochre); }
.bundle h2.display { color: var(--cream); margin-bottom: 18px; }
.bundle h2.display em { color: var(--ochre); }
.bundle-desc { color: rgba(247, 241, 230, 0.72); font-size: 16px; line-height: 1.75; max-width: 460px; margin-bottom: 32px; }
.bundle-list { list-style: none; margin: 0 0 36px; padding: 0; columns: 2; column-gap: 30px; }
.bundle-list li { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--cream); padding: 10px 0; border-bottom: 1px solid rgba(247, 241, 230, 0.15); break-inside: avoid; display: flex; align-items: center; gap: 10px; }
.bundle-list li::before { content: ''; width: 14px; height: 1px; background: var(--ochre); }
.bundle-price { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.bundle-price .p-new { font-family: 'Fraunces', serif; font-size: 54px; font-weight: 400; letter-spacing: -0.02em; color: var(--ochre); }
.bundle-price .p-new em { font-style: italic; }
.bundle-price .p-old { font-family: 'Fraunces', serif; font-size: 20px; color: rgba(247, 241, 230, 0.5); text-decoration: line-through; }
.bundle-price .p-note { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta-soft); }
.bundle .btn-primary { background: var(--ochre); color: var(--ink); box-shadow: 0 6px 0 -1px var(--terracotta); }
.bundle .btn-primary:hover { box-shadow: 0 10px 0 -1px var(--terracotta); }
.bundle-media { position: relative; }
.bundle-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.bundle-media::before { content: ''; position: absolute; inset: -22px -22px 22px 22px; border: 1px solid rgba(212, 162, 76, 0.6); z-index: 0; }
.bundle-media img { position: relative; z-index: 1; }

/* ---- About ---- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-copy p { color: var(--ink-2); line-height: 1.8; margin-bottom: 16px; }
.about-copy p:first-of-type { font-size: 18px; color: var(--ink); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-stat strong { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 400; display: block; color: var(--ink); letter-spacing: -0.02em; }
.about-stat span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.about-image { aspect-ratio: 3/4; object-fit: cover; width: 100%; border: 1px solid var(--line); box-shadow: -22px 22px 0 -2px var(--terracotta-soft); }

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--paper); padding: 30px 26px; border: 1px solid var(--line); position: relative; }
.review-quote { font-family: 'Fraunces', serif; font-size: 58px; line-height: 1; color: var(--sage); opacity: 0.5; position: absolute; top: 6px; left: 18px; font-style: italic; }
.review-stars { margin-bottom: 14px; color: var(--ochre); letter-spacing: 2px; font-size: 14px; position: relative; }
.review-body { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 18px; position: relative; }
.review-meta { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 14px; font-weight: 500; }
.review-meta strong { font-size: 14px; color: var(--ink); font-weight: 500; display: block; }
.review-meta span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ---- Contact ---- */
.contact { background: var(--cream-2); }
.contact-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.contact-head .tag { justify-content: center; }
.contact-head h2.display { margin-bottom: 14px; }
.contact-head p { color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.contact-card { background: var(--paper); padding: 28px 24px; border: 1px solid var(--line); text-align: center; }
.contact-card .icon { width: 36px; height: 36px; margin: 0 auto 16px; color: var(--sage); }
.contact-card .k { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-card .v { font-family: 'Fraunces', serif; font-size: 17px; color: var(--ink); }
.contact-card a.v { color: var(--terracotta); }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--cream); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; margin-bottom: 52px; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 30px; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 14px; color: rgba(247, 241, 230, 0.6); line-height: 1.7; max-width: 320px; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ochre); margin: 0 0 18px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col li a { color: rgba(247, 241, 230, 0.72); transition: color var(--t-fast); }
.footer-col li a:hover { color: var(--ochre); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(247, 241, 230, 0.15); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247, 241, 230, 0.5); }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li a { color: rgba(247, 241, 230, 0.6); }
.footer-bottom li a:hover { color: var(--ochre); }

/* ---- Legal pages ---- */
.legal-hero { padding: 96px 0 36px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0 0 12px; }
.legal-hero .tag { margin-bottom: 18px; }
.legal-page { padding: 64px 0 112px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin: 36px 0 14px; color: var(--ink); letter-spacing: -0.01em; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 20px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--terracotta); text-decoration: underline; text-decoration-color: rgba(182, 96, 68, 0.4); text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: var(--terracotta); }
.legal-updated { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }

/* ---- Result (success/cancel) ---- */
.result-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; background: var(--cream); }
.result-card { max-width: 520px; width: 100%; background: var(--paper); border: 1px solid var(--line); padding: 64px 44px; box-shadow: 18px 18px 0 -2px var(--sage-soft); }
.result-icon { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background: var(--sage); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.result-icon.cancel { background: var(--terracotta); }
.result-page h1.display { font-size: 40px; margin: 0 0 14px; }
.result-page .lead { margin: 0 auto 28px; color: var(--ink-2); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .hero { padding: 64px 0 48px; min-height: auto; }
  .hero-grid, .bundle-wrap, .about-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .reviews-grid, .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: inline-flex; }
  .bundle-list { columns: 1; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .result-card { padding: 48px 28px; }
}
