/* Harald website. One serif, six colours, rules instead of boxes. No request leaves this origin. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2"); }

:root {
  --ink: #1c1f24;
  --folio: #fafaf7;
  --graphite: #5a5f66;
  --proof: #1e5a41;
  --query: #7f4e00;
  --ox: #8f2a20;
  --proof-tint: #e3ede6;
  --query-tint: #f6ead2;
  --ox-tint: #f7e4e0;
  --shade: #edede7;
  --rule: #d9d9d1;
  --plate: #1c1f24;
  --plate-rule: #3a3e45;
  --plate-soft: #b9bcc0;
  --proof-on-plate: #8fc7a8;
  --max: 1200px;
  --gutter: 32px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--folio); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--proof); outline-offset: 3px; border-radius: 2px; }
.plate :focus-visible, .site-foot :focus-visible { outline-color: var(--proof-on-plate); }
.defs { position: absolute; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--folio); padding: 8px 14px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.022em; text-wrap: balance; }
.h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.06; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); line-height: 1.12; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.h3 { font-size: 1.3125rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--graphite); max-width: 38em; text-wrap: pretty; }
.body { max-width: 38em; text-wrap: pretty; }
.note { font-size: 0.875rem; line-height: 1.55; color: var(--graphite); max-width: 46em; }
.plate .lead, .plate .note { color: var(--plate-soft); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82em; }
.cmd { display: block; margin-top: 10px; padding: 12px 14px; background: var(--shade); overflow-x: auto; white-space: pre; font-size: 0.78rem; line-height: 1.5; }
.plate .cmd { background: #25292f; color: #e6e6e0; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--ink); color: var(--folio); border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; font-weight: 500; font-size: 1rem; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn:hover { background: var(--proof); border-color: var(--proof); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--folio); }
.plate .btn { background: var(--folio); color: var(--ink); border-color: var(--folio); }
.plate .btn:hover { background: var(--proof-on-plate); border-color: var(--proof-on-plate); }
.plate .btn.quiet { background: transparent; color: var(--folio); border-color: var(--plate-soft); }
.plate .btn.quiet:hover { background: var(--folio); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.more { font-weight: 500; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 247, 0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 36px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 1rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav summary:hover { color: var(--proof); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--proof); }
.nav .btn { min-height: 40px; padding: 0 16px; }
.nav .btn:hover { color: var(--folio); }
.drop { position: relative; }
.drop summary { list-style: none; cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.drop[open] summary::after { transform: translateY(2px) rotate(225deg); }
.drop-panel { position: absolute; top: calc(100% + 15px); left: -24px; width: 460px; background: var(--folio); border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 8px 24px; box-shadow: 0 18px 40px -18px rgba(28, 31, 36, 0.35); }
.drop-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.drop-panel li:last-child a { border-bottom: 0; }
.drop-panel b { display: block; font-weight: 600; }
.drop-panel span { display: block; font-size: 0.875rem; line-height: 1.45; color: var(--graphite); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--folio); border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 28px; max-height: calc(100vh - 68px); overflow-y: auto; }
.menu-panel p { font-size: 0.875rem; color: var(--graphite); padding-top: 18px; }
.menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.1875rem; }
.menu-panel .btn { display: flex; justify-content: center; margin-top: 22px; border-bottom: 1px solid var(--ink); font-size: 1rem; }

/* Sections */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.sec-head.single { display: block; }
.sec-head.single .lead { margin-top: 18px; }
.plate { background: var(--plate); color: var(--folio); }
.section.plate, .section.plate + .section { border-top: 0; }

