@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive-900: #1b2017;
  --olive-800: #262d20;
  --olive-600: #4b5641;
  --olive-200: #cdd1bf;
  --paper: #f4f2ec;
  --paper-2: #eae7dd;
  --text: #1d211a;
  --text-2: #5a5f53;
  --line: #d6d2c4;
  --line-dark: #3a4232;
  --brass: #b0995f;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--paper); padding: .5rem .8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .9375rem/1 var(--sans);
  padding: .85rem 1.2rem;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: var(--olive-800);
  color: var(--paper);
}
.btn:hover { background: var(--olive-900); }
.btn--light { background: var(--paper); color: var(--olive-900); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(0,0,0,.05); }
.book .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  color: var(--text);
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 3.1rem; height: 3.1rem; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 500 1.25rem/1 var(--serif); text-decoration: none; letter-spacing: .005em; }
.wordmark small { display: block; font: 400 .8125rem/1 var(--sans); color: var(--text-2); margin-top: .25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: .9375rem; text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--paper); padding: .6rem .95rem; }
.nav .btn:hover { color: var(--paper); }
.nav-toggle { display: none; font: 500 .9375rem var(--sans); color: var(--text); background: none; border: 1px solid var(--line); border-radius: 3px; padding: .5rem .8rem; cursor: pointer; }

@media (max-width: 880px) {
  .brand img { width: 2.6rem; height: 2.6rem; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .nav .btn { margin-top: 1rem; justify-content: center; width: 100%; }
}

/* Hero */
.hero { background: var(--paper); color: var(--text); }
.hero-logo { margin: 0 0 1.75rem; }
.hero-logo img { width: clamp(12rem, 9rem + 9vw, 17.5rem); height: auto; margin-left: -.6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(calc(100svh - var(--header-h)), 52rem);
}
.hero-text {
  align-self: center;
  padding: 4rem var(--gutter) clamp(2.5rem, 6vw, 5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  max-width: 44rem;
}
.hero h1 { font: 400 clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem)/1 var(--serif); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero .lead { font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem); line-height: 1.5; color: var(--text-2); max-width: 30rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-photo figcaption { position: absolute; right: .75rem; bottom: .75rem; font-size: .8125rem; background: rgba(27,32,23,.75); color: var(--paper); padding: .3rem .55rem; border-radius: 2px; }

.facts { background: var(--olive-900); color: var(--paper); }
.facts ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 1.1rem 1.25rem 1.2rem 0; font-size: .9375rem; color: var(--olive-200); }
.facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line-dark); }
.facts strong { display: block; color: var(--paper); font-weight: 500; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-text { padding-top: 2rem; padding-bottom: 2.5rem; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font: 400 clamp(2rem, 1.4rem + 2.2vw, 3.25rem)/1.05 var(--serif); letter-spacing: -.015em; margin-bottom: 1.25rem; }
.section .intro { font-size: 1.1875rem; line-height: 1.55; color: var(--text-2); max-width: 34rem; }

/* Service blocks */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); }
.service-head .logo { width: 5.5rem; margin-bottom: 1.75rem; }
.service-head .logo--lg { width: 9rem; margin-left: -.4rem; }
.service-head .btn { margin-top: 1rem; }
.rows { margin: 0; border-top: 1px solid var(--text); }
.rows > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 500; }
.rows dd { margin: 0; color: var(--text-2); }
@media (max-width: 880px) {
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rows > div { grid-template-columns: 1fr; }
}

.service--business { background: var(--paper-2); }

/* Gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2rem; }
.gallery-head p { margin: 0; color: var(--text-2); max-width: 26rem; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--olive-800); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { font-size: .875rem; color: var(--text-2); padding: .55rem 0 .9rem; background: var(--paper); }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 50%; }
.about-text { max-width: 38rem; }
.about-text p { color: #34382f; }
.about-text p:first-of-type { font-size: 1.1875rem; color: var(--text); }
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo img { aspect-ratio: 4 / 3; }
}

/* Book */
.book { background: var(--olive-900); color: var(--paper); }
.section.book + .section { border-top: 0; }
.book-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 7vw, 7rem); align-items: center; }
.book .intro { color: var(--olive-200); }
.book h2 { margin-bottom: .5rem; }
.book .sub { color: var(--brass); margin-bottom: 1.75rem; font-size: .9375rem; }
.book-facts { margin: 2rem 0; border-top: 1px solid var(--line-dark); max-width: 30rem; font-size: .9375rem; }
.book-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line-dark); }
.book-facts dt { color: var(--olive-200); }
.book-facts dd { margin: 0; }

