/* strikke.sol */

/* Fonts are served from the site itself (no Google request).
   SIL Open Font License, see assets/fonts/OFL-*.txt. */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-300-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-300-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-normal-300-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-normal-300-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-normal-400-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-normal-400-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --cream: #EFE4CE;
  --cream-soft: #F8F2E4;
  --ink: #26211D;
  --ink-soft: #5c5346;
  --berry: #6E2E32;      /* sampled from the Stella mosaic pattern */
  --berry-deep: #552326;
  --dusty: #D9BBA8;      /* sampled from the sweater's light tone */
  --mustard: #C08A28;
  --taupe: #8A7F6A;
  --line: rgba(38, 33, 29, 0.14);
  --line-strong: rgba(38, 33, 29, 0.32);

  --radius: 4px;
  --radius-img: 6px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --section: clamp(72px, 10vw, 136px);

  --nav-pad: clamp(20px, 3vw, 34px);
  --logo-home: clamp(28px, 5.4vw, 58px);
  --hb: 46px;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- Base --- */
*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Paper/wool grain on the background only — it sits behind content, never over the photos. */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .11 .55 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .45;
}

h1, h2, h3{
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 em, h2 em{
  font-style: italic;
  font-weight: 400;
  color: var(--berry);
}
p{ text-wrap: pretty; }
a{ color: inherit; }
img{ display: block; max-width: 100%; height: auto; }
figure{ margin: 0; }

::selection{ background: var(--berry); color: var(--cream-soft); }
:focus-visible{ outline: 3px solid var(--mustard); outline-offset: 3px; }

.wrap{
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-top: var(--section); }

/* --- Small shared pieces --- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--berry);
}

.price{
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--berry);
  white-space: nowrap;
}

.text-link{
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) right bottom / 100% 1.5px no-repeat;
  transition: color .3s, background-size .5s var(--ease);
}

/* --- Buttons --- */
.btn{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: 1.05em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--berry);
  color: var(--cream-soft);
  font: 600 .98rem/1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn .arrow{ display: inline-block; transition: transform .55s var(--ease); }
.btn:active{ transform: scale(.97); }
.btn.wide{ width: 100%; padding: 1.15em 1.6em; font-size: 1.05rem; }

@media (hover: hover){
  .btn:hover::before,
  .pattern-card:hover .btn::before{ transform: translateY(0); }
  .btn:hover .arrow,
  .pattern-card:hover .btn .arrow{ transform: translateX(4px); }
  .text-link:hover{ color: var(--berry); background-size: 0 1.5px; }
}

/* --- Header / hamburger --- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  transition: background-color .4s, box-shadow .4s;
}
.site-header.scrolled{ box-shadow: 0 1px 0 var(--line); }

.nav{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
}
.brand{ display: block; line-height: 0; }
.brand img{ width: auto; height: 24px; transition: filter .5s var(--ease); }

/* Home: large logo, header scrolls away but the menu button stays put. */
.site-header.home{ position: relative; background: transparent; }
.site-header.home .nav{ min-height: 0; padding: var(--nav-pad) 0 calc(var(--nav-pad) * .7); }
.site-header.home .brand img{ height: var(--logo-home); }

.hamburger{
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 2;
  width: var(--hb);
  height: var(--hb);
  margin-top: calc(var(--hb) / -2);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream-soft);
  cursor: pointer;
  transition: border-color .3s, transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hamburger span{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin: -.75px 0 0 -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease);
}
.hamburger span:nth-child(1){ transform: translateY(-3.5px); }
.hamburger span:nth-child(2){ transform: translateY(3.5px); }
.hamburger.is-open span:nth-child(1){ transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2){ transform: rotate(-45deg); }
.site-header.home .hamburger{
  position: fixed;
  top: calc(var(--nav-pad) + var(--logo-home) / 2 - var(--hb) / 2);
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  margin-top: 0;
}
@media (hover: hover){
  .hamburger:hover{ border-color: var(--ink); transform: scale(1.06); }
}