/* Home hero */
.hero { padding: 88px 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
.hero-top .actions { margin-top: 24px; }
.hero .bench { margin-top: 64px; }

/* The check: a contract page on the ink plate, a quote beside it */
.bench { background: var(--plate); color: var(--folio); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.bench-doc { padding: 48px 48px 40px; }
.bench-quote { padding: 48px 48px 40px; border-left: 1px solid var(--plate-rule); display: flex; flex-direction: column; }
.t-label { font-size: 0.9375rem; color: var(--plate-soft); margin-bottom: 14px; display: block; }
.t-page { background: var(--folio); color: var(--ink); padding: 30px 30px 30px 14px; font-size: 1.125rem; line-height: 1.62; box-shadow: 0 1px 0 #fff inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7); }
.t-page p { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; }
.t-page p + p { margin-top: 14px; }
.ln { font-size: 0.75rem; line-height: 2.43; color: #8a8e93; text-align: right; font-variant-numeric: tabular-nums; user-select: none; }
.t-page mark { color: inherit; padding: 1px 0; transition: background-color 0.25s; }
.hit-ok { background: var(--proof-tint); box-shadow: 0 2px 0 var(--proof); }
.hit-near { background: var(--query-tint); box-shadow: 0 2px 0 var(--query); }
.t-src { font-size: 0.8125rem; color: var(--plate-soft); margin-top: 14px; }
#t-input { width: 100%; min-height: 148px; resize: vertical; background: transparent; color: var(--folio); border: 1px solid var(--plate-rule); border-radius: 0; padding: 16px 18px; font-size: 1.125rem; line-height: 1.55; font-style: italic; }
#t-input:focus-visible { outline: 2px solid var(--proof-on-plate); outline-offset: 0; }
.t-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.t-presets button { min-height: 36px; background: transparent; border: 1px solid var(--plate-rule); border-radius: 18px; padding: 0 14px; font-size: 0.875rem; cursor: pointer; }
.t-presets button:hover { border-color: var(--folio); }
.t-verdict { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--plate-rule); min-height: 196px; }
.t-result { display: flex; align-items: center; gap: 12px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.t-result svg { width: 22px; height: 22px; flex: none; }
.v-ok { color: var(--proof-on-plate); }
.v-rev { color: #f0b9a8; }
.v-none { color: var(--plate-soft); }
.t-why { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; color: #dcdcd6; }
.t-echo { margin-top: 12px; font-size: 0.9375rem; font-style: italic; color: var(--plate-soft); }
.t-echo .added { color: #f0b9a8; font-style: normal; text-decoration: line-through; text-decoration-thickness: 2px; }
.bench-foot { grid-column: 1 / -1; padding: 16px 48px; border-top: 1px solid var(--plate-rule); font-size: 0.8125rem; color: var(--plate-soft); }

/* A real screen of the app */
.stage { border: 1px solid var(--rule); background: #fff; box-shadow: 0 40px 80px -48px rgba(28, 31, 36, 0.45); }
.stage-bar { height: 34px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--shade); }
.stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c1; }
.stage img, .stage video { width: 100%; }
.plate .stage { border-color: var(--plate-rule); box-shadow: none; }
.plate .stage-bar { background: #2a2e34; border-color: var(--plate-rule); }
.plate .stage-bar i { background: #50545b; }
.caption { margin-top: 16px; font-size: 0.875rem; line-height: 1.55; color: var(--graphite); max-width: 52em; }
.plate .caption { color: var(--plate-soft); }

/* The parts of the product, as a list under rules */
.parts { border-top: 1px solid var(--ink); }
.parts a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); gap: 8px 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding 0.2s; }
.parts a:hover { padding-left: 12px; }
.parts a:hover .part-name { color: var(--proof); }
.part-name { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.012em; }
.part-what { color: var(--graphite); }
.state { font-size: 0.875rem; display: inline-flex; align-items: baseline; gap: 8px; justify-self: end; text-align: right; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--proof); flex: none; transform: translateY(-1px); }
.state.part::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--query); }
.state.part { color: var(--query); }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.figures > div { padding: 28px 32px 0 0; }
.figures > div + div { padding-left: 32px; border-left: 1px solid var(--rule); }
.fig { font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: 1; font-weight: 300; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; }
.fig-what { margin-top: 14px; font-weight: 600; }
.fig-note { margin-top: 4px; font-size: 0.9375rem; color: var(--graphite); }
.plate .figures { border-top-color: var(--folio); }
.plate .figures > div + div { border-left-color: var(--plate-rule); }
.plate .fig-note { color: var(--plate-soft); }
.source { margin-top: 48px; }

/* Closing band */
.close { padding: 104px 0; }
.close .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
.close .actions { margin-top: 0; justify-content: flex-end; }
.close .lead { margin-top: 18px; }

/* Inner pages */
.page-head { padding: 96px 0 72px; }
.page-head .lead { margin-top: 24px; }
.page-head + .wrap > .stage { margin-bottom: 0; }
.shot { padding-bottom: 112px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.points.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.points p { margin-top: 10px; color: var(--graphite); }
.plate .points > div { border-top-color: var(--folio); }
.plate .points p { color: var(--plate-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .body { margin-top: 18px; color: var(--graphite); }
.split .h2 + .body { margin-top: 20px; }
.ticks { margin-top: 22px; border-top: 1px solid var(--rule); }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cols { columns: 2; column-gap: 64px; border-top: 1px solid var(--ink); padding-top: 8px; }
.cols li { padding: 12px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }

/* Ledger: a claim, and the fact or the limit behind it */
.ledger { border-top: 1px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 56px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: 1.3125rem; line-height: 1.3; font-weight: 600; }
.ledger dd { max-width: 40em; }
.ledger dd + dd { grid-column: 2; }
.tag { font-weight: 600; }
.tag.fact { color: var(--proof); }
.tag.limit { color: var(--ox); }
.plate .tag.limit { color: #eba79d; }
.plate td.ours .tag.limit, .plate .flow .home .tag.limit { color: var(--ox); }
.plate .ledger { border-top-color: var(--folio); }
.plate .ledger > div { border-bottom-color: var(--plate-rule); }
.plate .ledger dd { color: #dcdcd6; }

/* Where the text goes */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); }
.flow > div { padding: 28px; position: relative; }
.flow > div + div { border-left: 1px solid var(--ink); }
.flow > div + div::before { content: ""; position: absolute; left: -7px; top: 34px; width: 12px; height: 12px; background: var(--folio); border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.flow .h3 { margin-bottom: 8px; }
.flow p { font-size: 0.9375rem; color: var(--graphite); }
.flow .home { background: var(--proof-tint); }
.plate .flow { border-color: var(--plate-rule); }
.plate .flow > div + div { border-left-color: var(--plate-rule); }
.plate .flow > div + div::before { background: var(--plate); border-color: var(--plate-rule); }
.plate .flow p { color: var(--plate-soft); }
.plate .flow .home { color: var(--ink); }
.plate .flow .home p { color: var(--graphite); }
.plate .flow .home + div::before { background: var(--proof-tint); }

/* Tables */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.table-scroll:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; min-width: 760px; }
th, td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 600; }
tbody th { font-weight: 400; color: var(--graphite); width: 24%; }
td.ours { background: var(--proof-tint); padding-left: 18px; }
thead th.ours { padding-left: 18px; background: var(--proof-tint); }
.plate .table-scroll { border-top-color: var(--folio); }
.plate th, .plate td { border-bottom-color: var(--plate-rule); }
.plate tbody th { color: var(--plate-soft); }
.plate td.ours, .plate thead th.ours { color: var(--ink); }
td.ours + td, th.ours + th { padding-left: 24px; }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 72px; align-items: start; }
.price-fig { font-size: clamp(4.5rem, 12vw, 9rem); line-height: 0.9; font-weight: 300; letter-spacing: -0.045em; }
.price-unit { margin-top: 16px; font-size: 1.3125rem; }

/* Questions */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.3125rem; line-height: 1.3; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.75rem; font-weight: 300; line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 24px; max-width: 40em; color: var(--graphite); }

/* Contact */
.mail { font-size: clamp(1.75rem, 5.4vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; text-decoration-thickness: 2px; text-underline-offset: 0.14em; overflow-wrap: anywhere; }
.mail:hover { color: var(--proof); }

/* Footer */
.site-foot { background: var(--plate); color: var(--folio); padding: 80px 0 40px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px 48px; }
.site-foot .brand { color: var(--folio); }
.foot-say { margin-top: 16px; color: var(--plate-soft); max-width: 24em; }
.foot-col p { color: var(--plate-soft); font-size: 0.875rem; margin-bottom: 12px; }
.foot-col a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--plate-rule); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 0.875rem; color: var(--plate-soft); }

/* One movement on the home page: the bench settles in once */
@media (prefers-reduced-motion: no-preference) {
  .hero .bench { animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.1s; }
  @keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; }
  .sec-head, .hero-top, .close .wrap, .split, .price { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .split.flip > :first-child { order: 0; }
  .close .actions { justify-content: flex-start; }
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench-quote { border-left: 0; border-top: 1px solid var(--plate-rule); }
  .t-verdict { min-height: 0; }
  .parts a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; }
  .state { justify-self: start; text-align: left; }
  .points, .points.two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); }
  .ledger dd + dd { grid-column: 1; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .flow > div + div::before { left: 34px; top: -7px; transform: rotate(135deg); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .hero { padding-top: 48px; }
  .hero .bench { margin: 40px calc(-1 * var(--gutter)) 0; }
  .bench-doc, .bench-quote { padding: 28px var(--gutter); }
  .bench-foot { padding: 14px var(--gutter); }
  .t-page { padding: 20px 16px 20px 6px; font-size: 1rem; }
  .t-page p { grid-template-columns: 26px minmax(0, 1fr); gap: 0 8px; }
  #t-input { font-size: 1rem; }
  .page-head { padding: 56px 0 44px; }
  .shot { padding-bottom: 72px; }
  .stage-bar { height: 24px; }
  .stage-bar i { width: 7px; height: 7px; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div, .figures > div + div { padding: 24px 0; border-left: 0; }
  .figures > div + div { border-top: 1px solid var(--rule); }
  .plate .figures > div + div { border-top-color: var(--plate-rule); }
  .cols { columns: 1; }
  .close { padding: 72px 0; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .foot-base { flex-direction: column; }
  .site-foot { padding-top: 56px; }
}

/* Text for screen readers only */
.visually { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
