/* ofourown components 0.1.0-draft. Consumes tokens.css only (var(--ofo-...)); no raw colour values.
   Usage: <link rel="stylesheet" href="tokens.css"><link rel="stylesheet" href="components.css">
   Light and dark follow prefers-color-scheme; <html data-scheme="light|dark"> overrides.            */
@font-face{font-family:'Fraunces';src:url(fonts/Fraunces-latin-var.woff2) format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'Figtree';src:url(fonts/Figtree-latin-var.woff2) format('woff2');font-weight:400 700;font-style:normal;font-display:swap}

/* base */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--ofo-color-surface);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ofo-color-surface);color:var(--ofo-color-text);font:400 1rem/1.5 var(--ofo-font-system);text-wrap:pretty}
img,svg{max-width:100%;height:auto}
a{color:var(--ofo-color-link);text-underline-offset:.2em}
a:visited{color:var(--ofo-color-link-visited)}
:focus-visible{outline:var(--ofo-focus-width) solid var(--ofo-color-focus);outline-offset:var(--ofo-focus-offset)}
::selection{background:var(--ofo-color-tint)}
.ofo-skip{position:absolute;left:-999px;top:0;background:var(--ofo-color-accent-fill);color:var(--ofo-color-on-accent);padding:.75rem 1rem;z-index:50}
.ofo-skip:focus{left:1rem;top:1rem}

/* type: the person's voice (Fraunces) and the system's voice (Figtree) */
.ofo-h1,.ofo-h2,.ofo-h3,.ofo-person,.ofo-quote,.ofo-lead{font-family:var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation);font-optical-sizing:auto}
.ofo-h1,.ofo-h2,.ofo-h3{font-weight:500;letter-spacing:-.01em;line-height:1.12;margin:0;text-wrap:balance}
.ofo-h1{font-size:clamp(2.44rem,5vw,4.2rem)} .ofo-h2{font-size:clamp(1.95rem,3vw,2.44rem)} .ofo-h3{font-size:1.5625rem}
.ofo-lead{font-size:1.25rem;line-height:1.6;max-width:60ch;font-weight:400}
.ofo-eyebrow{font:500 .8rem/1 var(--ofo-font-system);letter-spacing:.09em;text-transform:uppercase;color:var(--ofo-color-text-muted);margin:0 0 .75rem}
.ofo-prose{max-width:var(--ofo-measure)} .ofo-prose p{font-family:var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation);font-size:1.125rem;line-height:1.7;margin:0 0 1.25rem}
.ofo-muted{color:var(--ofo-color-text-muted)} .ofo-subtle{color:var(--ofo-color-text-subtle);font-size:.875rem}
.ofo-quote{font-style:italic;font-size:1.5625rem;line-height:1.4;max-width:36ch;margin:0}
.ofo-quote::before{content:'\201C';color:var(--ofo-color-accent-warm);margin-right:.08em}
code,.ofo-code{font:.9rem ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--ofo-color-surface-sunken);padding:.1rem .35rem;border-radius:.35rem}
pre.ofo-code{padding:1rem 1.25rem;border-radius:var(--ofo-radius-card);overflow:auto;line-height:1.6}

/* layout */
.ofo-wrap{max-width:var(--ofo-content-max);margin:0 auto;padding:0 clamp(1.25rem,4vw,4rem)}
.ofo-section{padding:clamp(3rem,7vw,6rem) 0} .ofo-section+.ofo-section{border-top:1px solid var(--ofo-color-border)}
.ofo-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(1.5rem,5vw,4rem);align-items:center}
.ofo-stack>*+*{margin-top:1rem} .ofo-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.ofo-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem} .ofo-grid-auto{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1.25rem}
@media(max-width:860px){.ofo-hero{grid-template-columns:1fr}.ofo-grid-4{grid-template-columns:repeat(2,1fr)}}

/* header, nav, footer */
.ofo-header{padding:1.25rem 0;border-bottom:1px solid var(--ofo-color-border)}
.ofo-header .ofo-wrap{display:flex;align-items:center;gap:2rem;flex-wrap:wrap}
.ofo-logo{display:inline-flex;align-items:center;text-decoration:none}
.ofo-logo img{height:2.25rem;width:auto;display:block}
.ofo-logo .ofo-on-dark{display:none}
.ofo-nav{display:flex;gap:.5rem;margin-left:auto;flex-wrap:wrap}
.ofo-nav a{font-weight:500;text-decoration:none;color:var(--ofo-color-text);padding:.75rem .6rem;display:inline-flex;align-items:center;min-height:var(--ofo-target-min)}
.ofo-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:.4em;text-decoration-thickness:2px}
.ofo-footer{padding:3rem 0;border-top:1px solid var(--ofo-color-border);color:var(--ofo-color-text-muted);font-size:.9rem}
.ofo-footer .ofo-wrap{display:flex;gap:2rem;flex-wrap:wrap;align-items:center}

