/* TYPIKA ROASTERS — single page. Tokens → base → layout → components → responsive */
:root {
  --green: #142a20; --green-2: #20392d; --ink: #111512; --paper: #e6e5dc;
  --white: #f4f3ec; --muted: #a9afa7; --accent: #b9a77b;
  --line: rgba(233, 232, 223, .18); --max: 1200px; --gutter: 24px;
  --sans: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 0; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--serif); letter-spacing: -.03em; margin-top: 12px; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid var(--accent); background: none; color: var(--white); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn--fill { background: var(--accent); color: var(--ink); }
.btn--fill:hover { background: var(--white); border-color: var(--white); }

/* Header */
.topbar { background: var(--green); text-align: center; padding: 9px var(--gutter); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #d8dfd6; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(17, 21, 18, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { font-weight: 800; letter-spacing: .19em; line-height: 1.2; font-size: 15px; margin-right: auto; }
.brand small { display: block; font-size: 9px; letter-spacing: .38em; color: var(--accent); margin-top: 4px; }
.links { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #d1d5cf; }
.links a:hover { color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; padding: 7px 11px; font-size: 12px; letter-spacing: .1em; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--ink); font-weight: 700; }
.menu { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; }

/* Hero: owner photograph */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(780px, calc(100svh - 114px)); background: var(--green); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 80px 40px 80px max(var(--gutter), calc((100vw - var(--max)) / 2)); position: relative; z-index: 1; }
.hero h1 { font: 800 clamp(46px, 6vw, 88px)/.94 var(--sans); font-style: italic; text-transform: uppercase; letter-spacing: -.06em; }
.hero-tag { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #e6e5dc; max-width: 30ch; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; filter: contrast(1.06) saturate(.8) brightness(.9); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green) 0, rgba(20, 42, 32, 0) 35%); }

/* Sections */
.section { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h3 { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); margin: 14px 0 18px; }
.split .lead { margin-bottom: 8px; }
.frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: #17221b; margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.85) brightness(.92); transition: transform .6s ease; }
.frame:hover img { transform: scale(1.03); }
.frame figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(5, 10, 7, .8)); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-34 { aspect-ratio: 3 / 4; }

/* Principles */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.pillar { padding: 30px 24px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar h3 { font: 700 14px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 10px 0; }
.pillar p { color: var(--muted); font-size: 14px; }

/* Process */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Coffee */
.coffee { background: var(--paper); color: #171c18; }
.coffee .eyebrow { color: #52634f; }
.coffee .lead { color: #4d5a50; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(17, 21, 18, .2); background: #efeee6; }
.product .frame { border: 0; height: 100%; min-height: 320px; }
.product-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.product h3 { font: 400 26px/1.15 var(--serif); }
.product dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.product dt { color: #52634f; font-weight: 600; }
.product dd { margin: 0; }
.product .btn { margin-top: auto; color: #142a20; border-color: #142a20; }
.product .btn:hover { background: #142a20; color: var(--white); }

/* Knowledge */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); padding: 28px; background: linear-gradient(145deg, #26392d, #111713); display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.card h3 { font: 400 24px/1.2 var(--serif); }
.card p { color: var(--muted); font-size: 14px; }
.card .eyebrow:last-child { margin-top: auto; }

/* Partnership + contact */
.partner { background: var(--green); }
.partner .split, .contact .split { align-items: start; }
.partner .btn { margin-top: 24px; }
.form { border: 1px solid rgba(233, 232, 223, .28); padding: 30px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #c3c9c1; }
.form input, .form select, .form textarea { width: 100%; padding: 13px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(233, 232, 223, .25); font-size: 15px; letter-spacing: 0; text-transform: none; }
.form option { background: #202821; }
.status { font-size: 14px; color: var(--accent); min-height: 1.4em; }
.address { color: var(--muted); margin-top: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; color: var(--muted); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer .brand { color: var(--white); margin-bottom: 12px; }
.footer nav { display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; letter-spacing: .1em; }

/* Tablet */
@media (max-width: 1000px) {
  .nav { gap: 14px; }
  .menu { display: block; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; font-size: 14px; }
  .links.open { display: flex; }
  .links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .links .btn { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .products, .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Mobile: photo becomes the hero background, text sits on a gradient */
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .section { padding: 70px 0; }
  .topbar { font-size: 10px; }
  .hero { display: block; min-height: 640px; }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo img { object-position: 78% 30%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(8, 12, 9, .15) 20%, rgba(8, 12, 9, .92) 85%); }
  .hero-copy { min-height: 640px; justify-content: flex-end; padding: 60px var(--gutter) 44px; }
  .section-head, .split { display: block; }
  .section-head .lead, .split .frame { margin-top: 22px; }
  .product { grid-template-columns: 1fr; }
  .product .frame { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transition: none; }
}
