/* begu.life. Colours and faces come from brands/begu-farsi/theme.json; the site is light only,
   like the brand's parchment ground. Sun (#D18050) and gold are decorative only. */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/assets/fonts/NunitoSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/assets/fonts/NunitoSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('/assets/fonts/NunitoSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --parchment: #FCF9F0;
  --parchment-deep: #F3EAD6;
  --surface: #FFFDF7;
  --border: #E4D9C2;
  --cypress: #28351E;
  --olive: #5E6B4F;
  --olive-deep: #4F5B41;
  --earth: #875033;
  --clay: #A5582F;
  --apricot: #E19E63;
  --sand: #D8AE7A;
  --sage: #B9C2A6;
  --mist: #E7EFE6;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--parchment); color: var(--cypress); font: 400 1.125rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cypress); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cypress); color: var(--parchment); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.stack-m > * + * { margin-top: 22px; }
.stack-l > * + * { margin-top: clamp(36px, 4vw, 56px); }
.stack-xl > * + * { margin-top: clamp(44px, 5vw, 72px); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; }
.wordmark { font: 700 2.125rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 1rem; font-weight: 600; }
.site-header nav a { text-decoration: none; padding-block: 10px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 80px); position: relative; z-index: 2; }
.hero-copy { padding-bottom: clamp(24px, 8vw, 150px); min-width: 0; }
.eyebrow { font-weight: 600; color: var(--earth); margin-bottom: 18px; }
.hero h1 { font: 700 clamp(3.1rem, 7.4vw, 6.5rem)/0.98 var(--display); letter-spacing: -0.02em; }
.lede { margin-top: 28px; max-width: 31em; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--olive); }
.prose .lede { margin-top: 0; }
.stores { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stores li { padding: 13px 24px; border-radius: 999px; background: var(--cypress); color: var(--parchment); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.price { margin-top: 16px; color: var(--olive); font-size: 1.05rem; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 32px); padding-top: 24px; min-width: 0; }
.sun { position: absolute; left: 50%; top: 0; width: min(92%, 560px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--apricot); }
.hero-phones .phone { position: relative; width: clamp(140px, 21vw, 290px); flex: none; }
.phone-low { margin-top: 56px; }
.ridges { display: block; width: 100%; height: clamp(120px, 18vw, 260px); margin-top: clamp(-190px, -12vw, -80px); position: relative; z-index: 3; }

.phone { background: var(--cypress); padding: 6px; border-radius: 30px; }
.phone img { border-radius: 25px; width: 100%; }

/* Course band */
.band-dark { background: var(--cypress); color: var(--parchment); padding-block: clamp(56px, 7vw, 104px); }
.band-dark a { color: var(--parchment); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px 72px; align-items: end; }
.split h2 { font: 600 clamp(2.4rem, 4.8vw, 4.1rem)/1.06 var(--display); letter-spacing: -0.01em; }
.split p { max-width: 34em; font-size: 1.25rem; color: var(--mist); }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 36px 28px; }
.outcomes li { border-top: 2px solid var(--sand); padding-top: 18px; display: flex; flex-direction: column; font-size: 1.2rem; line-height: 1.4; }
.outcomes .label { font-size: 0.95rem; font-weight: 600; color: var(--sage); }
.outcomes .num { font: 600 3.75rem/1 var(--display); color: var(--apricot); margin-bottom: 14px; }
.stack-xl > .course-note { margin-top: 20px; font-size: 1.1rem; color: var(--sage); }
.coming-soon { font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--display); color: var(--olive); }

/* Screens */
.intro { max-width: 760px; }
.intro h1, .intro h2, .ruled h2, .features h2, .know h2, .closing h2 { font: 600 clamp(2.25rem, 4.4vw, 3.75rem)/1.08 var(--display); }
.intro h1 { font-weight: 700; font-size: clamp(2.9rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -0.02em; }
.intro p { margin-top: 14px; font-size: 1.25rem; color: var(--olive); }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 220px), 1fr)); gap: 44px clamp(16px, 2.6vw, 36px); }
.shot { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shot h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.shot p { font-size: 1.05rem; line-height: 1.5; color: var(--olive); }
.ruled { border-top: 1px solid var(--border); padding-top: clamp(44px, 5vw, 72px); }

/* Features */
.band-sand { background: var(--parchment-deep); }
.features { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.features h2 { flex: 1 1 320px; min-width: 0; }
.features dl { flex: 999 1 560px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 48px; }
.features dl div { border-top: 1px solid var(--sand); padding-block: 22px 26px; }
.features dt { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.features dd { margin: 0; font-size: 1.125rem; line-height: 1.55; color: var(--olive-deep); }

/* Know */
.know { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 56px; }
.know h2 { grid-column: 1 / -1; max-width: 16em; }
.know h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.know p { color: var(--olive); }

/* Closing */
.closing { border-top: 1px solid var(--border); padding-block: clamp(56px, 7vw, 96px); }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.closing-row img { width: clamp(140px, 17vw, 220px); }
.closing-row > div { flex: 1 1 420px; min-width: 0; }
.closing h2 { font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.01em; }
.closing .stores { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px 44px; font-size: 1rem; color: var(--olive); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-links { display: flex; gap: 24px; }
.footer-legal { margin-top: 12px; font-size: 0.9rem; }

/* Prose: privacy and blog posts */
.prose { max-width: 808px; font-size: 1.19rem; line-height: 1.7; }
.prose > * + * { margin-top: 22px; }
.prose h1 { font: 700 clamp(2.5rem, 5.4vw, 4.1rem)/1.04 var(--display); letter-spacing: -0.015em; }
.prose h2 { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--display); margin-top: 40px; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--sand); color: var(--olive-deep); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose pre { overflow-x: auto; background: var(--surface); padding: 16px; border-radius: 12px; }
.prose img { border-radius: 20px; }
.meta { font-size: 1rem; color: var(--olive); display: block; }
.back { font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block; }
.callout-dark { background: var(--cypress); color: var(--parchment); padding: 26px 30px; border-radius: 24px; }
.callout-dark h2 { margin: 0 0 8px; font-size: 1.75rem; }
.callout-dark p { color: var(--mist); }
.post-body > * + * { margin-top: 22px; }
.post-hero img { width: 100%; border-radius: 24px; }
.post-hero { margin: 0; }
.post-figure { margin: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.post-figure .phone { width: min(100%, 300px); }
.post-figure figcaption { font-size: 1rem; color: var(--olive); text-align: center; }
.post-cta { margin-top: 48px; padding: 28px 30px; border-radius: 24px; background: var(--mist); }
.post-cta .cta-title { font: 600 1.6rem/1.2 var(--display); margin-bottom: 6px; }
.post-cta p:last-child { font-size: 1.05rem; color: var(--olive-deep); }

/* Blog index */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 48px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; border-top: 1px solid var(--sand); padding-block: 24px 32px; text-decoration: none; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 18px; margin-bottom: 6px; }
.post-card time { font-size: 0.95rem; font-weight: 700; color: var(--earth); }
.post-card h2 { font: 600 1.75rem/1.15 var(--display); }
.post-card p { font-size: 1.05rem; color: var(--olive); }
.post-card a:hover h2 { color: var(--clay); }
.pager { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
