/* simplyfolia.com: the app's tokens (mobile/src/theme) on the web. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/CormorantGaramond-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/CormorantGaramond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/DMSans-normal.woff2') format('woff2');
}

:root {
  --forest: #003713;
  --cream: #f7f5ee;
  --paper: #ede9e0;
  --mist: #e2ece6;
  --ink: #070d08;
  --body: #414940;
  --muted: #736a60;
  --sage: #4a7a5c;
  --rule: rgba(0, 0, 0, 0.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sage); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--forest); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: 0.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; max-width: 18ch; }
h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 12px; background: var(--forest); color: var(--cream); padding: 8px 14px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { left: 12px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.lede { font-size: 19px; color: var(--body); max-width: 34em; }

.icon { width: 28px; height: 28px; color: var(--forest); flex: none; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 245, 238, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header:has(+ main .legal-hero), .legal .site-header { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-header nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--forest); }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark span { font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: 0.14em; color: var(--forest); line-height: 1; padding-bottom: 3px; }

.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.site-footer nav a { color: var(--body); }
.footer-legal { color: var(--muted); font-size: 13px; margin-top: 40px; }

/* Home */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--r-xl); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 15px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(74, 122, 92, 0.15); }

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section h2 { margin-bottom: 20px; }

.features { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-xl); overflow: hidden; }
.feature { background: var(--cream); padding: 32px 28px 36px; }
.feature .icon { margin-bottom: 20px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 16px; }

.split { background: var(--paper); }
.split + .split { padding-top: 0; }
.split-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-photo { order: 2; }
.split-photo { margin: 0; }
.split-photo img { border-radius: var(--r-xl); aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.split-copy .icon { margin-bottom: 20px; }
.split-copy p:not(.eyebrow) { max-width: 30em; }

.privacy-band { background: var(--forest); color: rgba(247, 245, 238, 0.82); }
.privacy-band h2, .privacy-band h3 { color: var(--cream); }
.privacy-band .eyebrow { color: #9cc2a8; }
.privacy-band .icon { color: #9cc2a8; }
.privacy-band a { color: var(--cream); }
.promises { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.promises li { display: flex; gap: 16px; }
.promises h3 { margin-bottom: 6px; }
.promises p { font-size: 16px; }
.more { margin-top: 48px; font-size: 15px; }

.photo-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 12px; }
.photo-strip img { width: 100%; height: clamp(180px, 26vw, 340px); object-fit: cover; border-radius: var(--r-lg); }

.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.contact p:not(.eyebrow):not(.contact-link) { max-width: 32em; }
.contact-link { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 300; justify-self: end; }
.contact-link a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Legal */
.legal-hero { padding: clamp(40px, 7vw, 88px) 0 32px; }
.legal-hero h1 { margin-bottom: 16px; }
.updated { margin-top: 20px; font-size: 14px; color: var(--muted); }
.legal-body { padding-bottom: 72px; }
.legal-body .intro { font-size: 18px; padding: 24px 0 8px; border-top: 1px solid var(--rule); }
.legal-section { padding: 32px 0; border-top: 1px solid var(--rule); }
.legal-body .intro + .legal-section { margin-top: 24px; }
.legal-section h2 { font-size: clamp(26px, 3vw, 32px); max-width: none; margin-bottom: 14px; display: flex; gap: 16px; align-items: baseline; }
.legal-section .num { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--sage); }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 14px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 6px; }
.legal-section .note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.legal-contact { margin-top: 16px; padding: 24px; background: var(--mist); border-radius: var(--r-lg); font-size: 16px; }

.nf-photo { margin-top: 48px; }
.nf-photo img { border-radius: var(--r-xl); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-inner, .split-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .split.reverse .split-photo { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; gap: 28px; }
  .contact-link { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header nav a:not(:last-child) { display: none; }
  .features { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:first-child { grid-column: span 2; }
  .wordmark span { font-size: 26px; }
}