/* --- Full-screen menu --- */
body.menu-open{ overflow: hidden; }
body.menu-open .site-header{ background: transparent; box-shadow: none; }
body.menu-open .brand img{ filter: brightness(0) invert(94%) sepia(14%); }

.menu-panel{
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--berry);
  color: var(--cream-soft);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.menu-panel.is-open{
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .7s var(--ease), visibility 0s;
}
.menu-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 72px;
  padding-bottom: 32px;
}
.menu-inner > *{
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .35s, transform .6s var(--ease);
}
.menu-panel.is-open .menu-inner > *{ opacity: 1; transform: none; }
.menu-panel.is-open .menu-inner > :nth-child(1){ transition-delay: .15s; }
.menu-panel.is-open .menu-inner > :nth-child(2){ transition-delay: .21s; }
.menu-panel.is-open .menu-inner > :nth-child(3){ transition-delay: .27s; }
.menu-panel.is-open .menu-inner > :nth-child(4){ transition-delay: .33s; }

.menu-eyebrow{
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dusty);
}
.menu-link{
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 12vw, 8rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--cream-soft);
  text-decoration: none;
}
.menu-link::after{
  content: "→";
  font-size: .45em;
  opacity: 0;
  transform: translateX(-.5em);
  transition: opacity .3s, transform .5s var(--ease);
}
.menu-link.active{ font-style: italic; color: var(--dusty); }
.menu-foot{
  margin-top: clamp(28px, 5vh, 48px);
  padding-top: 16px;
  border-top: 1px solid rgba(248, 242, 228, .25);
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .06em;
}
.menu-foot a{ color: var(--cream-soft); text-decoration: none; }
@media (hover: hover){
  .menu-link:hover{ color: var(--dusty); }
  .menu-link:hover::after{ opacity: 1; transform: none; }
  .menu-foot a:hover{ color: var(--dusty); }
}

/* --- Home: Nyhet --- */
.nyhet{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(14px, 5vw, 80px);
  align-items: center;
  padding: clamp(4px, 1.5vw, 16px) 0 0;
}
.nyhet h1{
  margin: .3em 0 .32em;
  font-size: clamp(2.4rem, 8.4vw, 7.6rem);
  font-weight: 450;
  line-height: .9;
  letter-spacing: -.04em;
}
.nyhet h1 .line{
  display: block;
  overflow: hidden;
  padding: 0 .1em .12em 0;
  margin-bottom: -.12em;
}
.nyhet h1 .line > span{ display: inline-block; animation: rise 1.2s var(--ease) backwards; }
.nyhet h1 .line:nth-child(1) > span{ animation-delay: .1s; }
.nyhet h1 .line:nth-child(2) > span{ animation-delay: .2s; }
.nyhet .eyebrow,
.nyhet-lede,
.nyhet-actions{ animation: fade-up 1s var(--ease) backwards; }
.nyhet .eyebrow{ animation-delay: .05s; }
.nyhet-lede{ animation-delay: .35s; }
.nyhet-actions{ animation-delay: .45s; }

.nyhet-lede{
  max-width: 28ch;
  margin: 0 0 2em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
}
.nyhet-actions{ display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.nyhet-price{ font-family: var(--f-mono); font-size: .95rem; font-weight: 700; color: var(--berry); }

.nyhet-media{ position: relative; }
.nyhet .frame{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(80vh, 760px);
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--dusty);
  animation: unveil 1.4s var(--ease) .1s backwards;
}
.nyhet .frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: settle 1.8s var(--ease) .1s backwards;
  transition: transform 1.2s var(--ease);
}
@media (hover: hover){
  .nyhet .frame:hover img{ transform: scale(1.03); }
}

/* --- Section heads --- */
.oppskrifter-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-title{
  margin: 0;
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 450;
  line-height: .95;
  letter-spacing: -.035em;
}
.section-tools{ display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }

/* --- Home: Oppskrifter carousel --- */
.carousel-nav{ display: flex; gap: 8px; }
.carousel-nav button{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.carousel-nav svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-nav button.is-disabled{ opacity: .3; cursor: default; }
@media (hover: hover){
  .carousel-nav button:not(.is-disabled):hover{ background: var(--ink); border-color: var(--ink); color: var(--cream-soft); }
}

.carousel{
  --gap: clamp(12px, 1.6vw, 20px);
  display: flex;
  gap: var(--gap);
  margin: -6px;
  padding: 6px;
  scroll-padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar{ display: none; }
.carousel.is-dragging{ cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
@media (hover: hover) and (pointer: fine){
  .carousel{ cursor: grab; }
}

.card{
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  min-width: 0;
  scroll-snap-align: start;
  color: var(--ink);
  text-decoration: none;
}
.card .frame{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  background: var(--dusty);
}
.card .frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  -webkit-user-drag: none;
}
.card-cta{
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 1.1em;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .6s var(--ease);
}
.card:focus-visible{ outline-offset: 4px; border-radius: var(--radius-img); }
.card:focus-visible .card-cta{ opacity: 1; transform: none; }
@media (hover: hover){
  .card:hover .frame img{ transform: scale(1.05); }
  .card:hover .card-cta{ opacity: 1; transform: none; }
}
.card-caption{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 0;
}
.card-caption .name{
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 50;
  letter-spacing: -.01em;
}
.card-caption .price{ font-size: .85rem; }

.card.placeholder .frame{ background: var(--cream-soft); }
.card.placeholder .frame img{ opacity: .3; }
.card.placeholder .frame::after{
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 3px;
  pointer-events: none;
}
.card.placeholder .overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: 1.25;
  color: var(--ink);
}

.carousel-progress{
  position: relative;
  height: 2px;
  margin-top: clamp(20px, 2.6vw, 30px);
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.carousel-progress span{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 33%;
  border-radius: 2px;
  background: var(--ink);
}

/* --- Home: Kontakt --- */
.kontakt{ padding-top: var(--section); text-align: center; }
.kontakt p{
  max-width: 36ch;
  margin: 0 auto;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 50;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.kontakt a{
  color: var(--berry);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s;
}
@media (hover: hover){
  .kontakt a:hover{ color: var(--ink); }
}

/* --- Home: Instagram window (Instagram's own profile embed) --- */
.insta-layout{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.insta-head{
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.insta-window{
  position: relative;
  container-type: inline-size;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
/* The embed is a profile header plus two rows of three square posts, so its height follows the width. */
.insta-window iframe{
  position: relative;
  display: block;
  width: 100%;
  height: calc(170px + 66.7cqw);
  border: 0;
}
/* Sits behind the (transparent until loaded) iframe, so it only shows while Instagram loads. */
.insta-loading{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--taupe);
}

/* --- Footer --- */
.site-footer{
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 44px);
  font-size: .88rem;
  color: var(--ink-soft);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-links{ display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a{ color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.footer-links a[aria-current="page"]{ color: var(--ink); }
@media (hover: hover){
  .footer-links a:hover{ color: var(--berry); }
}

/* --- Oppskrifter (pattern list) --- */
.page-hero{ padding: clamp(16px, 4vw, 48px) 0 clamp(28px, 5vw, 64px); }
.page-hero h1{
  max-width: 13ch;
  margin: .35em 0 0;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  font-weight: 450;
  line-height: .94;
  letter-spacing: -.03em;
  word-spacing: .04em;
  animation: fade-up 1s var(--ease) .08s backwards;
}

/* --- Thank-you page (Stripe redirects buyers here after paying) --- */
.page-hero.takk{ padding-top: clamp(40px, 8vw, 112px); }
.takk-text{
  max-width: 44ch;
  margin: 1.2em 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.takk-text a{ color: var(--berry); text-underline-offset: 3px; }
.takk-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: clamp(28px, 4vw, 44px);
}

/* --- Kjøpsvilkår (terms) --- */
.terms{ max-width: 62ch; }
.terms h2{
  margin: 1.8em 0 .35em;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.terms h2:first-child{ margin-top: 0; }
.terms p{ margin: 0; line-height: 1.65; color: var(--ink-soft); }
.terms a{ color: var(--berry); text-underline-offset: 3px; }

.pattern-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.pattern-card:focus-visible{ outline-offset: 6px; border-radius: var(--radius-img); }
.pattern-card .frame{
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  background: var(--dusty);
}
.pattern-card .frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pattern-info h2{
  margin: .35em 0 .35em;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 450;
  line-height: .95;
  letter-spacing: -.035em;
}
.pattern-info p{
  max-width: 38ch;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
}
.pattern-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: clamp(24px, 3vw, 40px);
}
.pattern-meta .price{ font-size: 1.2rem; }
@media (hover: hover){
  .pattern-card:hover .frame img{ transform: scale(1.04); }
}

.pattern-placeholder{
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(28px, 4vw, 48px) 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-img);
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--ink-soft);
}

/* --- Breadcrumbs on inner pages: where you are in Hjem / Oppskrifter / … --- */
.breadcrumbs{
  margin-top: clamp(12px, 2vw, 24px);
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumbs ol{
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.breadcrumbs li{ display: flex; align-items: center; flex: none; }
.breadcrumbs li:last-child{ flex: 0 1 auto; min-width: 0; }
.breadcrumbs li + li::before{
  content: "/";
  content: "/" / "";
  margin: 0 .75em;
  color: var(--line-strong);
}
.breadcrumbs a{
  display: inline-block;
  padding: 8px 0;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.breadcrumbs [aria-current="page"]{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
@media (hover: hover){
  .breadcrumbs a:hover{ color: var(--ink); text-decoration-color: currentColor; }
}

/* --- Pattern detail page --- */

.product-hero{ padding-top: clamp(20px, 4vw, 48px); }
.product-hero .eyebrow{ animation: fade-up .9s var(--ease) backwards; }
.product-hero h1{
  margin: .3em 0 0;
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 450;
  line-height: .9;
  letter-spacing: -.04em;
  animation: fade-up 1s var(--ease) .08s backwards;
}

.gallery{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: clamp(24px, 4vw, 48px);
}
.gallery .frame{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--dusty);
}
.gallery .frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .main{ grid-row: span 2; aspect-ratio: 4 / 5; }
.gallery-count{ display: none; }

.product-body{
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 80px);
}
.product-aside{ position: sticky; top: 96px; }

.desc{
  max-width: 60ch;
  margin: 0 0 clamp(8px, 1vw, 16px);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}
.desc::first-letter{
  float: left;
  margin: .06em .1em 0 -.02em;
  font-family: var(--f-display);
  font-size: 3.6em;
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: .82;
  color: var(--berry);
}

.spec-section h3{
  display: flex;
  align-items: center;
  gap: .9em;
  margin: clamp(32px, 4vw, 48px) 0 4px;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  font-variation-settings: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.spec-section h3::after{ content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.spec-list{ margin: 0; padding: 0; list-style: none; }
.spec-list li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.spec-list .label{ color: var(--ink-soft); white-space: nowrap; }
.spec-list .value{ text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Size picker: the chosen size's number stands out in every "1 (2) 3" row. */
.spec-list li.size-row{ align-items: center; padding: 10px 0; }
.size-picker{ display: inline-flex; gap: 6px; }
.size-picker button{
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 .9rem/1 var(--f-mono);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.size-picker button[aria-pressed="true"]{
  background: var(--berry);
  border-color: var(--berry);
  color: var(--cream-soft);
}
@media (hover: hover){
  .size-picker button[aria-pressed="false"]:hover{ border-color: var(--ink); }
}
.spec-list .sep{ margin: 0 .4em; color: var(--line-strong); }
[data-selected-size] .spec-list [data-size]{ color: var(--taupe); font-weight: 400; transition: color .2s; }
[data-selected-size="1"] .spec-list [data-size~="1"],
[data-selected-size="2"] .spec-list [data-size~="2"],
[data-selected-size="3"] .spec-list [data-size~="3"]{ color: var(--berry); font-weight: 700; }
.spec-intro{ margin: 10px 0 6px; font-size: .92rem; color: var(--ink-soft); }
.spec-note{ margin: 10px 0 0; font-size: .85rem; color: var(--taupe); }

.buy-box{
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-soft);
}
.price-row{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 20px;
}
.price-row .price{ font-size: clamp(1.8rem, 2.6vw, 2.2rem); letter-spacing: -.02em; }
.price-note{ font-size: .85rem; color: var(--taupe); }
.pay-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-badge{
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--dusty);
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.buy-note{ margin: 16px 0 0; font-size: .84rem; line-height: 1.5; color: var(--taupe); }
.buy-note a{ color: var(--ink-soft); text-underline-offset: 3px; }

.buy-bar{ display: none; }

/* --- Scroll reveal (script.js only marks elements that start below the fold) --- */
.reveal{ opacity: 0; transform: translateY(32px); }
.reveal.is-in{
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

/* --- Keyframes --- */
@keyframes rise{ from{ transform: translateY(110%); } }
@keyframes fade-up{ from{ opacity: 0; transform: translateY(18px); } }
@keyframes unveil{
  from{ clip-path: inset(100% 0 0 0 round var(--radius-img)); }
  to{ clip-path: inset(0 0 0 0 round var(--radius-img)); }
}
@keyframes settle{ from{ transform: scale(1.15); } }

/* --- Tablet and down --- */
@media (max-width: 1024px){
  .product-body{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* --- Mobile --- */
@media (max-width: 780px){
  :root{ --hb: 42px; --logo-home: clamp(22px, 7vw, 34px); }

  .nav{ min-height: 60px; }
  .brand img{ height: 21px; }

  .nyhet{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 16px;
  }
  .nyhet h1{ margin: .4em 0 .3em; font-size: clamp(2rem, 10.5vw, 3.4rem); }
  .nyhet-lede{ margin-bottom: 1.3em; font-size: .9rem; line-height: 1.45; }
  .nyhet .btn{ padding: .85em 1.15em; font-size: .86rem; gap: .5em; }
  .nyhet .frame{ aspect-ratio: 3 / 4; }

  .carousel{
    margin: -6px calc(-1 * var(--gutter));
    padding: 6px var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .card{ flex-basis: calc((100% - var(--gap)) / 1.6); }
  .card.placeholder .overlay{ padding: 18px; font-size: 1rem; }
  .carousel-nav button{ width: 42px; height: 42px; }

  .insta-layout{ grid-template-columns: minmax(0, 1fr); }
  .insta-head{ position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
  .insta-head .eyebrow{ flex-basis: 100%; }
  .insta-window{ justify-self: stretch; max-width: none; }

  .pattern-card{ grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 0; border-top: 0; }

  .gallery{
    display: flex;
    gap: 10px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar{ display: none; }
  .gallery .frame{ flex: 0 0 84%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .gallery .main{ grid-row: auto; }
  .gallery-count{
    display: block;
    margin-top: 12px;
    font-family: var(--f-mono);
    font-size: .75rem;
    letter-spacing: .1em;
    color: var(--taupe);
  }

  .product-body{ grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .product-aside{ position: static; order: -1; margin-bottom: 40px; }
  .spec-list li{ font-size: .92rem; }
  .spec-list .sep{ margin: 0 .25em; }

  .buy-bar{
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream-soft);
    box-shadow: 0 14px 34px -10px rgba(38, 33, 29, .5);
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition: transform .6s var(--ease), visibility 0s linear .6s;
  }
  .buy-bar.is-visible{
    transform: none;
    visibility: visible;
    transition: transform .6s var(--ease), visibility 0s;
  }
  .buy-bar-info{ display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .buy-bar .name{
    overflow: hidden;
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-variation-settings: "SOFT" 50;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .buy-bar .price{ font-size: .8rem; color: var(--dusty); }
  .buy-bar .btn{ padding: .95em 1.35em; font-size: .9rem; }
  body:has(.buy-bar) .site-footer{ padding-bottom: 110px; }
}

@media (max-width: 520px){
  .section-tools .text-link{ display: none; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px){
  .nyhet-lede{ display: none; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .carousel{ scroll-behavior: auto; }
}