/* buttons: one primary per view */
.ofo-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:600 1rem/1 var(--ofo-font-system);min-height:var(--ofo-target-min);padding:.7rem 1.2rem;border:0;border-radius:var(--ofo-radius-control);background:var(--ofo-color-accent-fill);color:var(--ofo-color-on-accent);text-decoration:none;cursor:pointer;transition:background var(--ofo-motion-base) cubic-bezier(.2,0,0,1),box-shadow var(--ofo-motion-base) cubic-bezier(.2,0,0,1)}
a.ofo-btn:visited{color:var(--ofo-color-on-accent)}
.ofo-btn:hover{box-shadow:var(--ofo-shadow-hover,0 0 0 3px var(--ofo-color-tint))}
.ofo-btn:active{transform:translateY(1px)}
.ofo-btn--secondary{background:transparent;color:var(--ofo-color-link);box-shadow:inset 0 0 0 1px var(--ofo-color-border-strong)} a.ofo-btn--secondary:visited{color:var(--ofo-color-link)}
.ofo-btn--quiet{background:transparent;color:var(--ofo-color-link);padding-inline:.5rem;text-decoration:underline;text-underline-offset:.25em}
.ofo-btn[disabled],.ofo-btn[aria-disabled="true"]{background:var(--ofo-color-disabled-surface);color:var(--ofo-color-disabled-text);box-shadow:inset 0 0 0 1px var(--ofo-color-border);cursor:not-allowed}

/* forms */
.ofo-field{display:grid;gap:.4rem;max-width:32rem}
.ofo-label{font-weight:600} .ofo-help{font-size:.875rem;color:var(--ofo-color-text-muted)}
.ofo-input,.ofo-select,.ofo-textarea{font:400 1rem var(--ofo-font-system);color:var(--ofo-color-text);background:var(--ofo-color-surface-raised);border:1px solid var(--ofo-color-border-strong);border-radius:var(--ofo-radius-control);min-height:var(--ofo-target-min);padding:.6rem .8rem;width:100%}
.ofo-textarea{min-height:7rem;line-height:1.5}
.ofo-input::placeholder{color:var(--ofo-color-text-subtle)}
.ofo-field[data-state="error"] .ofo-input{border-color:var(--ofo-color-bad);box-shadow:inset 0 0 0 1px var(--ofo-color-bad)}
.ofo-error{color:var(--ofo-color-bad);font-size:.9rem;display:flex;gap:.4rem;align-items:baseline}
.ofo-check{display:flex;gap:.75rem;align-items:flex-start;min-height:var(--ofo-target-min)} .ofo-check input{width:1.25rem;height:1.25rem;margin-top:.25rem;accent-color:var(--ofo-color-accent-fill)}

/* cards, persona card, portrait */
.ofo-card{background:var(--ofo-color-surface-raised);border:1px solid var(--ofo-color-border);border-radius:var(--ofo-radius-card);padding:1.5rem}
.ofo-card .ofo-rule{height:3px;width:2.5rem;border-radius:2px;margin-bottom:1rem;background:var(--ofo-color-accent)}
.ofo-portrait{border-radius:var(--ofo-radius-portrait);overflow:hidden;aspect-ratio:4/5;background:var(--ofo-field-sage)}
.ofo-portrait img{width:100%;height:100%;object-fit:cover;display:block}
.ofo-portrait--sq{aspect-ratio:1;border-radius:1rem}
[data-field="marigold"]{background:var(--ofo-field-marigold)} [data-field="lilac"]{background:var(--ofo-field-lilac)} [data-field="rose"]{background:var(--ofo-field-rose)} [data-field="cornflower"]{background:var(--ofo-field-cornflower)}
.ofo-person-card{display:block;text-decoration:none;color:inherit}
.ofo-person-card .ofo-portrait{margin-bottom:.6rem}
.ofo-person-card b{font:500 1.25rem var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation);display:block}
.ofo-person-card span{color:var(--ofo-color-text-muted);font-size:.9rem}
.ofo-product-rule--sonalon{background:var(--ofo-color-product-sonalon)!important}.ofo-product-rule--chat{background:var(--ofo-color-product-chat)!important}.ofo-product-rule--create{background:var(--ofo-color-product-create)!important}.ofo-product-rule--connect{background:var(--ofo-color-product-connect)!important}

