/* NOR Send — express post.
   The same family as the other normake.com sites: a pale, slightly green paper,
   near-black ink, one accent. Here the accent is the orange of an express
   label; it marks every action. */

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --paper: #f2f3ef;
    --paper-2: #e6e9e4;
    --sheet: #fbfbf9;
    --ink: #17212b;
    --ink-2: #4f5b66;
    --ink-3: #33404b;
    --rule: #d3d8dc;
    --field: #b9c1c8;
    --accent: #c2410c;
    --accent-deep: #9a3412;
    --accent-wash: #fde8dc;
    --accent-mist: #fff4ec;
    --ok: #1d6f47;
    --warn-bg: #fff3d1;
    --warn-ink: #4a2f00;
    --warn-mark: #6b4500;
    --bad: #8c1d15;
    --bad-wash: #fbe9e7;
    --focus: 0 0 0 3px rgba(194, 65, 12, .4);
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-size: 17px; line-height: 1.55;
    background: var(--paper); color: var(--ink);
    min-height: 100vh;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex-grow: 1; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
code, .mono { font-family: var(--mono); }
code { font-size: .86em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: none; box-shadow: var(--focus); }
svg.icon { display: block; flex-shrink: 0; }

/* header ----------------------------------------------------------------- */
header.site {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 22px 0; margin-bottom: 26px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem;
}

/* hero ------------------------------------------------------------------- */
.hero { max-width: 760px; margin-bottom: 28px; }
.display {
    font-weight: 900; font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1; letter-spacing: -.035em; margin-bottom: 14px;
}
.lede { color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    padding: 8px 14px; margin-bottom: 22px; border-radius: 999px;
    background: var(--accent-wash); color: var(--accent-deep); font-size: .85rem; font-weight: 700;
}
.get .pill { margin-bottom: 0; }

/* building blocks -------------------------------------------------------- */
.card { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 10px; }
.pad { padding: 28px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack.tight { gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.note { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.note.warn { color: var(--warn-mark); font-weight: 700; }
.lbl { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
fieldset { border: 0; }
legend { font-size: .85rem; font-weight: 700; margin-bottom: 8px; }

.input {
    width: 100%; min-height: 48px; padding: 0 14px;
    border: 1.5px solid var(--field); border-radius: 6px; background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink);
}
.input.mono { font-family: var(--mono); font-size: .85rem; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus); }
.with-tools { display: flex; gap: 8px; }
.with-tools + .note { margin-top: 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 6px;
    border: 1.5px solid var(--ink); background: var(--accent); color: #fff;
    font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn:disabled { background: #d9a68f; border-color: #6b7580; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); min-height: 44px; padding: 0 18px; font-size: .94rem; }
.btn.secondary:hover { background: var(--paper-2); }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--field); min-height: 44px; padding: 0 16px; font-size: .94rem; }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-wash); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px;
    border: 1.5px solid var(--field); background: #fff; color: var(--ink-3); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.link-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
    font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.link-btn:hover { color: var(--bad); }

.status { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 700; }
.status.bad { color: var(--bad); }
.status:empty { display: none; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; font-size: .92rem; line-height: 1.5; }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.bad { background: var(--bad-wash); color: var(--bad); }
.alert .icon { margin-top: 2px; }

/* choosing a file -------------------------------------------------------- */
.drop {
    display: flex; align-items: center; gap: 16px; padding: 30px 22px;
    border: 1.5px dashed var(--accent); border-radius: 8px; background: var(--accent-mist); cursor: pointer;
}
.drop:hover, .drop.over { background: var(--accent-wash); }
.drop:focus-within { box-shadow: var(--focus); }
.drop strong, .chosen strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.sub { display: block; font-size: .88rem; color: var(--ink-2); }
.drop-icon { color: var(--accent); }
.chosen {
    display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 22px;
    border: 1.5px solid var(--field); border-radius: 8px; background: #fff;
}
.chosen-text { flex-grow: 1; min-width: 0; }

.segmented { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; font-size: .94rem; font-weight: 700; }
.segmented label { position: relative; cursor: pointer; }
.segmented label + label { border-left: 1.5px solid var(--ink); }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 10px 18px; background: #fff; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { box-shadow: inset var(--focus); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .97rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

progress {
    width: 100%; height: 12px; border: 0; border-radius: 6px; overflow: hidden;
    background: var(--paper-2); appearance: none;
}
progress::-webkit-progress-bar { background: var(--paper-2); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.state-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.state-title.ok { color: var(--ok); }
.state-title.bad { color: var(--bad); }
.report { border-top: 1px solid var(--rule); padding-top: 16px; }
.password-box { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.password-box .lbl { margin-bottom: 0; }
.password-box .with-tools { max-width: 520px; }
.password-box .with-tools + .note { margin-top: 0; }
.password-shown { max-width: 420px; }
.alert.info { background: var(--accent-mist); color: var(--ink); margin-top: 12px; }
.alert.info .icon { color: var(--accent); }
.report .row span { font-size: .92rem; }

/* how it works ----------------------------------------------------------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.how h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.how h2 .icon { color: var(--accent); }
.how p { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.more { margin-top: 22px; font-weight: 700; }
.more a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* footer ----------------------------------------------------------------- */
footer.site {
    margin-top: 48px; padding: 28px 0 32px; border-top: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    font-size: .85rem; color: var(--ink-2);
}
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; }

/* narrow screens --------------------------------------------------------- */
@media (max-width: 760px) {
    .container { padding: 0 16px; }
    header.site { margin-bottom: 18px; }
    .pad { padding: 18px; }
    .how { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .drop { padding: 22px 16px; }
    .segmented { display: flex; }
    .segmented label { flex: 1 1 0; text-align: center; }
    .segmented span { padding: 10px 8px; }
    .with-tools { flex-direction: column; }
    .row.spread { flex-direction: column; align-items: stretch; }
    .row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
    .btn, .drop, .segmented span { transition: background-color .12s, color .12s; }
}
