/* Wessling-style store site: paper and ink with one mint accent, 6px radius, no shadows.
   Product and product-page rules live in shop.css, loaded only where products exist. */
@font-face { font-family: "Bricolage"; src: url("display.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("body.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #F3F4F1;
  --paper-2: #E7EAE4;
  --surface: #FFFFFF;
  --ink: #101211;
  --ink-2: #393E3B;
  --muted: #575E59;
  --line: rgba(16, 18, 17, .15);
  --soft: #CDD2CB;
  --accent: #3CD29A;
  --accent-deep: #0A7752;
  --on-accent: #101211;
  --display: "Bricolage", "Arial Narrow", sans-serif;
  --body: "Schibsted", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 6px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --gap: 24px;
  --section: clamp(56px, 7vw, 100px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1110;
    --paper-2: #171A18;
    --surface: #1B1F1C;
    --ink: #EDEFEC;
    --ink-2: #C9CEC9;
    --muted: #9AA19C;
    --line: rgba(237, 239, 236, .16);
    --soft: #3A403C;
    --accent-deep: #5FE0AE;
    color-scheme: dark;
  }
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px;
       scrollbar-color: var(--soft) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--soft); border: 3px solid var(--paper); border-radius: var(--r); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: var(--paper);
        padding: 8px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { left: 16px; }

/* links and buttons */
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
        text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.link-on { font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
       border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
       font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: #101211; }
.btn-primary:hover { background: #101211; color: #F3F4F1; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---- header and wordmark ---- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent;
             transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); letter-spacing: -.02em;
         text-decoration: none; white-space: nowrap; }
.mark { width: 26px; height: 26px; flex: none; color: var(--ink); }
.mark-fill { fill: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav .link { text-decoration-color: transparent; }
.nav .link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---- hero ---- */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero-grid { align-items: center; row-gap: 40px; }
.hero-copy { grid-column: 1 / span 7; container-type: inline-size; }
/* The headline is sized from its longest line (--n characters, set by the page) so it fills its column. */
.display { --n: 18; font: 400 5rem/.95 var(--display); letter-spacing: -.035em;
           font-size: min(8.5rem, calc(100cqi / (var(--n) * .53))); }
.hl { display: block; }
.display .hl2 { padding-left: calc((100% + var(--gap)) / 7); }
.n8 { --n: 8; } .n9 { --n: 9; } .n10 { --n: 10; } .n11 { --n: 11; } .n12 { --n: 12; } .n13 { --n: 13; }
.n14 { --n: 14; } .n15 { --n: 15; } .n16 { --n: 16; } .n17 { --n: 17; } .n18 { --n: 18; } .n19 { --n: 19; }
.n20 { --n: 20; } .n21 { --n: 21; } .n22 { --n: 22; } .n23 { --n: 23; } .n24 { --n: 24; } .n25 { --n: 25; }
.n26 { --n: 26; } .n27 { --n: 27; } .n28 { --n: 28; } .n29 { --n: 29; } .n30 { --n: 30; } .n31 { --n: 31; }
.n32 { --n: 32; } .n33 { --n: 33; } .n34 { --n: 34; } .n35 { --n: 35; } .n36 { --n: 36; } .n37 { --n: 37; }
.n38 { --n: 38; } .n39 { --n: 39; } .n40 { --n: 40; }
.lead { margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* the worked example: one real photo, measured */
.case { grid-column: 8 / -1; }
.case-photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--ink); }
.case-photo img { width: 100%; }
.case-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #FFFFFF; }
.case-split::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; translate: -50% -50%;
                     border-radius: 50%; background: #FFFFFF; border: 1.5px solid #101211; }
.tag { position: absolute; bottom: 12px; display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r);
       background: #FFFFFF; color: #101211; border: 1.5px solid #101211; font-size: 13px; line-height: 1.2; }
.tag b { font-weight: 650; font-size: 15px; }
.tag-before { left: 12px; }
.tag-after { right: 12px; background: var(--accent); }
.case figcaption { position: relative; margin-top: 16px; padding-left: 0; }
.case-saved { display: inline; font: 500 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.2 var(--display); letter-spacing: -.02em;
              background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%); }
.case-note, .case-alt { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 52ch; }
.case-alt { color: var(--ink-2); }
.scribble { position: absolute; left: 47%; top: -26px; width: 22%; height: 40px; fill: none; stroke: var(--accent-deep);
            stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px);
         border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.strip > div { padding: 18px 20px 20px 0; }
.strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.strip dt { font-size: 13.5px; color: var(--muted); }
.strip dd { margin-top: 4px; font-weight: 600; }

/* ---- sections ---- */
.block { padding: var(--section) 0; }
.block-tint { background: var(--paper-2); }
.block-head { align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.big { grid-column: 1 / span 8; font: 400 clamp(2.4rem, 1rem + 4.2vw, 5.5rem)/.95 var(--display); letter-spacing: -.035em; }
.big .hl2 { padding-left: calc((100% + var(--gap)) / 8); }
.mid { font: 400 clamp(2rem, 1.2rem + 2.4vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; }
.block-lede { grid-column: 9 / -1; color: var(--ink-2); font-size: 17.5px; max-width: 38ch; padding-bottom: 6px; }

/* services: a price list */
.pricelist { width: 100%; border-collapse: collapse; }
.pricelist thead th { text-align: left; font: 600 13px/1.3 var(--body); color: var(--muted); padding: 0 16px 12px 0;
                      border-bottom: 1.5px solid var(--ink); }
.pricelist tbody tr { border-bottom: 1px solid var(--line); }
.pricelist td, .pricelist tbody th { padding: 26px 16px 26px 0; vertical-align: top; text-align: left; }
.pl-name { width: 34%; font: 450 clamp(1.3rem, 1rem + .7vw, 1.65rem)/1.2 var(--display); letter-spacing: -.02em; }
.pl-name-in { display: flex; gap: 18px; align-items: flex-start; }
.pl-glyph { width: 28px; height: 28px; stroke-width: 1.4; margin-top: 1px; }
.pl-what { color: var(--ink-2); max-width: 56ch; }
.pl-price { width: 14%; font: 500 18px/1.4 var(--display); white-space: nowrap; }
.pl-act { width: 1%; white-space: nowrap; text-align: right !important; font-size: 15px; color: var(--ink-2); }

.services-more { margin-top: 24px; max-width: 70ch; color: var(--ink-2); }

/* process with the delivery email beside it */
.how-steps { grid-column: 1 / span 6; }
.process { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.process li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0;
              border-bottom: 1px solid var(--line); }
.pn { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
      border: 1.5px solid var(--ink); font: 600 16px/1 var(--display); }
.process li:first-child .pn { background: var(--accent); color: var(--on-accent); border-color: #101211; }
.pt { font: 500 20px/1.3 var(--display); letter-spacing: -.015em; }
.pd { color: var(--ink-2); font-size: 16px; }
.mail { grid-column: 8 / -1; align-self: center; }
.mail-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px 22px 24px;
             font-size: 15px; }
.mail-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 6px 0;
            border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mail-row span { color: var(--muted); }
.mail-body { padding: 16px 0 4px; display: grid; gap: 10px; color: var(--ink-2); }
.mail-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mail-files li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line);
                 border-radius: var(--r); font-size: 14px; }
.mail-files .icon { width: 16px; height: 16px; }
.mail-pay { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: var(--r);
            background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; }