/* callout (tint, no side stripe) */
.ofo-callout{background:var(--ofo-color-tint);border-radius:var(--ofo-radius-card);padding:1.25rem 1.5rem;max-width:var(--ofo-measure)} .ofo-callout>*:first-child{margin-top:0}.ofo-callout>*:last-child{margin-bottom:0}
.ofo-notice{border-radius:var(--ofo-radius-card);padding:1rem 1.25rem;max-width:var(--ofo-measure)}
.ofo-notice[data-kind="ok"]{background:var(--ofo-color-ok-bg);color:var(--ofo-color-ok)} .ofo-notice[data-kind="warn"]{background:var(--ofo-color-warn-bg);color:var(--ofo-color-warn)} .ofo-notice[data-kind="bad"]{background:var(--ofo-color-bad-bg);color:var(--ofo-color-bad)}

/* chat */
.ofo-chat{max-width:46rem;margin:0 auto;padding:1.5rem 0 8rem}
.ofo-chat-head{display:flex;gap:1rem;align-items:center;padding:1rem 0 1.5rem;border-bottom:1px solid var(--ofo-color-border)} .ofo-chat-head .ofo-portrait{width:4rem}
.ofo-msg{margin:1.25rem 0;display:flex;flex-direction:column;max-width:34rem;gap:.25rem}
.ofo-msg--me{margin-left:auto;align-items:flex-end}
.ofo-bubble{padding:.9rem 1.1rem;border-radius:1rem}
.ofo-msg--person .ofo-bubble{background:var(--ofo-color-surface-raised);border:1px solid var(--ofo-color-border);font:400 1.125rem/1.6 var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation)}
.ofo-msg--me .ofo-bubble{background:var(--ofo-color-surface-overlay);border:1px solid var(--ofo-color-border-strong)}
.ofo-time{font-size:.8rem;color:var(--ofo-color-text-subtle)}
.ofo-composer{position:sticky;bottom:1rem;background:var(--ofo-color-surface-raised);border:1px solid var(--ofo-color-border-strong);border-radius:1rem;padding:.6rem;display:flex;gap:.6rem;align-items:center;box-shadow:var(--ofo-shadow-overlay,none)}
.ofo-composer input{flex:1;font:400 1rem var(--ofo-font-system);color:var(--ofo-color-text);background:transparent;border:0;min-height:var(--ofo-target-min);padding:0 .6rem}
.ofo-composer input::placeholder{color:var(--ofo-color-text-subtle)}
.ofo-typing{display:inline-flex;gap:.25rem} .ofo-typing i{width:.4rem;height:.4rem;border-radius:50%;background:var(--ofo-color-text-subtle);animation:ofo-pulse 1.2s infinite} .ofo-typing i:nth-child(2){animation-delay:.2s}.ofo-typing i:nth-child(3){animation-delay:.4s}
@keyframes ofo-pulse{50%{opacity:.3}} @media(prefers-reduced-motion:reduce){.ofo-typing i{animation:none}}

/* article / document */
.ofo-article{max-width:46rem;margin:0 auto;padding:4rem 0 6rem}
.ofo-article .ofo-h1{margin:.5rem 0 1rem} .ofo-byline{color:var(--ofo-color-text-muted);margin-bottom:2.5rem}
.ofo-article h2{font:500 1.95rem/1.15 var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation);margin:2.5rem 0 .75rem}
.ofo-docs{display:grid;grid-template-columns:15rem 1fr;gap:3rem} @media(max-width:860px){.ofo-docs{grid-template-columns:1fr}}
.ofo-sidenav{position:sticky;top:1rem;align-self:start} .ofo-sidenav a{display:block;padding:.5rem 0;color:var(--ofo-color-text);text-decoration:none;min-height:var(--ofo-target-min)} .ofo-sidenav a[aria-current="page"]{font-weight:600;text-decoration:underline;text-underline-offset:.3em}
table.ofo-table{border-collapse:collapse;width:100%;font-size:.95rem} .ofo-table th,.ofo-table td{border-bottom:1px solid var(--ofo-color-border);padding:.6rem .75rem;text-align:left;vertical-align:top} .ofo-table th{background:var(--ofo-color-surface-sunken);font-weight:600}
.ofo-tag{font-size:.85rem;color:var(--ofo-color-text-muted)}

/* state helpers for the gallery */
.ofo-demo{border:1px solid var(--ofo-color-border);border-radius:var(--ofo-radius-card);padding:1.25rem;background:var(--ofo-color-surface);color:var(--ofo-color-text)}

