/* OptiRoth's shared look (owner 2026-11-10: every page exactly like the homepage). The homepage and every other page load
   this file; page-specific styles stay in each page. Change the shared look here, not in a page. */
@font-face { font-family: "Source Serif 4"; src: url(/homepage2/fonts/serif.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/homepage2/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
/* fallbacks sized to the web fonts' metrics, so the swap doesn't move the page */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"), local("Liberation Serif"), local("DejaVu Serif"); size-adjust: 103%; ascent-override: 89%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("DejaVu Sans"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }

:root {
  --bg: #f3f4f1; --panel: #ffffff; --panel2: #f8f9f6;
  --ink: #1b2420; --muted: #5b6760; --line: #dfe2dc; --line2: #eceee9; --grid: #d3d8cf;
  --accent: #4fb98d; --accent-soft: #e2f0e9; --accent-ink: #0b1410;  /* one green in both modes: the logo's (owner 11-09); dark text on it */
  --mark-ink: #ffffff;  /* the logo's lines: white here, near-black in dark mode (logo.py) */
  --hero: #12503b; --hero-sub: #bfe0d1; --hero-ink: #ffffff;
  --roth: #17644a; --trad: #b5812f; --bar-base: #a9a28f; --warn: #a23a17;
  --nav-bg: rgba(243, 244, 241, .94);
  --frame-shadow: 0 1px 1px rgba(18, 40, 30, .04), 0 6px 16px -6px rgba(18, 40, 30, .10), 0 28px 56px -24px rgba(18, 40, 30, .18);
  --art-ink: #5b6760;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, sans-serif;
  /* type: a 1.25 scale from 17px */
  --t-1: .8125rem; --t0: 1.0625rem; --t1: 1.328rem; --t2: 1.66rem; --t3: 2.075rem; --t4: 2.594rem; --t5: 3.242rem;
  /* space: a 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px; --s32: 128px;
  --gutter: 16px; --col-gap: 16px;
  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --d1: 160ms; --d2: 280ms; --d3: 400ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1311; --panel: #171d1a; --panel2: #1c2420;
  --ink: #e7ece9; --muted: #9ba8a1; --line: #2b3530; --line2: #222b27; --grid: #222b27;
  --accent: #4fb98d; --accent-soft: #1d2d26; --accent-ink: #0b1410; --mark-ink: #0b1410;
  --hero: #1b3d31; --hero-sub: #a9cdbd; --hero-ink: #f2f8f5;
  --roth: #4fb98d; --trad: #d9a85b; --bar-base: #6d6a5d; --warn: #ee9372;
  --nav-bg: rgba(15, 19, 17, .93);
  --frame-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 24px -10px rgba(0, 0, 0, .55), 0 36px 72px -28px rgba(0, 0, 0, .7);
  --art-ink: #9ba8a1;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0f1311; --panel: #171d1a; --panel2: #1c2420;
  --ink: #e7ece9; --muted: #9ba8a1; --line: #2b3530; --line2: #222b27; --grid: #222b27;
  --accent: #4fb98d; --accent-soft: #1d2d26; --accent-ink: #0b1410; --mark-ink: #0b1410;
  --hero: #1b3d31; --hero-sub: #a9cdbd; --hero-ink: #f2f8f5;
  --roth: #4fb98d; --trad: #d9a85b; --bar-base: #6d6a5d; --warn: #ee9372;
  --nav-bg: rgba(15, 19, 17, .93);
  --frame-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 24px -10px rgba(0, 0, 0, .55), 0 36px 72px -28px rgba(0, 0, 0, .7);
  --art-ink: #9ba8a1;
  color-scheme: dark;
}
/* light and dark screenshots: each mode shows its own */
.dk { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt { display: none !important; } :root:not([data-theme="light"]) .dk { display: block !important; } }
:root[data-theme="dark"] .lt { display: none !important; } :root[data-theme="dark"] .dk { display: block !important; }
@media (min-width: 768px) { :root { --gutter: 32px; --col-gap: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; --col-gap: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; hanging-punctuation: first; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t0)/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--d1) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
.num, .money, table { font-variant-numeric: tabular-nums lining-nums; }
.w { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.ui { font-family: var(--sans); }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 30; padding: var(--s2) var(--s4); border-radius: 6px; background: var(--ink); color: var(--bg); font: 500 .875rem/1.4 var(--sans); }
.skip:focus { top: var(--s3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scrollbar-color: var(--line) transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 .9375rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--d1) var(--ease-out), border-color var(--d1) var(--ease-out), color var(--d1) var(--ease-out), box-shadow var(--d1) var(--ease-out); }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); text-decoration: none; }
.btn:active { box-shadow: none; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--ink); background: transparent; box-shadow: none; }
.btn.lg { min-height: 52px; padding: 0 var(--s6); font-size: 1rem; border-radius: 10px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; transition: background-color var(--d2) var(--ease-out), box-shadow var(--d2) var(--ease-out); }
.nav.stuck { background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .w { display: flex; align-items: center; gap: var(--s2); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font: 650 1.3rem/1 var(--serif); letter-spacing: -.012em; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; color: var(--mark-ink); } .mark svg { display: block; width: 100%; height: 100%; }  /* the logo (logo.py) */
.tm { font-size: .45em; vertical-align: super; font-weight: 400; margin-left: 1px; }
.nl { font: 500 .9375rem/1 var(--sans); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.nl:hover { color: var(--accent); text-decoration: none; }
.nl[aria-current] { color: var(--accent); }  /* the page the visitor is on */
.who { font: 500 .875rem/1 var(--sans); color: var(--ink); text-decoration: none; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 6px; }
.nav .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.icon-btn { font-family: var(--sans); width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 8px; cursor: pointer; transition: background-color var(--d1) var(--ease-out); }
.icon-btn:hover { background: var(--line2); }
.menu-btn { display: none; }
.menu { display: contents; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: var(--s1); padding: var(--s3) var(--gutter) var(--s5);
    background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 18px 30px -18px rgba(0, 0, 0, .25); }
  .nav.open .menu { display: flex; }
  .menu .nl { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line2); border-radius: 0; }
  .menu .btn { min-height: 48px; margin-top: var(--s2); font-size: 1rem; }
  .menu .who { padding: 14px 4px; }
  .nav.open { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
}

/* sections */
.sec { position: relative; padding: var(--s24) 0; overflow-x: clip; }
.sec-head { grid-column: 1 / span 7; margin-bottom: var(--s12); }
.sec h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, var(--t5)); line-height: 1.06; letter-spacing: -.022em; font-variation-settings: "opsz" 60; }
.intro { margin-top: var(--s4); font-size: var(--t1); line-height: 1.5; color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .sec { padding: var(--s16) 0; } .sec-head { grid-column: 1 / -1; margin-bottom: var(--s8); } }
.divider:not(.on), .terrain:not(.on) { visibility: hidden; }
.divider { height: 72px; color: var(--art-ink); opacity: .55; background: currentColor; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
@media (max-width: 860px) { .divider { height: 48px; } }
.terrain { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--art-ink); background: currentColor; opacity: .09;
  -webkit-mask: var(--m) center / cover no-repeat; mask: var(--m) center / cover no-repeat;
  -webkit-mask-composite: source-in; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--art-ink); opacity: .06;
  -webkit-mask: url(/homepage2/art/terrain-page.svg) center / cover no-repeat; mask: url(/homepage2/art/terrain-page.svg) center / cover no-repeat; }
