:root {
  --cream: #f8f4eb;
  --paper: #fffdf7;
  --ink: #26211d;
  --dim: #625955;
  --rust: #9d3e29;
  --rust-hover: #79301f;
  --dark: #292421;
  --line: #dcd2c4;
  --section-space: clamp(4.75rem, 10vw, 10rem);
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}

h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.03em;
}

[id] {
  scroll-margin-top: 2.2rem;
}

.frame {
  width: min(100% - 4rem, 79rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  transform: translateY(-180%);
  background: var(--paper);
  padding: .65rem 1rem;
}

.skip-link:focus {
  transform: none;
}

.demo-bar {
  background: var(--dark);
  color: var(--paper);
}

.demo-inner {
  min-height: 3.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  padding-block: .45rem;
}

.demo-inner :focus-visible {
  outline-color: #f8b599;
}

.demo-home {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -.02em;
  text-decoration: none;
  font-size: 1.05rem;
}

.demo-caption {
  color: #ded5ce;
  border-left: 1px solid #766963;
  padding-left: .9rem;
  font-size: .875rem;
}

.demo-action {
  margin-left: auto;
  border: 1px solid #9f8d81;
  color: var(--paper);
  border-radius: .2rem;
  padding: .35rem .7rem;
  text-decoration: none;
  font-weight: 500;
  font-size: .875rem;
}

.demo-action:hover {
  background: #473930;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-nav {
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  font-family: var(--font-heading);
  font-size: .875rem;
  font-weight: 400;
}

.site-nav nav a,
.nav-contact {
  text-decoration: none;
  white-space: nowrap;
}

.nav-contact {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.site-nav nav a:hover,
.nav-contact:hover,
.footer-return:hover {
  color: var(--rust);
}

.site-nav nav .nav-cta {
  border-bottom: 1px solid currentColor;
  color: var(--rust);
  font-weight: 400;
}

.wordmark {
  font-family: var(--font-heading);
  text-decoration: none;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 400;
  white-space: nowrap;
}

.wordmark span {
  font-weight: 300;
}

.wordmark b {
  color: var(--rust);
  font-weight: inherit;
}

.hero {
  padding-block: clamp(3rem, 6.5vw, 6.75rem) var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5.75vw, 6.5rem);
}

.location {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: .8rem;
  color: var(--rust);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-block: .9rem 1.35rem;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.hero h1 em {
  color: var(--rust);
  font-style: normal;
  font-weight: inherit;
}

.hero-intro {
  max-width: 28rem;
  margin-bottom: 1.8rem;
  color: var(--dim);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.hero-image {
  background: #e7d4c3;
}

.hero-image img {
  height: clamp(25rem, 43vw, 39rem);
  object-fit: cover;
  object-position: 61% 46%;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  padding: .58rem 1.1rem;
  font: 600 .9375rem/1.35 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.button:disabled,
.nav-contact:disabled {
  opacity: .6;
  cursor: default;
}

.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}

.primary:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
}

.secondary {
  background: transparent;
  border-color: #8a7c70;
  color: var(--ink);
}

.secondary:hover {
  background: #f4eade;
}

.services {
  padding-bottom: var(--section-space);
}

.section-heading {
  border-top: 1px solid #b8a99a;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: end;
  gap: 1.35rem 2.25rem;
  margin-bottom: clamp(2.35rem, 4.75vw, 4rem);
}

.section-heading p, .service p {
  color: var(--dim);
}

.section-heading p {
  max-width: 24rem;
  justify-self: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.2vw, 2.85rem);
}

.service {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.55rem;
  display: flex;
  flex-direction: column;
}

.service img {
  aspect-ratio: 6 / 5;
  height: auto;
  background: #e1d2c1;
  object-fit: cover;
}

.portrait-photo {
  object-position: center 46%;
}

.event-photo {
  object-position: center 42%;
}

.service h3 {
  margin: 1.4rem 0 .5rem;
}

.service p {
  margin-bottom: .85rem;
}

.service a {
  color: var(--rust);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  margin-top: auto;
  padding-block: .35rem;
  align-self: flex-start;
}

.service a:hover {
  color: var(--rust-hover);
}

.about {
  background: #eadcd0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  padding-block: var(--section-space);
}

.about-inner p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  max-width: 36rem;
  color: #463932;
}

.about-inner p + p {
  margin-top: 1.4rem;
}

.inquiry {
  display: grid;
  gap: clamp(2.5rem, 5.5vw, 4.75rem);
  padding-block: var(--section-space);
}

.inquiry-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem clamp(2rem, 6vw, 6rem);
}

.inquiry-copy > div:first-child > p {
  margin-top: .8rem;
}

.contact-choice {
  border-left: 1px solid #b8a99a;
  padding-left: clamp(1rem, 3vw, 2rem);
}

.contact-choice h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.contact-choice p {
  margin-block: .45rem .9rem;
  color: var(--dim);
}

.form-note {
  color: var(--dim);
  border-left: 2px solid var(--rust);
  padding-left: .8rem;
}

.request-form,
.contact-dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  min-width: 0;
  padding: clamp(1.1rem, 4vw, 3.35rem);
}

.form-intro,
.dialog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  margin-bottom: 1.2rem;
}

.form-intro p,
.dialog-header p {
  margin-top: .35rem;
  color: var(--dim);
}

.request-form .form-calendar {
  margin-block: clamp(1.75rem, 4vw, 3rem);
}

