/* Felles v1.0 · Fiveland Studio */
:root {
  --night: #171516;
  --ink: #211c20;
  --paper: #f7f4ef;
  --white: #fffcf9;
  --wine: #621e33;
  --blue: #17278f;
  --ember: #ff775a;
  --rust: #a43826;
  --muted: #59514f;
  --on-night: #ded7d1;
  --rule: #c6beb7;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --edge: clamp(20px, 5vw, 88px);
}
* { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; }
body { margin: 0; font: 400 1rem/1.54 var(--sans); color: var(--ink); background: var(--paper); }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, .amount, .proof-title { font-family: var(--serif); font-weight: 400; }
h1, h2, .proof-title { letter-spacing: -.034em; line-height: 1.01; }
h1, h2, h3, p, label, a, button, figcaption, .price-note, .crumb { overflow-wrap: anywhere; }
h2 { font-size: clamp(3.15rem, 4.8vw, 5.2rem); }
em, cite { font-family: var(--serif); font-weight: 400; }
picture, img { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a, button { touch-action: manipulation; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.mast :focus-visible, .opening :focus-visible, .invitation :focus-visible { outline-color: #ffac91; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: #ffceb8; color: var(--ink); }
.wrap { width: calc(100% - 2 * var(--edge)); max-width: 1488px; margin-inline: auto; }
.skip {
  position: absolute; left: var(--edge); top: 0; z-index: 5; transform: translateY(-130%);
  padding: .7rem 1rem; border: 2px solid var(--blue); color: var(--ink); background: var(--white);
}
.skip:focus { transform: translateY(6px); }
.mast, .opening { color: var(--paper); background: var(--night); }
.mast-inner {
  min-height: 90px; padding-block: 10px; border-bottom: 1px solid #474145;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.mast .brand img { width: 132px; }
.mast nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(20px, 2.65vw, 44px); }
.mast nav a, .footer nav a, .text-link {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: inherit;
  font-size: 1rem; line-height: 1.35; font-weight: 600; text-decoration: none;
}
.mast nav a[aria-current], .footer nav a[aria-current], .mast nav a:hover, .footer nav a:hover {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .32em;
}
.mast .offer-tab { border: 1px solid #887e7d; padding: .55rem 1.15rem; border-radius: 2rem; }
.mast .offer-tab:hover { background: #393034; }
.opening .spread {
  display: grid; grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
  align-items: center; min-height: clamp(32rem, 38.5vw, 40rem);
}
.opening-copy { padding-block: clamp(42px, 4.7vw, 80px); }
.kicker { display: flex; gap: .82rem; align-items: center; color: var(--on-night);
  font: 650 1rem/1.35 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.thread { position: relative; flex: 0 0 26px; height: 2px; background: var(--ember); transform: rotate(-11deg); }
.thread::before, .thread::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 100%; top: -1px; background: inherit; }
.thread::before { left: -1px; }
.thread::after { right: -1px; }
.opening h1 { margin-top: 1.35rem; font-size: clamp(3.35rem, 6.02vw, 6.55rem); line-height: .99; }
.opening h1 em { letter-spacing: -.042em; }
.lead { max-width: 27.5rem; margin: 1.45rem 0 1.7rem; font-size: 1.125rem; line-height: 1.52; color: var(--on-night); }
.opening-action, .offer-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: max(46px, 3.1rem);
  padding: .67rem 1.45rem; max-width: 100%; border: 1px solid transparent; border-radius: 5rem;
  text-align: center; font: 650 1rem/1.35 var(--sans); text-decoration: none; cursor: pointer;
}
.light { background: var(--paper); color: var(--ink); }
.light:hover { background: #ffe2d6; }
.dark { background: var(--ink); color: var(--white); }
.dark:hover { background: var(--wine); }
.button:active { border-color: var(--ember); }
.price-note { font-size: 1rem; line-height: 1.35; color: var(--on-night); }
.price-note strong { color: var(--paper); font-weight: 600; }
.opening-art { margin-inline: 0 calc(-.40 * var(--edge)); min-width: 0; padding-block: 20px 18px; }
.opening-art img {
  width: 100%;
  --kanter: linear-gradient(90deg, transparent, black 3%, black 97%, transparent), linear-gradient(0deg, transparent, black 7%, black 96%, transparent);
  -webkit-mask-image: var(--kanter);
  -webkit-mask-composite: source-in;
  mask-image: var(--kanter);
  mask-composite: intersect;
}
.opening-art figcaption { display: flex; gap: .7rem; align-items: center; justify-content: flex-end; margin-right: calc(.40 * var(--edge)); margin-top: .4rem;
  font-size: .875rem; color: var(--on-night); }
.opening-art cite { color: var(--paper); font-size: 1.3rem; line-height: 1.1; }
.opening-art figcaption span { width: 1.6rem; height: 1px; background: #817675; }
.offer { padding-block: clamp(40px, 4.4vw, 80px) clamp(44px, 4.5vw, 78px); }
.prices { display: grid; grid-template-columns: minmax(min-content, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 60px); }
#pris-tittel { overflow-wrap: normal; -webkit-hyphens: manual; hyphens: manual; }
.offer-intro p, .price-column > p:last-child, .example-intro > p, .article-copy { color: var(--muted); max-width: 39ch; }
.offer-intro p { margin-block: .9rem .5rem; }
.price-column { border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.5vw, 48px); }
.price-column h2, .price-column h3 { font: 650 1rem/1.4 var(--sans); letter-spacing: normal; }
.amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .16em; font-size: clamp(3.9rem, 5.6vw, 6.35rem); letter-spacing: -.04em; line-height: 1.04; margin: .35rem 0 .7rem; }
.amount small { font: 500 1.05rem/1.3 var(--sans); letter-spacing: 0; }
.offer-actions { margin-top: 1.65rem; }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .29em; }
.text-link, .footer nav a { min-width: 44px; }
.text-link:hover, .footer a:hover { color: var(--rust); }
.example > .wrap { border-top: 1px solid var(--rule); padding-block: clamp(42px, 5.1vw, 90px) clamp(36px, 4.2vw, 70px); }
.example-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 6vw, 100px); align-items: end; margin-bottom: 2.1rem; }
.example-intro > p { max-width: 44ch; }
.specimen figcaption { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .12rem .8rem;
  padding-block: .65rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; background: var(--paper); }
.specimen figcaption strong { color: var(--ink); font-weight: 650; }
.diptych { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.binding { position: relative; min-height: clamp(300px, 29vw, 480px); }
.binding img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.typeproof { display: flex; align-items: center; background: var(--blue); color: #fff4df; padding: clamp(30px, 4.6vw, 76px); }
.proof-content { padding-left: 1.45rem; position: relative; }
.proof-content::before { content: ""; position: absolute; left: 0; top: .35rem; bottom: .28rem; border-left: 3px dashed #ff9d7c; transform: rotate(2deg); transform-origin: bottom; }
.proof-title { max-width: 9em; font-size: clamp(3.2rem, 4.8vw, 5.6rem); }
.proof-content > p:last-child { margin-top: 1.15rem; max-width: 30ch; }
.example-actions { display: flex; justify-content: flex-end; margin-top: .65rem; }
.invitation { background: var(--wine); color: var(--paper); }
.invitation-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: clamp(30px, 7vw, 120px); align-items: center; padding-block: clamp(38px, 4.3vw, 75px); }
.invitation-copy h2 { max-width: 10em; font-size: clamp(3.5rem, 5.05vw, 6rem); }
.invitation-copy .button { margin-top: 1.65rem; }
.brev img { width: 100%; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem; row-gap: .7rem; padding-block: 1.75rem; }
.footer .brand img { width: 138px; }
.footer p { color: var(--muted); font-size: 1rem; }
.footer nav { margin-left: auto; }

/* Felles deler på undersidene. */
.crumb { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .9375rem; line-height: 1.5; color: var(--muted); padding-block: .55rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-underline-offset: .2em; }
.crumb .divider { color: #746768; }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }
.landing { padding: 1.8rem 0 clamp(44px, 6vw, 100px); }
.landing h1 { font-size: clamp(3.6rem, 6.5vw, 7.4rem); }
.landing .intro { margin-top: 1.1rem; max-width: 43ch; color: var(--muted); font-size: 1.125rem; }
.landing .intro + .text-link { margin-top: .4rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro form" "art form"; column-gap: clamp(38px, 7vw, 120px); row-gap: 2rem; align-items: start; }
.contact-intro { grid-area: intro; }
.contact-intro h1 em { display: block; }
.contact-art { grid-area: art; width: min(100%, 26rem); }
.letter { grid-area: form; min-width: 0; padding: clamp(22px, 2.8vw, 48px); background: var(--white); border-top: 2px solid var(--wine); }
.recipient { border-bottom: 1px solid var(--rule); margin: 0 0 1.25rem; padding-bottom: .8rem; }
.recipient strong { font-weight: 600; }
.field + .field { margin-top: 1.1rem; }
label { display: block; font-weight: 650; margin-bottom: .4rem; }
label span { font-weight: 400; color: var(--muted); }
input, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; color: var(--ink); padding: .6rem .8rem; border: 1px solid #827778; border-radius: 2px; background: var(--white); }
textarea { resize: vertical; min-height: 6.3rem; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
textarea[aria-invalid="true"] { border: 2px solid var(--rust); }
.field-error { margin-top: .5rem; font-weight: 600; color: var(--rust); }
.form-note { color: var(--muted); margin-block: 1.15rem; }
.feedback:not(:empty) { margin-top: 1rem; padding: .65rem .85rem; border-left: 3px solid var(--blue); background: #eeebf6; }
.secondary-section { margin-top: 2rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.secondary-section h2 { font-size: clamp(2.45rem, 3.3vw, 3.85rem); }
.secondary-section p { margin-block: .75rem; max-width: 56ch; }
.secondary-section:target { min-height: 92vh; }
.secondary-section ul { max-width: 56ch; padding-inline-start: 1.3rem; }
.secondary-section li + li { margin-top: .38rem; }
.terms { max-width: 56rem; }
.terms .prices { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 1.75rem; }
.terms .price-column:first-child { border-left: 0; padding-left: 0; }
.sample-landing .specimen { margin: 1.7rem 0 1.25rem; }
.reference-main + .footer { border-top: 1px solid var(--rule); }

@media (min-width: 751px) and (max-width: 1060px) {
  .opening .spread { min-height: 0; }
  .opening h1 { font-size: clamp(2.8rem, 5.6vw, 4rem); }
  .lead { font-size: 1rem; }
  .opening-art { margin-inline-end: 0; }
  .opening-art figcaption { margin-right: 0; }
  .price-column { padding-left: 18px; }
  .amount { font-size: 3.8rem; }
}
@media (max-width: 750px) {
  :root { --edge: clamp(16px, 5.12vw, 28px); }
  .mast-inner { padding: 9px 0 2px; flex-direction: column; align-items: center; gap: 2px; }
  .mast .brand img { width: 116px; }
  .mast nav { width: 100%; justify-content: space-between; gap: 2px 12px; }
  .mast .offer-tab { padding: 0; border: 0; }
  .mast .offer-tab:hover { background: transparent; }
  .opening .spread { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .opening-copy { padding-block: 26px 8px; }
  .opening h1 { font-size: 2.88rem; margin-top: .75rem; }
  .lead { margin: .85rem 0 1.05rem; font-size: 1rem; max-width: 40ch; }
  .opening-action { gap: .4rem .8rem; }
  .button { min-height: max(44px, 2.85rem); padding: .55rem 1.1rem; }
  .opening-art { justify-self: center; width: min(100%, 480px); margin: 0; padding: 8px 0 17px; }
  .opening-art figcaption { justify-content: flex-end; margin: .3rem 0 0; }
  .offer { padding-block: 2.35rem 2.5rem; }
  h2, .invitation-copy h2 { font-size: 3.05rem; }
  #pris-tittel { font-size: 2.72rem; }
  .prices { grid-template-columns: minmax(0,1fr); gap: 1.1rem; }
  .offer-intro p { margin: .65rem 0 0; }
  .price-column { border-left: 0; border-top: 1px solid var(--rule); padding: 1rem 0 0; }
  .amount { font-size: 3.65rem; margin-block: .18rem .45rem; }
  .offer-actions { margin-top: 1.2rem; }
  .example > .wrap { padding-block: 2.5rem 1.65rem; }
  .example-intro { grid-template-columns: minmax(0,1fr); gap: .8rem; margin-bottom: 1.2rem; }
  .specimen figcaption { justify-content: start; gap: .1rem .7rem; }
  .diptych { grid-template-columns: minmax(0,1fr); }
  .binding { min-height: 0; }
  .binding img { position: static; aspect-ratio: 1.85; height: auto; }
  .typeproof { padding: 1.8rem 1.4rem; }
  .proof-title { font-size: 2.85rem; }
  .proof-content { padding-left: 1.2rem; }
  .proof-content > p:last-child { margin-top: .75rem; }
  .example-actions { justify-content: start; }
  .invitation-inner { grid-template-columns: minmax(0,1fr); gap: 1.4rem; padding-block: 2.25rem; }
  .invitation-copy .button { margin-top: 1.05rem; }
  .footer-inner { column-gap: 1.3rem; padding-block: 1.3rem; }
  .footer .brand img { width: 118px; }
  .footer nav { flex-basis: 100%; margin-left: 0; }
  .crumb { padding-block: .12rem; }
  .landing { padding: .7rem 0 2.3rem; }
  .landing h1 { font-size: 3.38rem; }
  .landing .intro { font-size: 1rem; margin-top: .65rem; }
  .contact-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "form" "art"; gap: 1.15rem; }
  .letter { padding: 1rem .9rem 1.15rem; }
  .recipient { padding-bottom: .55rem; margin-bottom: .9rem; }
  .contact-art { width: 100%; }
  .terms .prices { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 374px) {
  .opening h1 { font-size: 2.58rem; }
  h2, .invitation-copy h2 { font-size: 2.75rem; }
  .opening-action { column-gap: 10px; }
  .terms .prices { margin-top: .5rem; }
}
@media (min-width: 420px) and (max-width: 750px) {
  .opening h1 { font-size: clamp(3.05rem, 10.9vw, 4.5rem); }
}
@media (max-width: 335px) {
  .opening h1 { font-size: 2.45rem; }
  #pris-tittel { font-size: 2.55rem; }
}
@media (min-width: 751px) and (max-height: 450px) {
  .mast-inner { min-height: 56px; padding-block: 3px; }
  .mast .brand img { width: 100px; }
  .opening .spread { min-height: 0; }
  .opening-copy { padding-block: 12px 17px; }
  .opening h1 { font-size: 2.9rem; margin-top: .45rem; }
  .lead { font-size: 1rem; margin-block: .55rem .65rem; }
  .opening-art { padding-block: 7px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .offer-tab { transition: background-color 120ms ease-out; }
}

/* Felles v1.0: legg disse reglene sist i studio.css. */
.opening-art figcaption {
  overflow-wrap: normal;
}

.opening-art cite {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 750px) {
  .opening-action .button {
    padding-inline: min(1.1rem, 18px);
  }

  .example .typeproof {
    padding-inline: min(1.4rem, 23px);
  }

  .example .proof-content {
    padding-inline-start: min(1.2rem, 20px);
  }
}
