@font-face {
  font-family: Schibsted;
  src: url("fonts/schibsted-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Schibsted;
  src: url("fonts/schibsted-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --ink: #141516;
  --paper: #eef1f3;
  --mute: #5c6166;
  --line: rgba(20, 21, 22, 0.16);
  --accent: #155e75;
  --d: clamp(36px, 10vw, 52px);
  --b: 16.5px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--paper); color: var(--ink); }
html { background: var(--paper); }
body {
  font-family: Schibsted, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--b);
  line-height: 1.45;
  font-weight: 400;
  max-width: 42rem;
  padding:
    calc(0.9rem + env(safe-area-inset-top))
    clamp(1.15rem, 5vw, 3rem)
    calc(2.4rem + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

a { color: inherit; overflow-wrap: anywhere; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.kicker {
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 1.1rem;
}
.kicker a { text-decoration: underline; text-underline-offset: 0.14em; }

h1 {
  font-size: var(--d);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.7rem;
}

h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 1.7rem 0 0.55rem;
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}

h3 {
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.85rem 0 0.35rem;
}

p { margin: 0 0 0.7rem; }
.lede { max-width: 28rem; margin: 0 0 1rem; }
.fine { font-size: 14px; color: var(--mute); }

.who {
  font-size: 15px;
  color: var(--mute);
  margin: 0 0 1.1rem;
}

.stamps { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.35rem; }
.stamp {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.22em 0.5em 0.26em;
  line-height: 1.3;
}
.stamp.go { border-color: #155e75; color: #155e75; }
.stamp.mid { border-color: #6b4f12; color: #6b4f12; }
.stamp.stop { border-color: #7a2e2e; color: #7a2e2e; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.15rem 0 0.4rem;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 6.1rem;
  padding: 0.85rem 0.85rem 0.9rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  background: #f6f8f9;
}
.card b {
  font-weight: 500;
  font-size: clamp(16px, 4.4vw, 19px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.card span {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.3;
}
.card:hover b { color: var(--accent); }

.doors { margin-top: 0.2rem; }
.door {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.door:first-child { border-top: 0; }
.door b {
  font-weight: 500;
  font-size: clamp(22px, 6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.door span { color: var(--mute); text-align: right; max-width: 14rem; }
.door:hover b { color: var(--accent); }

.row {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: 0; }
.row b { font-weight: 500; }
.row span { color: var(--mute); text-align: right; }

.shop {
  padding: 0.95rem 0 0.35rem;
  border-top: 1px solid var(--line);
}
.shop:first-of-type { border-top: 0; padding-top: 0; }
.shop .meta {
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 0.25rem;
}

ul, ol { margin: 0 0 0.7rem; padding: 0 0 0 1.15rem; }
li { margin: 0 0 0.4rem; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.08em 0.45em 0.12em;
  line-height: 1.3;
  white-space: nowrap;
}
.tag.ok { border-color: #155e75; color: #155e75; }
.tag.wait { border-color: var(--mute); color: var(--mute); }
.tag.no { border-color: #7a2e2e; color: #7a2e2e; }

.draft, pre.prompt {
  margin: 0.5rem 0 1.1rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.log {
  padding: 0.95rem 0 0.2rem;
  border-top: 1px solid var(--line);
}
.log:first-of-type { border-top: 0; padding-top: 0.15rem; }
.log time {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 0.25rem;
}

.url {
  display: block;
  margin: 0 0 0.45rem;
  text-underline-offset: 0.14em;
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.6rem 0 1.2rem;
}
.phone {
  width: 320px;
  max-width: 94vw;
  height: 640px;
  background: #141516;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: #eef1f3;
}

.foot {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 13px;
  color: var(--mute);
}
.foot a { text-decoration: underline; text-underline-offset: 0.14em; }

@media (min-width: 720px) {
  body { padding-top: 2.4rem; }
  .grid { gap: 0.75rem; }
  .card { min-height: 6.4rem; }
}
@media (max-width: 440px) {
  .phone {
    width: 100%;
    height: 72vh;
    min-height: 420px;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .phone iframe { border-radius: 0; }
}