/* logo swap by scheme: put both images in .ofo-logo; .ofo-on-light shows in light, .ofo-on-dark in dark */
@media (prefers-color-scheme:dark){:root:not([data-scheme="light"]) .ofo-logo .ofo-on-light{display:none}:root:not([data-scheme="light"]) .ofo-logo .ofo-on-dark{display:block}}
:root[data-scheme="dark"] .ofo-logo .ofo-on-light{display:none}:root[data-scheme="dark"] .ofo-logo .ofo-on-dark{display:block}
@media (prefers-reduced-motion:reduce){*{transition-duration:0ms!important;animation-duration:0ms!important;scroll-behavior:auto!important}}

/* 1.1.0 additions */
.ofo-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem} @media(max-width:700px){.ofo-grid-3{grid-template-columns:repeat(2,1fr)}}
.ofo-grid-ideas{display:grid;grid-template-columns:repeat(6,1fr);gap:1.25rem}.ofo-grid-ideas>*{grid-column:span 2}.ofo-grid-ideas>*:nth-child(n+4){grid-column:span 3}
@media(max-width:1000px){.ofo-grid-ideas{grid-template-columns:repeat(2,1fr)}.ofo-grid-ideas>*,.ofo-grid-ideas>*:nth-child(n+4){grid-column:span 1}.ofo-grid-ideas>*:last-child:nth-child(odd){grid-column:span 2}}
@media(max-width:640px){.ofo-grid-ideas{grid-template-columns:1fr}.ofo-grid-ideas>*,.ofo-grid-ideas>*:last-child:nth-child(odd){grid-column:span 1}}
/* video card: a poster, a plain play button, a caption line; captions and transcript are links beside it */
.ofo-video{max-width:60rem;margin:0 auto}.ofo-video-frame{position:relative;border-radius:var(--ofo-radius-card);overflow:hidden;background:var(--ofo-color-surface-sunken);border:1px solid var(--ofo-color-border);aspect-ratio:16/9}
.ofo-video-frame video,.ofo-video-frame img{width:100%;height:100%;object-fit:cover;display:block}
.ofo-video-play{position:absolute;inset:0;margin:auto;width:4.5rem;height:4.5rem;border-radius:50%;border:0;background:var(--ofo-color-accent-fill);color:var(--ofo-color-on-accent);display:grid;place-items:center;cursor:pointer}
.ofo-video-caption{margin:.75rem 0 0;color:var(--ofo-color-text-muted);font-size:.9rem}
/* icons (glyphs/ofourown-icons.sprite.svg): currentColor, sizes 16 20 24 32 */
.ofo-icon{width:1.5rem;height:1.5rem;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ofo-icon--sm{width:1rem;height:1rem}.ofo-icon--md{width:1.25rem;height:1.25rem}.ofo-icon--xl{width:2rem;height:2rem}
/* no-portrait fallback tile: a person with no picture; the initial is live text on a person-field */
.ofo-tile{display:grid;place-items:center;aspect-ratio:1;border-radius:var(--ofo-radius-portrait);background:var(--ofo-field-sage);color:var(--ofo-color-text);font:500 2.5rem var(--ofo-font-person);font-variation-settings:var(--ofo-font-person-variation);border:1px solid var(--ofo-color-border)}

/* 1.1.1: link targets in footers and rows reach 44 px */
.ofo-footer a,.ofo-row>a:not(.ofo-btn){display:inline-flex;align-items:center;min-height:var(--ofo-target-min)}

/* 1.1.2: the logo link and heading links reach 44 px */
.ofo-logo{min-height:var(--ofo-target-min)}
.ofo-h3 a,.ofo-card h3 a,.ofo-h2 a{display:inline-flex;align-items:center;min-height:var(--ofo-target-min)}

/* 1.1.3: forced colours (Windows High Contrast): fills and inset shadows vanish, so boundaries become real borders */
@media (forced-colors:active){
 .ofo-btn,.ofo-btn--secondary,.ofo-btn--quiet{border:1px solid ButtonText;box-shadow:none}
 .ofo-btn[disabled],.ofo-btn[aria-disabled="true"]{border-color:GrayText;color:GrayText}
 .ofo-card,.ofo-callout,.ofo-notice,.ofo-bubble,.ofo-composer,.ofo-demo,.ofo-video-frame,.ofo-tile,.ofo-portrait,.ofo-table th,.ofo-table td{border:1px solid CanvasText}
 .ofo-input,.ofo-select,.ofo-textarea{border:1px solid FieldText}
 .ofo-nav a[aria-current="page"]{text-decoration:underline;border-bottom:2px solid LinkText}
 .ofo-video-play{border:2px solid ButtonText}
 :focus-visible{outline:3px solid Highlight}
}
