/* Prøve — proevekaffe.dk
   Black on paper, rules instead of boxes, one 1040 px column.
   Hierarchy from weight, not size. */

:root{
  --paper:#FBFBF9;
  --ink:#000000;
  --white:#FFFFFF;
  --green:#A9C98A;
  --yellow:#F2D64B;
  --muted:#45443F;
  --hover:#3A3A36;
  color-scheme:light;
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Archivo,'Helvetica Neue',Arial,sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.5;
  padding-left:max(24px,env(safe-area-inset-left,0px));
  padding-right:max(24px,env(safe-area-inset-right,0px));
}

a{color:var(--ink)}
a:hover{color:var(--hover)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--ink);outline-offset:2px
}
img{max-width:100%;height:auto;display:block}

.wrap{max-width:1040px;margin:0 auto}

/* ---------- masthead ---------- */
/* Bliver siddende i toppen. Den sorte streg under den er samme streg
   som før lå øverst på .hero — ellers ville der stå to. */
.masthead{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:20;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
  display:flex;flex-wrap:wrap;gap:10px 24px;
  justify-content:space-between;align-items:baseline;
  padding-top:20px;padding-bottom:14px;
}
.brand{font-size:20px;font-weight:600;letter-spacing:.04em;text-decoration:none}
.nav{display:flex;flex-wrap:wrap;gap:28px;font-size:15px;font-weight:500}
.nav a[aria-current="page"]{font-weight:700}

/* ---------- structure ---------- */
.section{padding:72px 0 0}
.section--tight{padding:48px 0 0}
.eyebrow{border-top:1px solid var(--ink);padding-top:14px;font-size:14px;font-weight:600}
.lede{font-size:26px;font-weight:500;line-height:1.5;max-width:720px;padding-top:0}
.note{font-size:16px;font-weight:400;line-height:1.55;max-width:720px}
.hint{font-size:14px;font-weight:400;line-height:1.5;color:var(--muted)}

.hero{
  padding-top:48px;
  display:flex;flex-wrap:wrap;gap:48px;
}
.hero__left{flex:1 1 320px;min-width:0}
.hero__right{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;gap:20px}
.display{
  font-size:clamp(92px,17vw,180px);font-weight:700;line-height:.78;
  letter-spacing:-.045em;margin:12px 0 0;font-variant-numeric:tabular-nums;
}
.h1{font-size:clamp(30px,5vw,38px);font-weight:700;line-height:1.1;letter-spacing:-.02em;margin:0;text-wrap:balance}
.h2{font-size:clamp(26px,4vw,32px);font-weight:700;line-height:1.15;margin:0;text-wrap:balance}
.standfirst{font-size:18px;font-weight:500;line-height:1.45;padding-top:6px}
.kicker{border-top:1px solid var(--ink);padding-top:14px}
.kicker__label{font-size:14px;font-weight:600}
.kicker__text{font-size:22px;font-weight:600;line-height:1.3;padding-top:2px}

/* ---------- columns and cards ---------- */
.cols{display:flex;flex-wrap:wrap;gap:24px;padding-top:28px}
.cols--wide{gap:40px}
.col{flex:1 1 240px;min-width:0}
.col--pair{flex:1 1 300px;min-width:0}
.col--grow{flex:999 1 380px;min-width:0}

