:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #4c5751;
  --white: #fff;
  --accent: #24694a;
  --deep: #153e2b;
  --tint: #e7f3eb;
  --line: #dce3de;
  --serif: "Pooch Serif", Georgia, serif;
  --sans: "Pooch Sans", system-ui, sans-serif;
}

@font-face {
  font-family: "Pooch Serif";
  src: url("fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 850;
  font-display: swap;
}

@font-face {
  font-family: "Pooch Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 850;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 720; line-height: 1.07; letter-spacing: -.045em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--tint); color: var(--ink); }
.wrap { width: min(100% - 4rem, 79rem); margin-inline: auto; }
.skip { position: fixed; z-index: 3; left: .8rem; top: .8rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { border-top: 5px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 93px; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-name { font: 820 3.25rem/.9 var(--serif); letter-spacing: -.095em; }
.brand-name span, .section-head h2 span, .listing-head h1 span { color: var(--accent); }
.brand-label { border-left: 1px solid var(--line); padding-left: 1rem; font-size: .78rem; font-weight: 790; letter-spacing: .07em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1.15rem, 2.75vw, 2.8rem); }
.main-nav a, .search-link { color: var(--ink); font-weight: 720; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current], .search-link:hover, .search-link[aria-current] { color: var(--accent); text-decoration: underline; }
.search-link { justify-self: end; display: inline-flex; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 99px; padding: .48rem .95rem; }
.search-icon { flex: none; width: .85rem; height: .85rem; border: 1.8px solid currentColor; border-radius: 50%; position: relative; margin-right: .14rem; }
.search-icon::after { content: ""; position: absolute; top: .62rem; left: .58rem; background: currentColor; width: .37rem; height: 1.8px; border-radius: 1px; transform: rotate(48deg); transform-origin: left center; }

.home { padding-block: 2.35rem 5rem; }
.cover { min-height: 500px; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); border: 1px solid var(--line); background: var(--white); }
.cover-copy { display: flex; flex-direction: column; align-items: start; align-self: stretch; justify-content: center; padding: clamp(2.25rem, 4vw, 4.3rem); }
.cover-kicker { display: flex; gap: .7rem; align-items: center; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.paw { position: relative; display: inline-block; flex: none; width: 1.18rem; height: 1.14rem; transform: rotate(-17deg); }
.paw::before { content: ""; position: absolute; inset: .54rem .22rem .07rem; border-radius: 58% 58% 43% 43%; background: currentColor; }
.paw::after { content: ""; position: absolute; left: .01rem; top: .34rem; width: .24rem; height: .31rem; border-radius: 50%; background: currentColor; box-shadow: .25rem -.26rem 0 .01rem currentColor, .57rem -.28rem 0 .01rem currentColor, .89rem -.08rem 0 -.01rem currentColor; }
.cover h1 { font-size: clamp(3.2rem, 5.8vw, 6.05rem); line-height: .97; margin-block: 1.3rem; text-wrap: balance; }
.cover p { max-width: 33ch; color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.18rem); line-height: 1.53; margin-bottom: 1.65rem; }
.cover-photo { display: block; position: relative; overflow: hidden; }
.cover-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.button { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; border: 0; border-radius: 99px; padding: .67rem 1.3rem; text-decoration: none; font-size: .96rem; font-weight: 790; cursor: pointer; }
.primary { color: white; background: var(--deep); }
.primary:hover { background: var(--accent); }

.story-section { margin-top: 3.85rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.45rem; }
.section-head h2 { font-size: clamp(2.25rem, 4vw, 3.45rem); }
.section-head > span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.65rem 1.35rem; }
.story-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.story-card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-image { display: block; overflow: hidden; aspect-ratio: 1.67; }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .25s ease; }
.story-card:hover .card-image img { transform: scale(1.035); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; column-gap: .65rem; row-gap: .25rem; margin: 1.08rem 1.16rem .65rem; color: var(--muted); font-size: .79rem; }
.tag { display: inline-block; width: max-content; padding: .21rem .59rem; border-radius: 99px; color: var(--deep); background: var(--tint); font-size: .74rem; font-weight: 800; text-decoration: none; }
.tag:hover { text-decoration: underline; }
.tag-hvalpeliv { background: #f9e1ce; color: #713d20; }
.tag-paa-tur { background: #dfeddb; color: #36543b; }
.tag-traening { background: #ffeac0; color: #63400a; }
.story-card h3 { padding-inline: 1.16rem; font-size: clamp(1.32rem, 2.05vw, 2.05rem); }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: .07em; }
.story-card p { margin: .67rem 1.16rem 1.25rem; color: var(--muted); line-height: 1.53; }

.article-page, .listing { padding-block: 2rem 5rem; }
.breadcrumb { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .91rem; }
.breadcrumb a:hover, .prose a:hover, .plain-action:hover { color: var(--accent); }
.article-head { max-width: 53rem; text-align: center; margin: 2.25rem auto 2.4rem; }
.article-head .tag { font-size: .87rem; padding: .3rem .75rem; }
.article-head h1, .listing-head h1 { font-size: clamp(3rem, 6.6vw, 6.35rem); text-wrap: balance; margin: 1rem 0; }
.dek { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.43rem); max-width: 48ch; margin-inline: auto; text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; gap: .25rem .65rem; justify-content: center; margin-top: 1.25rem; color: var(--muted); font-size: .88rem; }
.article-photo { max-width: 60rem; margin-inline: auto; }
.article-photo img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; object-position: center; }
.prose { max-width: 42rem; margin: 2.55rem auto 0; font-size: 1.11rem; line-height: 1.82; }
.prose .opening { color: var(--deep); font-size: 1.25rem; font-weight: 690; }
.prose section { margin-top: 2rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: .7rem; }
.prose p + p { margin-top: .9rem; }
.related { margin-top: 4.5rem; }