.request-form .nordlys-calendar__intro h4,
.product-picker legend,
.contact-fields h4 {
  padding: 0;
  margin: 0 0 .5rem;
  color: var(--ink);
  font: 400 clamp(1.125rem, 2.25vw, 1.65rem)/1.25 var(--font-heading);
  letter-spacing: -.03em;
}

.product-picker {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0 0 1.2rem;
}

.product-picker > p {
  margin-bottom: .8rem;
  color: var(--dim);
}

.product-options {
  display: grid;
  gap: .65rem;
}

.product-category {
  min-width: 0;
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: .25rem;
}

.product-category summary {
  display: flex;
  gap: .55rem;
  align-items: baseline;
  min-height: 2.8rem;
  padding: .65rem .95rem;
  list-style: none;
  font-weight: 500;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.product-category summary::-webkit-details-marker {
  display: none;
}

.product-category summary::after {
  content: "";
  flex: 0 0 .5rem;
  width: .5rem;
  height: .5rem;
  margin: 0 .2rem 0 auto;
  border: solid var(--rust);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.2rem) rotate(45deg);
}

.product-category[open] summary::after {
  transform: translateY(.08rem) rotate(225deg);
}

.product-category summary:hover {
  color: var(--rust);
}

.category-count {
  color: var(--dim);
  font-size: .875rem;
  font-weight: 400;
}

.product-category-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .65rem;
  padding: 0 .65rem .65rem;
}

.selected-products {
  margin-top: .85rem;
  padding: .7rem .9rem;
  border-left: 2px solid var(--rust);
  background: #f7eee3;
}

.selected-products-heading {
  display: flex;
  align-items: baseline;
  gap: .55rem;
}

.selected-products-heading span {
  color: var(--dim);
  font-size: .875rem;
}

.selected-products ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0;
  margin: .45rem 0 0;
  list-style: none;
}

.selected-products button {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  border: 1px solid #b6a697;
  border-radius: .2rem;
  background: var(--paper);
  color: var(--ink);
  min-height: 2.4rem;
  padding: .35rem .6rem;
  font: inherit;
  cursor: pointer;
}

.selected-products button:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.product-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem .9rem;
  border: 1px solid #bdb0a5;
  border-radius: .25rem;
  background: #fff;
  cursor: pointer;
}

.product-option:hover,
.product-option:has(input:checked) {
  border-color: var(--rust);
  background: #fbf0e8;
}

.product-option input {
  accent-color: var(--rust);
  width: 1.125rem;
  height: 1.125rem;
  margin: .19rem 0 0;
  flex: none;
}

.product-option-copy {
  display: grid;
  gap: .15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-option-copy strong {
  font-weight: 500;
  line-height: 1.4;
}

.product-option-copy small {
  color: var(--dim);
  font-size: .875rem;
  line-height: 1.5;
}

.form-error {
  margin-top: .65rem;
  color: var(--rust-hover);
  font-weight: 500;
}

.form-error:empty {
  margin: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

.field-grid label,
.details-label {
  display: block;
  min-width: 0;
  font-weight: 500;
}

.optional {
  font-weight: 400;
  font-size: .875rem;
  color: var(--dim);
}

.field-grid input,
.field-grid select,
.details-label textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  border: 1px solid #ab9f93;
  border-radius: .2rem;
  background-color: white;
  color: var(--ink);
  font: 400 1rem/1.35 var(--font-body);
  padding: .65rem .7rem;
  margin-top: .35rem;
}

.field-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 48%, var(--rust) 52%),
    linear-gradient(135deg, var(--rust) 48%, transparent 52%);
  background-position: calc(100% - 1.02rem) 50%, calc(100% - .66rem) 50%;
  background-size: .4rem .4rem;
  background-repeat: no-repeat;
  padding-right: 1.9rem;
}

.contact-fields {
  margin-top: clamp(1.65rem, 4vw, 3rem);
}

.contact-fields h4 {
  margin-bottom: .8rem;
}

.details-label {
  margin-top: 1.25rem;
}

.details-label textarea {
  display: block;
  min-height: 6.7rem;
  resize: vertical;
}

.contact-dialog {
  width: min(100% - 1.5rem, 45rem);
  max-height: calc(100% - 1.5rem);
  margin: auto;
  overscroll-behavior: contain;
}

.contact-dialog::backdrop {
  background: #292421a6;
}

.contact-dialog h2 {
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
}

.dialog-close {
  margin-left: auto;
}

.contact-fill {
  margin-top: .8rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.65rem, 4vw, 2.65rem);
}

.form-result p {
  margin-top: .6rem;
  color: var(--dim);
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  min-height: 8.5rem;
  padding-block: 2rem;
}

.footer-inner p,
.footer-return {
  font-size: .9rem;
}

.footer-inner p {
  color: var(--dim);
}

.footer-return {
  margin-left: auto;
  text-underline-offset: .25em;
}

@media (max-width: 880px) {
  .frame {
    width: min(100% - 3rem, 79rem);
  }

  .hero {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.2rem;
    gap: .85rem;
  }

  .site-nav nav {
    width: 100%;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
  }
}

@media (max-width: 650px) {
  .frame {
    width: min(100% - 2rem, 36rem);
  }

  .hero,
  .about-inner,
  .inquiry-copy,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 7.6vw, 3.1rem);
  }

  .hero-image img {
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .section-heading p {
    justify-self: start;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.35rem;
  }

  .service img {
    aspect-ratio: 5 / 3;
  }

  .footer-return {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .demo-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
