/*
 * Oak Plate: components
 * Needs tokens.css first. Every class starts with "op-" so it can sit next to any other CSS.
 */

/* Base */
.op { margin: 0; background: var(--op-paper); color: var(--op-ink); font-family: var(--op-serif); font-size: var(--op-text-body); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.op *, .op *::before, .op *::after { box-sizing: border-box; }
.op svg { max-width: 100%; }
.op a { color: var(--op-link); text-decoration: underline; text-decoration-color: var(--op-cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.op a:hover { color: var(--op-cobalt); }
.op ::selection { background: #DCE5FD; }
.op-container { width: min(100% - 40px, var(--op-container)); margin-inline: auto; }
.op-narrow { width: min(100% - 40px, var(--op-narrow)); margin-inline: auto; }
.op-center { text-align: center; }
.op-section { padding-block: var(--op-section); }
.op-band { background: var(--op-mist); }

/* Type: condensed sans for headings and labels, serif for everything you read */
.op-hero-title, .op-h2, .op-h3 { margin: 0; font-family: var(--op-head); font-weight: 600; letter-spacing: -.005em; line-height: 1.15; color: var(--op-ink); }
.op-hero-title { font-size: var(--op-text-hero); }
.op-h2 { font-size: var(--op-text-h2); }
.op-h3 { font-size: var(--op-text-h3); }
.op-h2 .op-sc, .op-hero-title .op-sc { font-size: .78em; letter-spacing: .06em; text-transform: uppercase; }
.op-sub { margin: 4px 0 0; font-family: var(--op-head); font-weight: 500; font-size: 17px; color: var(--op-stone); }
.op-lead { margin: 14px 0 0; font-size: var(--op-text-lead); line-height: 1.55; }
.op-paren { color: var(--op-stone); }
.op-spec { display: block; font-family: var(--op-head); font-weight: 600; font-size: var(--op-text-spec); letter-spacing: var(--op-tracking-spec); text-transform: uppercase; color: var(--op-faint); line-height: 1.7; }
.op-spec--dark { color: var(--op-stone); }
.op-fine { font-size: 12px; color: var(--op-stone); }
.op-times { margin: 0; font-size: var(--op-text-lead); line-height: 1.5; }
.op-times em { font-style: italic; }
.op-times + .op-times { margin-top: 2px; }

/* The long rule: a dark hairline between big parts of a page. The soft rule fades at both ends. */
.op-rule { height: 1px; border: 0; margin: 0; background: var(--op-rule-strong); }
.op-rule--soft { background: linear-gradient(90deg, transparent, var(--op-rule) 15%, var(--op-rule) 85%, transparent); }
.op-rule--short { width: 72%; margin-inline: auto; background: var(--op-rule-strong); }

/* Nav: a pale monogram disc, then columns of faint tracked capitals, then a soft shadow line */
.op-nav { position: relative; display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 18px 48px; align-items: start; padding: 22px 0 26px; }
.op-nav::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 12px; box-shadow: var(--op-shadow-nav); border-radius: 50%; }
.op-mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E9E9EC; color: var(--op-paper); font-family: var(--op-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.op .op-mono { color: var(--op-paper); text-decoration: none; }
.op-nav__col { display: flex; flex-direction: column; gap: 2px; padding-left: 40px; }
.op-nav__col a { font-family: var(--op-head); font-weight: 600; font-size: var(--op-text-spec); letter-spacing: var(--op-tracking-spec); text-transform: uppercase; color: var(--op-faint); text-decoration: none; line-height: 1.8; }
.op-nav__col a:hover, .op-nav__col a[aria-current] { color: var(--op-stone); }
.op-nav__col b { font-weight: 600; color: var(--op-stone); }
.op-nav__icon { width: 16px; height: 16px; margin-top: 4px; color: var(--op-faint); }
@media (max-width: 760px) {
  .op-nav { grid-template-columns: auto 1fr; gap: 10px 20px; }
  .op-nav__col { padding-left: 0; }
  .op-nav__col + .op-nav__col { display: none; }
  .op-nav__icon { display: none; }
}

/* Buttons: small radius, condensed bold label, and a pressed lip along the bottom edge */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 22px 8px; border: 0; border-radius: var(--op-radius); font-family: var(--op-head); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.op .op-btn { text-decoration: none; }
.op-btn--cobalt { background: var(--op-cobalt); color: var(--op-paper); box-shadow: 0 var(--op-lip-size) 0 var(--op-lip); }
.op .op-btn--cobalt, .op .op-btn--sky { color: var(--op-paper); }
.op-btn--sky { padding: 7px 14px 6px; font-size: 13px; background: var(--op-sky); color: var(--op-paper); box-shadow: 0 2px 0 var(--op-sky-lip); }
.op-btn--ghost { background: var(--op-paper); color: var(--op-ink); box-shadow: inset 0 0 0 1px var(--op-rule), 0 2px 0 var(--op-rule); }
.op .op-btn--ghost { color: var(--op-ink); }
.op-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--op-lip); }
.op-btn--block { width: 100%; }
.op-btn:focus-visible { outline: 2px solid var(--op-cobalt); outline-offset: 3px; }
.op-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.op-center .op-actions { justify-content: center; }

/* Hero: a centered note with "x" lines, a small form and a fine-print line */
.op-hero { padding: clamp(36px, 5vw, 56px) 0 clamp(36px, 5vw, 48px); text-align: center; }
.op-hero .op-times { margin-top: 12px; }

/* Forms: plain wells with a thin border, cobalt checkboxes */
.op-form { display: grid; gap: 14px; }
.op-inline-form { display: grid; justify-items: center; gap: 12px; max-width: 320px; margin: 22px auto 0; }
.op-field { display: grid; gap: 6px; text-align: left; }
.op-label { font-family: var(--op-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--op-stone); }
.op-input { width: 100%; padding: 9px 12px; border: 1px solid var(--op-rule); border-radius: var(--op-radius); background: var(--op-paper); color: var(--op-ink); font-family: var(--op-serif); font-size: 17px; }
.op-input::placeholder { color: var(--op-faint); }
.op-input:focus { outline: 2px solid var(--op-cobalt); outline-offset: 1px; border-color: transparent; }
.op-center .op-input { text-align: center; }
.op-hint { font-size: 13px; color: var(--op-stone); }
.op-check { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.op-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--op-cobalt); }
.op-check b { font-family: var(--op-head); font-weight: 700; font-size: 17px; }
.op-checks { display: grid; justify-items: center; gap: 4px; }
.op-checks--left { justify-items: start; }

/* Honors: small capitals framed between two rules, set in a row */
.op-honors { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; padding: 30px 0 34px; }
.op-honor { display: grid; justify-items: center; min-width: 150px; text-align: center; }
.op-honor__line { width: 100%; height: 5px; border-block: 1px solid var(--op-ink); }
.op-honor__name { padding: 6px 4px 2px; font-family: var(--op-head); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.op-honor__by { padding: 0 4px 6px; font-family: var(--op-head); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--op-stone); }

/* Oak tiles: the signature. The product is drawn sitting on a wooden table, lit from the top left. */
.op-oak { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--op-vignette), var(--op-wood); box-shadow: var(--op-shadow-tile); isolation: isolate; }
.op-oak--wide { aspect-ratio: 8 / 7; }
.op-oak--dark { background: radial-gradient(120% 100% at 35% 30%, transparent 30%, rgba(30, 12, 2, .6) 100%), var(--op-wood); }
.op-oak > * { position: relative; z-index: 1; }