.cover {
  position: relative; display: block; width: min(100%, 20rem); aspect-ratio: 2 / 3;
  margin: 0 auto; background: #1b1a14; overflow: hidden; text-decoration: none; color: #f3eee0;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 24px 48px -12px rgba(0,0,0,.6);
}
.cover img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 70%; object-fit: cover; object-position: 78% 30%; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,26,20,0) 28%, rgba(27,26,20,.75) 52%, #1b1a14 68%); }
.cover-rule { position: absolute; top: 5.5%; bottom: 7%; width: 1px; background: rgba(195,166,96,.7); z-index: 1; }
.cover-rule.l { left: 7%; } .cover-rule.r { right: 7%; }
.cover-text { position: absolute; z-index: 1; left: 12%; right: 10%; bottom: 8%; font-family: var(--serif); }
.cover-text .bar { display: block; width: 2.6rem; height: 2px; background: #c3a660; margin-bottom: .7rem; }
.cover-text .a { display: block; color: #c9ad69; letter-spacing: .08em; font-size: 1.05rem; }
.cover-text .r { display: block; font-size: .72rem; color: #c8bea4; margin: .15rem 0 .9rem; }
.cover-text .t { display: block; font-weight: 650; font-size: 1.6rem; line-height: 1.12; }
.cover-text .t span { color: #e4d6ad; }
.cover-text .m { display: block; font-size: .55rem; letter-spacing: .12em; color: #a8955f; margin-top: .7rem; text-transform: uppercase; }
@media (max-width: 880px) {
  .book-grid { grid-template-columns: 1fr; }
  .cover { width: min(70%, 16rem); }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); }
.contact-details { margin: 2rem 0 0; font-size: .9375rem; }
.contact-details dt { color: var(--text-2); }
.contact-details dd { margin: 0 0 1rem; font-size: 1.0625rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c9c5b6; border-radius: 3px;
  padding: .7rem .8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px rgba(75,86,65,.18); }
.field .help { font-size: .875rem; color: var(--text-2); }
.field .err { font-size: .875rem; color: #9a2f1d; }
.field .err:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9a2f1d; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.form-foot p { margin: 0; font-size: .875rem; color: var(--text-2); max-width: 28rem; }
.notice { grid-column: 1 / -1; margin: 0; padding: .85rem 1rem; border-radius: 3px; background: #e6ead9; border: 1px solid #c4cbaf; font-size: .9375rem; }
.notice.is-error { background: #f6e3dc; border-color: #e0b9ab; }
.notice[hidden] { display: none; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--olive-900); color: var(--olive-200); font-size: .9375rem; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .wordmark { color: var(--paper); display: inline-block; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--olive-200); }
.site-footer a:hover { color: var(--paper); }
.footer-title { color: var(--paper); font-weight: 500; margin-bottom: .6rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .875rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font: 400 clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem)/1.05 var(--serif); margin-bottom: 2rem; }
.legal h2 { font-size: 1.1875rem; font-weight: 600; margin: 2.25rem 0 .6rem; }
.legal p { color: #34382f; }
.todo { background: #f1dfae; padding: 0 .2em; border-radius: 2px; }

.not-found { min-height: calc(100svh - var(--header-h) - 8rem); display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); }
.not-found h1 { font: 400 clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem)/1.05 var(--serif); margin-bottom: 1rem; }
.not-found p { color: var(--text-2); margin-bottom: 1.75rem; }
.gallery { container-type: inline-size; }
.gallery img { aspect-ratio: auto; height: calc((100cqw - 12px) / 4 * 1.25); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { object-position: 50% 45%; }
@media (max-width: 880px) { .gallery img { height: calc((100cqw - 4px) / 2 * 1.25); } }

.field--check .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9375rem; color: var(--text-2); cursor: pointer; }
.field--check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--olive-800); }
.field--check .check a { color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice:focus { outline: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