.listing { min-height: 63vh; }
.listing-head { border: 1px solid var(--line); background: var(--white); padding: clamp(1.6rem, 5vw, 4.25rem); }
.listing-head h1 { margin: 0 0 .6rem; }
.listing-head p { color: var(--muted); font-size: 1.15rem; }
.search-form { max-width: 40rem; margin-top: 1.3rem; }
.search-form label { display: block; font-size: .93rem; font-weight: 740; margin-bottom: .35rem; }
.search-fields { display: flex; gap: .55rem; }
.search-fields input { min-width: 0; width: 100%; min-height: 2.95rem; border: 1px solid #6b7971; border-radius: .6rem; padding: .55rem .7rem; background: var(--white); color: var(--ink); }

.error-page { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding-block: 4.2rem; }
.error-copy .error-number { font: 850 clamp(3.2rem, 8vw, 7.5rem)/.9 var(--serif); color: var(--accent); }
.error-copy h1 { margin-top: .8rem; font-size: clamp(2.6rem, 6vw, 5.8rem); }
.error-copy p { color: var(--muted); font-size: 1.15rem; max-width: 39ch; margin-block: 1.1rem 1.4rem; }
.error-page img { width: 100%; height: auto; }
.plain-action { margin-left: .85rem; font-weight: 700; display: inline-block; padding-block: .55rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 10rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.35rem; padding-block: 2.1rem; }
.footer-brand { display: inline-block; text-decoration: none; font-size: 2.6rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; margin-top: .42rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-inner nav a { font-size: .91rem; font-weight: 720; text-decoration: none; }
.footer-inner nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-inner small { color: var(--muted); }

@media (max-width: 64rem) {
  .brand-label { display: none; }
  .cover { min-height: 450px; }
  .cover-copy { padding: 2rem; }
}
@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2.1rem); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 1rem; min-height: initial; padding-top: .95rem; }
  .brand-name { font-size: 2.75rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .6rem; margin-top: .78rem; border-top: 1px solid var(--line); padding-block: .58rem; }
  .main-nav a { font-size: .89rem; }
  .search-link { grid-column: 2; grid-row: 1; padding-block: .36rem; }
  .home { padding-top: 1.1rem; }
  .cover { min-height: 0; grid-template-columns: 1fr; }
  .cover-copy { padding: 1.65rem; }
  .cover h1 { font-size: clamp(2.9rem, 9vw, 4.9rem); margin-block: .75rem; }
  .cover p { margin-bottom: 1.08rem; }
  .cover-photo { grid-row: 1; aspect-ratio: 1.65; }
  .story-section { margin-top: 2.35rem; }
  .section-head { padding-bottom: .75rem; margin-bottom: 1rem; align-items: end; }
  .section-head > span { font-size: .75rem; white-space: normal; text-align: right; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .7rem; }
  .card-meta { margin: .7rem .72rem .45rem; font-size: .75rem; }
  .story-card h3 { padding-inline: .72rem; }
  .story-card p { margin: .52rem .72rem .82rem; font-size: .9rem; }
  .article-page, .listing { padding-top: 1.25rem; }
  .article-head { margin-block: 1.7rem; }
  .article-head h1, .listing-head h1 { font-size: clamp(2.5rem, 8vw, 4.3rem); }
  .prose { margin-top: 1.65rem; font-size: 1.02rem; }
  .prose .opening { font-size: 1.12rem; }
  .error-page { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2rem; }
  .error-page img { max-height: 385px; object-fit: cover; }
}
@media (max-width: 25rem) {
  .card-grid { grid-template-columns: 1fr; }
  .story-card h3 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
}