/* Objects drawn on the oak. Size them with --w (a share of the tile) and tilt them with --tilt. */
.op-tin { --c: var(--op-art-teal); position: relative; width: var(--w, 34%); aspect-ratio: 3 / 4; border-radius: 10px / 16px; transform: rotate(var(--tilt, 0deg)); background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 22%, rgba(255,255,255,.22) 38%, transparent 52%, rgba(0,0,0,.3)), var(--c); box-shadow: var(--op-shadow-object); }
.op-tin::before { content: ""; position: absolute; inset: -4% -3% auto; height: 16%; border-radius: 9px / 12px; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.35) 35%, rgba(0,0,0,.25)), var(--op-art-gold); }
.op-tin::after { content: attr(data-label); position: absolute; left: 12%; right: 12%; top: 34%; padding: 10% 4%; background: var(--op-art-cream); color: var(--op-art-slate); font-family: var(--op-head); font-weight: 700; font-size: clamp(8px, 1.1vw, 12px); letter-spacing: .12em; text-align: center; text-transform: uppercase; line-height: 1.2; }
.op-tin--red { --c: var(--op-art-red); }
.op-tin--slate { --c: var(--op-art-slate); }
.op-letter { position: relative; width: var(--w, 52%); aspect-ratio: 5 / 7; transform: rotate(var(--tilt, -8deg)); background: linear-gradient(160deg, #FFFDF7, var(--op-art-cream)); box-shadow: var(--op-shadow-object); padding: 9% 8%; }
.op-letter::before { content: attr(data-title); display: block; font-family: var(--op-head); font-weight: 700; font-size: clamp(10px, 1.6vw, 18px); color: var(--op-art-slate); line-height: 1.1; }
.op-letter::after { content: ""; display: block; height: 58%; margin-top: 10%; background: repeating-linear-gradient(180deg, rgba(53, 61, 72, .28) 0 2px, transparent 2px 11px); }
.op-letter--book { aspect-ratio: 3 / 4; background: linear-gradient(90deg, rgba(0,0,0,.28) 0 4%, transparent 7%), var(--op-art-slate); }
.op-letter--book::before { color: var(--op-art-cream); font-size: clamp(14px, 2.6vw, 30px); letter-spacing: .04em; text-transform: uppercase; }
.op-letter--book::after { height: 3px; width: 40%; margin-top: 12%; background: var(--op-art-gold); }
.op-pouch { position: relative; width: var(--w, 40%); aspect-ratio: 4 / 5; transform: rotate(var(--tilt, 6deg)); border-radius: 4px 4px 10px 10px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%, rgba(0,0,0,.2)), #E3D2B0; box-shadow: var(--op-shadow-object); }
.op-pouch::before { content: ""; position: absolute; inset: 0 0 auto; height: 14%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 2px, transparent 2px 6px), #D5C097; border-radius: 4px 4px 0 0; }
.op-pouch::after { content: attr(data-label); position: absolute; left: 18%; right: 18%; top: 40%; padding: 6% 0; border: 1px solid var(--op-art-red); color: var(--op-art-red); font-family: var(--op-head); font-weight: 700; font-size: clamp(8px, 1vw, 11px); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.op-cup { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #8A4F1E 0 52%, #F4EEE2 54% 66%, #E3DACA 68%); box-shadow: 8px 12px 14px rgba(45, 20, 4, .4); }

/* Feature: a big oak tile beside the copy */
.op-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: start; }
.op-feature__copy .op-quote + .op-quote { margin-top: 18px; }
.op-feature__blurb { margin: 22px 0 16px; padding-top: 16px; border-top: 1px solid var(--op-rule); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .op-feature { grid-template-columns: 1fr; } }

/* Quotes: italic serif, attribution on its own line in stone */
.op-quote { margin: 16px 0 0; }
.op-quote p { margin: 0; font-style: italic; font-size: 17px; line-height: 1.55; }
.op-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 15px; color: var(--op-stone); }
.op-quote cite i { font-style: italic; }

/* Editions: a row of oak tiles with a centered caption, spec lines and one sky button */
.op-editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 36px; }
.op-edition { display: grid; justify-items: center; gap: 4px; text-align: center; }
.op-edition .op-oak { width: 100%; margin-bottom: 14px; }
.op-edition__name { font-family: var(--op-head); font-weight: 700; font-size: 16px; }
.op-edition .op-btn { margin-top: 12px; }
@media (max-width: 760px) { .op-editions { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* About: a round grayscale portrait disc beside a letter */
.op-about { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.op-portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #E2E2E4, #9C9CA2); color: var(--op-art-slate); overflow: hidden; }
.op-portrait svg { width: 62%; }
.op-letterbody p { margin: 0 0 16px; }
.op-letterbody .op-small { font-size: 13px; color: var(--op-stone); }
.op-letterbody ul { margin: 0 0 16px; padding-left: 22px; list-style: circle; }
@media (max-width: 760px) { .op-about { grid-template-columns: 1fr; justify-items: center; } .op-portrait { width: 160px; } }

/* Pricing: three plain columns split by hairlines, the chosen one gets a cobalt top bar */
.op-plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-block: 1px solid var(--op-rule); }
.op-plan { display: grid; align-content: start; gap: 10px; padding: 28px clamp(16px, 3vw, 32px) 32px; text-align: center; }
.op-plan + .op-plan { border-left: 1px solid var(--op-rule); }
.op-plan--chosen { box-shadow: inset 0 3px 0 var(--op-cobalt); }
.op-plan .op-oak { width: 72%; margin: 4px auto 8px; }
.op-plan__name { font-family: var(--op-head); font-weight: 700; font-size: 22px; }
.op-plan__price { font-family: var(--op-head); font-weight: 600; font-size: 34px; line-height: 1; }
.op-plan__price small { font-size: 15px; font-weight: 500; color: var(--op-stone); }
.op-plan ul { margin: 6px 0 12px; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.op-plan li + li { margin-top: 6px; }
.op-plan .op-btn { justify-self: center; }
@media (max-width: 760px) { .op-plans { grid-template-columns: 1fr; } .op-plan + .op-plan { border-left: 0; border-top: 1px solid var(--op-rule); } }

/* Toggle: two text buttons, the pressed one underlined in cobalt */
.op-toggle { display: inline-flex; gap: 22px; margin-top: 18px; }
.op-toggle button { padding: 2px 0; border: 0; background: none; font-family: var(--op-head); font-weight: 600; font-size: 13px; letter-spacing: var(--op-tracking-spec); text-transform: uppercase; color: var(--op-faint); cursor: pointer; }
.op-toggle button[aria-pressed="true"] { color: var(--op-ink); box-shadow: inset 0 -2px 0 var(--op-cobalt); }

/* FAQ: plain details with a hairline between */
.op-faq details { padding: 16px 0; border-bottom: 1px solid var(--op-rule); }
.op-faq summary { font-family: var(--op-head); font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.op-faq summary::-webkit-details-marker { display: none; }
.op-faq summary::after { content: "+"; float: right; color: var(--op-faint); }
.op-faq details[open] summary::after { content: "\2212"; }
.op-faq p { margin: 10px 0 0; }

/* Article */
.op-article { font-size: 18px; line-height: 1.75; }
.op-article p { margin: 0 0 22px; }
.op-article h2 { margin: 40px 0 12px; font-family: var(--op-head); font-weight: 600; font-size: 24px; line-height: 1.2; }
.op-byline { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.op-avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E2E2E4, #9C9CA2); }
.op-figure { margin: 34px 0; }
.op-figure figcaption { margin-top: 10px; text-align: center; }
.op-pull { margin: 34px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--op-cobalt); font-style: italic; font-size: 21px; line-height: 1.5; }
.op-dropcap::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--op-head); font-weight: 700; font-size: 58px; line-height: .8; color: var(--op-ink); }

/* Card: a white sheet with a hairline, for sign-up and notes */
.op-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--op-rule); border-radius: var(--op-radius-card); background: var(--op-paper); }
.op-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.op-steps li { position: relative; padding: 0 0 18px 44px; counter-increment: s; }
.op-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--op-ink); font-family: var(--op-head); font-weight: 700; font-size: 14px; }
.op-steps b { display: block; font-family: var(--op-head); font-weight: 700; font-size: 17px; }

/* Footer: one centered line of faint capitals over a hairline */
.op-footer { padding: 32px 0 44px; text-align: center; }
.op-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 10px; }
.op-footer__links a { font-family: var(--op-head); font-weight: 600; font-size: var(--op-text-spec); letter-spacing: var(--op-tracking-spec); text-transform: uppercase; color: var(--op-faint); text-decoration: none; }
