/* Coffeeling Academy · site styles
   Brand: Tinta #1F3550 · Cobre #B5652E · Kraft #ECE2D0 · Papel #F7F2E8 · Salvia #6F8A6A
   Type: Young Serif (titulares) · Instrument Sans (texto) — self-hosted */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1F3550; --ink-2: #172a41; --copper: #B5652E; --copper-lt: #D98A55;
  --kraft: #ECE2D0; --paper: #F7F2E8; --sage: #6F8A6A; --white: #fff;
  --text: #1c2b40; --muted: #5f6b78; --line: #ded3bf;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 18px; --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 18px; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; background: var(--copper); color: var(--paper); padding: 6px 14px; border-radius: 999px; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--sans); padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--copper-lt); outline-offset: 3px; }
.btn-copper { background: var(--copper); color: var(--paper); }
.btn-copper:hover { background: #9f5626; }
.btn-ghost { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(247,242,232,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.nav .brand img { height: 44px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; opacity: .92; }
.nav ul a:hover { color: var(--copper-lt); opacity: 1; }
.lang { display: inline-flex; background: rgba(247,242,232,.1); border-radius: 999px; padding: 4px; }
.lang a { text-decoration: none; font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
@media (max-width: 860px) { .nav ul { display: none; } .nav .brand img { height: 38px; } }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding-block: 96px 104px; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-block: 26px 22px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; opacity: .92; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-mark { justify-self: center; width: min(320px, 70%); opacity: .95; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-size: .88rem; opacity: .75; }
@media (max-width: 860px) { .hero { padding-block: 64px 72px; } .hero .wrap { grid-template-columns: minmax(0,1fr); } .hero-mark { display: none; } }

/* Method strip */
.method { background: var(--kraft); padding-block: 56px; }
.method ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; counter-reset: s; }
.method li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.method li::before { content: "0" counter(s); font: 600 .8rem var(--sans); letter-spacing: .12em; color: var(--copper); }
.method h3 { font-size: 1.5rem; color: var(--ink); }
.method p { color: var(--muted); }
@media (max-width: 760px) { .method ol { grid-template-columns: minmax(0,1fr); } }

/* Sections */
section.block { padding-block: 96px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); }
.sec-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 600px) { section.block { padding-block: 68px; } }

/* Course cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0,1fr); } }
.card { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; position: relative; overflow: hidden; }
.card .art { position: absolute; right: -30px; top: -20px; width: 170px; opacity: .12; }
.card .tag { align-self: flex-start; background: var(--copper); color: var(--paper); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-top: auto; }
.card h3 { font-size: 1.75rem; }
.card p { opacity: .85; font-size: .97rem; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; padding-top: 14px; border-top: 1px solid rgba(247,242,232,.15); }
.card .meta a { color: var(--copper-lt); font-weight: 600; text-decoration: none; }
.card .meta a:hover { text-decoration: underline; }
.note { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* Guides */
.guides { background: var(--kraft); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: minmax(0,1fr); } }
.guide { background: var(--paper); border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 26px; align-items: center; }
@media (max-width: 480px) { .guide { grid-template-columns: minmax(0,1fr); } }
.cover { aspect-ratio: 1/1.414; background: var(--ink); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); box-shadow: 0 10px 24px rgba(31,53,80,.18); }
.cover.alt { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.cover img { width: 34px; }
.cover span { font-family: var(--serif); font-size: .95rem; line-height: 1.1; }
.guide h3 { font-size: 1.55rem; color: var(--ink); margin-bottom: 8px; }
.guide p { color: var(--muted); font-size: .97rem; margin-bottom: 16px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.pill.free { background: var(--sage); color: var(--white); }
.pill.soon { background: var(--ink); color: var(--paper); }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: minmax(0,1fr); gap: 36px; } }
.portrait { aspect-ratio: 4/5; border-radius: var(--r); background: var(--kraft); display: grid; place-items: center; overflow: hidden; max-width: 440px; width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img.ph { width: 46%; height: auto; object-fit: contain; }
.about h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); margin-block: 12px 20px; }
.about p + p { margin-top: 14px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.creds li { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
blockquote { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--copper); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.3; }

/* Business */
.biz { background: var(--ink); color: var(--paper); }
.biz .wrap { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .biz .wrap { grid-template-columns: minmax(0,1fr); gap: 32px; } }
.biz h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-block: 12px 18px; }
.biz p { opacity: .88; }
.biz ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.biz li { background: rgba(247,242,232,.07); border-radius: 12px; padding: 16px 18px; }
.biz li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--copper-lt); }
.biz .btn { margin-top: 26px; }

/* Waitlist */
.waitlist .wrap { max-width: 760px; }
.waitlist h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); text-align: center; }
.waitlist .sub { text-align: center; color: var(--muted); margin: 14px auto 34px; max-width: 52ch; }
form.wl { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 600px) { form.wl { grid-template-columns: minmax(0,1fr); padding: 22px; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--ink); }
input[type=text], input[type=email], select { font: 400 1rem var(--sans); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); width: 100%; }
input:focus, select:focus { border-color: var(--ink); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--copper); width: 18px; height: 18px; flex: none; }
.consent label { font-weight: 400; color: var(--muted); font-size: .88rem; }
form.wl .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; font-weight: 600; }
.form-msg.ok { color: var(--sage); }
.form-msg.err { color: #a33a2b; }

/* Footer */
footer.site { background: var(--ink-2); color: var(--paper); padding-block: 56px 34px; font-size: .93rem; }
footer .cols { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(3, minmax(0,1fr)); gap: 28px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
footer h4 { font: 600 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--copper-lt); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; opacity: .88; }
footer a:hover { opacity: 1; color: var(--copper-lt); }
footer .sym { width: 56px; margin-bottom: 14px; }
footer .base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(247,242,232,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; opacity: .7; font-size: .85rem; }

/* Legal page */
.legal { padding-block: 72px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); margin-bottom: 10px; }
.legal h2 { font-size: 1.4rem; color: var(--ink); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: .9rem; }
footer li, footer p { overflow-wrap: anywhere; }
.field.consent { flex-direction: row; }
@media (max-width: 480px) { .guide .cover { max-width: 130px; } }
.card .meta { flex-wrap: wrap; }
.card .meta a { white-space: nowrap; }
.portrait picture, .biz-photo picture { display: block; width: 100%; height: 100%; }
.biz-side { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: center; }
.biz-photo { aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .biz-side { grid-template-columns: minmax(0,1fr); } .biz-photo { max-width: 320px; } }
