/* OOMLO · base.css · reset, layout, type. Colors only through tokens. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; font-size: var(--oomlo-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; color: var(--oomlo-text); }
h1 { font-size: var(--oomlo-h1); }
h2 { font-size: var(--oomlo-h2); }
h3 { font-size: var(--oomlo-h3); font-weight: 700; }
h4 { font-family: var(--oomlo-font-text); font-size: var(--oomlo-body-l); font-weight: 700; line-height: 1.3; }
small { font-size: var(--oomlo-small); }
hr { border: 0; border-top: 1px solid var(--oomlo-border); margin: var(--oomlo-space-6) 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--oomlo-small); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--oomlo-border); vertical-align: top; }
th { font-weight: 700; color: var(--oomlo-text); }
blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 2px solid var(--oomlo-accent); color: var(--oomlo-text-2); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
::selection { background: var(--oomlo-accent); color: var(--oomlo-accent-on); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--oomlo-focus); outline-offset: 2px; border-radius: 4px; }

/* Screen-reader only */
.screen-reader-text, .oomlo-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.oomlo-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--oomlo-accent); color: var(--oomlo-accent-on); border-radius: var(--oomlo-radius-pill); font-weight: 700; }
.oomlo-skip:focus { top: 12px; color: var(--oomlo-accent-on); }

/* Layout */
.oomlo-container { width: 100%; max-width: calc(var(--oomlo-container) + 2 * var(--oomlo-gutter)); margin: 0 auto; padding: 0 var(--oomlo-gutter); }
@media (max-width: 767px) { .oomlo-container { padding: 0 20px; } }
.oomlo-container--narrow { max-width: 880px; }
.oomlo-container--text { max-width: 760px; }
.oomlo-section { padding: var(--oomlo-space-9) 0 var(--oomlo-space-8); }
.oomlo-section--tight { padding: var(--oomlo-space-8) 0 var(--oomlo-space-7); }
.oomlo-section--flush { padding-top: 0; }
@media (max-width: 767px) { .oomlo-section { padding: var(--oomlo-space-8) 0 var(--oomlo-space-7); } .oomlo-section--tight { padding: var(--oomlo-space-7) 0 var(--oomlo-space-6); } }
.oomlo-section--surface { background: var(--oomlo-surface); }
.oomlo-section--surface-2 { background: var(--oomlo-surface-2); }
.oomlo-section__head { max-width: 760px; margin-bottom: var(--oomlo-space-7); }
.oomlo-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.oomlo-section__head .oomlo-eyebrow { margin-bottom: var(--oomlo-space-4); display: block; }
.oomlo-section__head h2 { margin-bottom: var(--oomlo-space-4); }
.oomlo-section__head p { color: var(--oomlo-text-2); font-size: var(--oomlo-body-l); }
.oomlo-grid { display: grid; gap: var(--oomlo-gutter); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.oomlo-cols { display: grid; gap: var(--oomlo-gutter); }
.oomlo-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oomlo-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oomlo-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oomlo-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023px) { .oomlo-cols--4, .oomlo-cols--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oomlo-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .oomlo-cols--2, .oomlo-cols--3, .oomlo-cols--4, .oomlo-cols--5 { grid-template-columns: minmax(0, 1fr); } }
.oomlo-stack > * + * { margin-top: var(--oomlo-space-4); }
.oomlo-stack--lg > * + * { margin-top: var(--oomlo-space-6); }
.oomlo-row { display: flex; flex-wrap: wrap; gap: var(--oomlo-space-3); align-items: center; }
.oomlo-mt-4 { margin-top: var(--oomlo-space-4); } .oomlo-mt-6 { margin-top: var(--oomlo-space-6); } .oomlo-mt-7 { margin-top: var(--oomlo-space-7); }
.oomlo-center { text-align: center; }

/* Type */
.oomlo-display-1 { font-family: var(--oomlo-font-display); font-size: var(--oomlo-display-1); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.oomlo-display-2 { font-family: var(--oomlo-font-display); font-size: var(--oomlo-display-2); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.oomlo-h1 { font-size: var(--oomlo-h1); } .oomlo-h2 { font-size: var(--oomlo-h2); } .oomlo-h3 { font-size: var(--oomlo-h3); }
.oomlo-body-l { font-size: var(--oomlo-body-l); }
.oomlo-small { font-size: var(--oomlo-small); }
.oomlo-caption { font-size: var(--oomlo-caption); }
.oomlo-muted { color: var(--oomlo-text-2); }
.oomlo-accent { color: var(--oomlo-accent); }
.oomlo-tabular { font-variant-numeric: tabular-nums; }
.oomlo-balance { text-wrap: balance; }
.oomlo-max-text { max-width: 62ch; }
.oomlo-max-text p, .oomlo-prose p { color: var(--oomlo-text-2); }
.oomlo-prose h2 { margin-top: var(--oomlo-space-7); }
.oomlo-prose h3 { margin-top: var(--oomlo-space-6); }
.oomlo-prose li { color: var(--oomlo-text-2); margin-bottom: 0.4em; }
.oomlo-prose li strong, .oomlo-prose p strong { color: var(--oomlo-text); }
.oomlo-prose table { margin: var(--oomlo-space-5) 0; }
.oomlo-prose td { color: var(--oomlo-text-2); }
.oomlo-source { display: block; margin-top: 8px; font-size: var(--oomlo-caption); color: var(--oomlo-text-2); }

/* Links inside text keep the light-mode rule from tokens.css. On surface-2, use the dedicated token. */
.oomlo-surface-2 { background: var(--oomlo-surface-2); }
a.oomlo-link { font-weight: 600; }
a.oomlo-link .oomlo-icon { margin-left: 4px; }

/* Reveal (240 ms) */
.oomlo-reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--oomlo-dur-reveal) var(--oomlo-ease-out), transform var(--oomlo-dur-reveal) var(--oomlo-ease-out); }
.oomlo-reveal.is-in, .no-js .oomlo-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .oomlo-reveal { opacity: 1; transform: none; transition: none; } }

/* Icons (sprite, currentColor) */
.oomlo-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; }
.oomlo-icon--sm { width: 16px; height: 16px; }
.oomlo-icon--lg { width: 24px; height: 24px; }

/* Motifs — at most one per page */
.oomlo-motif-arc { position: relative; overflow: hidden; }
.oomlo-motif-arc::after { content: ""; position: absolute; right: -18%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--oomlo-bg); pointer-events: none; }
.oomlo-diagonal { position: relative; }
.oomlo-diagonal::before { content: ""; position: absolute; left: 0; right: 0; top: -48px; height: 48px; background: var(--oomlo-surface); clip-path: polygon(0 100%, 100% 0, 100% 100%); pointer-events: none; }
@media (max-width: 767px) { .oomlo-diagonal::before { top: -24px; height: 24px; } }
.oomlo-ring-bg { position: relative; }
.oomlo-ring-bg::before { content: ""; position: absolute; inset: -20% auto auto -6%; width: 220px; height: 220px; border: 19px solid var(--oomlo-border); border-radius: 50%; pointer-events: none; }

/* WordPress alignment and editor blocks minimal */
.alignwide { max-width: var(--oomlo-container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-block-image img { border-radius: var(--oomlo-radius-card); }
.entry-content > * + * { margin-top: var(--oomlo-space-5); }
.entry-content > .oomlo-section + .oomlo-section, .entry-content > .wp-block-oomlo-section + .wp-block-oomlo-section { margin-top: 0; }
.entry-content > .oomlo-section { margin-top: 0; }