.card{flex:1 1 300px;min-width:0;border:1px solid var(--ink);padding:28px}
.card--white{background:var(--white)}
.card--green{background:var(--green)}
.card__title{font-size:26px;font-weight:700;line-height:1.2}
.card__meta{font-size:16px;font-weight:500;line-height:1.5;padding-top:6px}
.card__split{border-top:1px solid var(--ink);margin-top:20px;padding-top:12px}
.card__label{font-size:14px;font-weight:600}
.card__figure{font-size:34px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.card__foot{font-size:14px;font-weight:400;line-height:1.45;padding-top:4px}

.panel{border:1px solid var(--ink);padding:28px;margin-top:28px}
.panel--green{background:var(--green)}
.panel--yellow{background:var(--yellow)}

.band{
  border:1px solid var(--ink);padding:40px;
  display:flex;flex-wrap:wrap;gap:32px;align-items:baseline;
}
.band--yellow{background:var(--yellow)}
.band__figure{
  flex:1 1 200px;min-width:0;
  font-size:clamp(52px,9vw,72px);font-weight:700;line-height:.95;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}
.band__text{flex:999 1 360px;min-width:0;font-size:20px;font-weight:500;line-height:1.5}

/* ---------- lists ---------- */
.subhead{font-size:20px;font-weight:700;line-height:1.25}
.subhead--sm{font-size:18px;font-weight:700;line-height:1.3}
.body{font-size:16px;font-weight:400;line-height:1.55;padding-top:8px}

.drivers{display:flex;flex-direction:column;gap:20px;padding-top:28px}
.driver{display:flex;flex-wrap:wrap;gap:8px 24px}
.driver__share{flex:0 0 150px;font-size:22px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.driver__body{flex:999 1 400px;min-width:0}

.numbered{display:flex;flex-direction:column;gap:22px}
.numbered__item{display:flex;gap:18px}
.numbered__n{flex:0 0 32px;font-size:22px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.numbered__body{flex:1 1 auto;min-width:0}

.tag{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* ---------- footprint chart ---------- */
.bars{display:flex;flex-direction:column;gap:14px;padding-top:28px}
.bar{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.bar__label{flex:1 1 230px;min-width:0}
.bar__name{font-size:16px;font-weight:700;line-height:1.25}
.bar__sub{font-size:13px;font-weight:400;line-height:1.4}
.bar__track{flex:999 1 320px;min-width:0;display:flex;align-items:center}
.bar__fill{height:26px;border:1px solid var(--ink);box-sizing:border-box}
.bar__fill--low{background:var(--green)}
.bar__fill--mid{background:var(--yellow)}
.bar__fill--high{background:var(--ink)}
.bar__value{font-size:16px;font-weight:700;padding-left:10px;font-variant-numeric:tabular-nums}

/* ---------- tables ---------- */
.tablewrap{overflow-x:auto;padding-top:28px}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:15px}
th,td{text-align:left;padding:14px 16px 14px 0;border-bottom:1px solid var(--ink)}
th{font-size:13px;font-weight:600;padding-top:0;padding-bottom:10px}
td:last-child,th:last-child{padding-right:0}
.td-strong{font-weight:600}

/* ---------- cost stack ---------- */
.stack{display:flex;flex-direction:column;gap:10px;padding-top:16px}
.stack__row{
  display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;
  border-bottom:1px solid var(--ink);padding-bottom:10px;
}
.stack__row:last-child{border-bottom:0;padding-bottom:0}
.stack__name{font-size:17px;font-weight:400}
.stack__name--key{font-weight:700}
.stack__value{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}
.stack__value--key{font-weight:700}

/* ---------- figure ---------- */
figure{margin:0;padding-top:28px}
figure img{
  border:1px solid var(--ink);
  width:100%;max-width:760px;
  aspect-ratio:3/2;object-fit:cover;
  background:var(--white);
}
figcaption{font-size:14px;font-weight:400;line-height:1.5;padding-top:10px;max-width:620px}

/* ---------- roast curve ---------- */
.curve{width:100%;height:auto;display:block;font-family:Archivo,sans-serif}
.facts{display:flex;flex-wrap:wrap;gap:24px;padding-top:24px}
.fact{flex:1 1 200px;min-width:0;border-top:1px solid var(--ink);padding-top:12px}
.fact__label{font-size:14px;font-weight:600}
.fact__value{font-size:26px;font-weight:700;line-height:1.2;padding-top:2px;font-variant-numeric:tabular-nums}
.fact__sub{font-size:15px;font-weight:400;padding-top:2px}

/* ---------- forms ---------- */
.form{border:1px solid var(--ink);margin-top:24px;padding:32px;display:flex;flex-direction:column;gap:20px;max-width:620px}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.legend{font-size:15px;font-weight:600}
input[type=text],input[type=tel],input[type=email],textarea,select{
  font-family:inherit;font-size:17px;font-weight:400;color:var(--ink);
  padding:13px 14px;border:1px solid var(--ink);border-radius:0;
  background:var(--white);box-sizing:border-box;width:100%;
}
textarea{resize:vertical;min-height:84px}
.btn{
  font-family:inherit;font-size:18px;font-weight:600;
  padding:16px 24px;background:var(--ink);color:var(--paper);
  border:1px solid var(--ink);border-radius:0;cursor:pointer;align-self:flex-start;
}
.btn--full{width:100%;align-self:stretch;text-align:center}
.btn:hover{background:var(--hover);border-color:var(--hover)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

fieldset{border:0;margin:0;padding:0}
.choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.choice{flex:1 1 90px;min-width:0}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{
  display:block;border:1px solid var(--ink);padding:15px 8px;text-align:center;
  font-size:15px;font-weight:600;cursor:pointer;background:var(--paper);
  min-height:48px;
}
.choice input:checked + span{background:var(--yellow);border-width:2px;padding:14px 7px}
.choice input:focus-visible + span{outline:2px solid var(--ink);outline-offset:2px}
.choice--big span{font-size:26px;font-weight:700;padding:17px 8px}
.choice--big input:checked + span{padding:16px 7px}
.choice--wide{flex:1 1 100%}

.versus{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.versus__n{font-size:clamp(40px,11vw,54px);font-weight:700;line-height:.9;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.versus__x{font-size:20px;font-weight:500}

/* ---------- result bars ---------- */
.result{border-top:1px solid var(--ink);margin-top:20px;padding-top:14px}
.result__label{font-size:13px;font-weight:600}
.result__headline{font-size:clamp(28px,7vw,38px);font-weight:700;line-height:1.15;padding-top:4px}
.meter{display:flex;height:26px;margin-top:12px;border:1px solid var(--ink)}
.meter__seg{border-right:1px solid var(--ink)}
.meter__seg:last-child{border-right:0}
.meter__seg--y{background:var(--yellow)}
.meter__seg--g{background:var(--green)}
.meter__key{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:12px;font-weight:500;padding-top:6px}

/* ---------- footer ---------- */
.footer{
  border-top:1px solid var(--ink);margin-top:80px;padding:20px 0 56px;
  display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;
  font-size:14px;font-weight:500;
}

/* ---------- utility ---------- */
.pt-sm{padding-top:14px}
.pt-md{padding-top:20px}
.pt-lg{padding-top:24px}
.maxread{max-width:720px}

/* Ankerlinks må ikke lande under den faste topbjælke */
[id]{scroll-margin-top:118px}

@media (max-width:480px){
  .masthead{padding-top:14px;padding-bottom:10px;gap:6px 16px}
  .brand{font-size:18px}
  .nav{gap:14px;font-size:14px}
  [id]{scroll-margin-top:132px}
}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .btn,a{transition:background .12s ease,color .12s ease}
}