.mail-pay .icon { width: 16px; height: 16px; }
.mail figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* about */
.about { row-gap: 32px; align-items: start; }
.about-text { grid-column: 1 / span 7; }
.about.with-photo .about-text { grid-column: 5 / span 5; }
.portrait { grid-column: 1 / span 4; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--ink); }
.portrait img { width: 100%; }
.about-body { margin-top: 24px; display: grid; gap: 16px; }
.about-body p { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.about-body p:first-child { font: 400 clamp(1.3rem, 1.05rem + .8vw, 1.7rem)/1.35 var(--display); color: var(--ink);
                            letter-spacing: -.01em; }
.identity { grid-column: 9 / -1; border-top: 1.5px solid var(--ink); font-size: 15px; }
.about.with-photo .identity { grid-column: 10 / -1; }
.identity > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.identity dt { color: var(--muted); font-size: 13px; }
.identity dd { margin-top: 2px; overflow-wrap: anywhere; }

/* faq */
.side-title { grid-column: 1 / span 4; }
.side-title p { margin-top: 20px; color: var(--muted); max-width: 30ch; font-size: 16px; }
.qa-grid { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.qa { border-top: 1.5px solid var(--ink); padding: 18px 0 28px; }
.qa dt { font: 600 17px/1.35 var(--body); }
.qa dd { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* contact */
.contact { background: var(--paper-2); padding: var(--section) 0; border-top: 1.5px solid var(--ink); }
.block-tint + .contact { background: var(--paper); }
.contact-intro { grid-column: 1 / span 6; }
.contact-intro > p { margin-top: 20px; color: var(--ink-2); max-width: 40ch; }
.contact-mail { display: inline-block; margin-top: 28px; font: 450 clamp(1.5rem, 1rem + 1.8vw, 2.6rem)/1.1 var(--display);
                letter-spacing: -.03em; text-decoration: underline; text-decoration-color: var(--accent);
                text-decoration-thickness: 4px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration-color: currentColor; }
.contact-reply { margin-top: 12px !important; font-size: 15px; color: var(--muted) !important; }
.contact-form { grid-column: 8 / -1; display: grid; gap: 16px; align-content: start; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px 14px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 128px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.contact-form .btn { justify-self: start; }
.form-hint { font-size: 13.5px; color: var(--muted); }

/* ---- footer ---- */
.site-foot { border-top: 1.5px solid var(--ink); font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
             padding-block: 48px 40px; }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 30ch; }
.foot-nav { grid-column: 6 / span 2; display: grid; gap: 8px; align-content: start; }
.foot-legal { grid-column: 8 / span 2; display: grid; gap: 8px; align-content: start; }
.foot-legal .link, .foot-nav .link { overflow-wrap: anywhere; }
.foot-small { grid-column: 10 / span 3; font-size: 13px; color: var(--muted); display: grid; gap: 8px; align-content: start; }

/* ---- terms, privacy, 404 ---- */
.doc { padding: clamp(40px, 6vw, 88px) 0 var(--section); max-width: 980px; }
.doc h1 { font: 400 clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem)/.98 var(--display); letter-spacing: -.035em; }
.updated { margin: 14px 0 40px; color: var(--muted); font-size: 15px; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; border-top: 1px solid var(--line);
           padding: 18px 0; }
.doc-row h2 { font: 600 17px/1.4 var(--body); }
.doc-row p { color: var(--ink-2); line-height: 1.7; }
.doc-action { margin-top: 8px; }

/* ---- motion: a short rise when content scrolls into view (visible without the script) ---- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .head-row .btn { margin-left: auto; }
}
@media (max-width: 960px) {
  :root { --gap: 16px; }
  .hero-copy, .case, .big, .block-lede, .how-steps, .mail, .about-text, .about.with-photo .about-text, .portrait,
  .identity, .about.with-photo .identity, .side-title, .qa-grid, .contact-intro, .contact-form { grid-column: 1 / -1; }
  .display .hl2 { padding-left: calc((100% + var(--gap)) / 12); }
  .block-lede { margin-top: 20px; }
  .mail { margin-top: 40px; max-width: 560px; }
  .portrait { max-width: 360px; }
  .side-title { margin-bottom: 32px; }
  .contact-form { margin-top: 40px; max-width: 560px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-nav { grid-column: 1 / span 4; }
  .foot-legal { grid-column: 5 / span 4; }
  .foot-small { grid-column: 9 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .head-row { height: 60px; gap: 16px; }
  .brand { font-size: 18px; }
  .mark { width: 22px; height: 22px; }
  .display { font-size: min(4.6rem, calc(100cqi / (var(--n) * .5))); }
  .lead { font-size: 17px; }
  .scribble { display: none; }
  .tag { padding: 6px 8px; font-size: 12px; } .tag b { font-size: 13.5px; }
  .pricelist thead { display: none; }
  .pricelist, .pricelist tbody, .pricelist tr { display: block; }
  .pricelist tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 22px 0; }
  .pricelist td, .pricelist tbody th { padding: 0 !important; }
  .pl-name { width: auto; grid-column: 1 / -1; }
  .pl-name-in { gap: 14px; }
  .pl-glyph { width: 24px; height: 24px; }
  .pl-what { grid-column: 1 / -1; padding-left: 38px !important; }
  .pl-price { width: auto; grid-column: 1; padding-left: 38px !important; margin-top: 6px; }
  .pl-act { width: auto; grid-column: 2; margin-top: 6px; }
  .pricelist:not(.priced) .pl-act { grid-column: 1 / -1; text-align: left !important; padding-left: 38px !important; }
  .qa-grid { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 1fr; }
  .foot-nav, .foot-legal { grid-column: span 6; }
  .foot-small { grid-column: 1 / -1; }
  .contact-form .btn { width: 100%; }
}
@media (max-width: 400px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div, .strip > div + div { padding: 14px 0; border-left: 0; }
  .strip > div + div { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