.terrain-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.terrain-wrap .terrain { z-index: 0; }
.has-terrain { isolation: isolate; }

/* faq */
.faq-head { grid-column: 1 / span 4; }
.faq { grid-column: 6 / -1; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font: 600 var(--t0)/1.4 var(--serif); transition: color var(--d1) var(--ease-out); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform var(--d2) var(--ease-out); }
details[open]:not(.shutting) summary::after { transform: translateY(2px) rotate(-135deg); }
details p { padding-bottom: var(--s5); color: var(--muted); max-width: 38em; }
@media (max-width: 1023px) { .faq-head, .faq { grid-column: 1 / -1; } .faq-head { margin-bottom: var(--s6); } }

/* closing band */
.closing { padding: var(--s24) 0 var(--s32); text-align: center; }  /* the closing call to action, on the page itself (no band) */
.closing .inner { grid-column: 2 / span 10; }
.closing h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); line-height: 1.04; letter-spacing: -.025em; font-variation-settings: "opsz" 60; }
.closing p { margin-top: var(--s4); color: var(--muted); font-size: var(--t1); }
.closing .cta { justify-content: center; margin-top: var(--s8); }
@media (max-width: 860px) { .closing { padding: var(--s16) 0 var(--s24); } .closing .inner { grid-column: 1 / -1; } }

/* footer */
footer { padding: var(--s12) 0 var(--s10); font: 400 .875rem/1.6 var(--sans); color: var(--muted); }
footer .g { row-gap: var(--s8); }
footer .fb { grid-column: 1 / span 4; }
footer .fb .brand { font-size: 1.15rem; }
footer .fb p { margin-top: var(--s3); max-width: 24em; }
footer nav { grid-column: span 2; display: grid; gap: var(--s2); align-content: start; min-width: 0; overflow-wrap: anywhere; }
footer nav h2 { font: 600 .8125rem/1.3 var(--sans); color: var(--ink); margin-bottom: var(--s1); }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--accent); }
footer .legal-line { grid-column: 1 / -1; padding-top: var(--s6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); }
@media (max-width: 860px) { footer .fb { grid-column: 1 / -1; } footer nav { grid-column: span 6; } }

.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s10); }
.fine { margin-top: var(--s4); font: 400 .9375rem/1.5 var(--sans); color: var(--muted); }
@media (max-width: 560px) { .cta .btn { flex: 1 1 100%; } }
@media (max-width: 860px) { .icon-btn { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* switching light and dark (site.js, app.js): no element runs its own color fade, so everything changes together;
   the browser's page-wide fade is 250ms */
.theming, .theming *, .theming *::before, .theming *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

.who { cursor: default; }
@media (min-width: 861px) and (max-width: 1199px) { .who { display: none; } }  /* mid-size screens: no name, so Open OptiRoth fits (owner 11-11) */
