@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-v32-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/nunito-v32-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-v32-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-v32-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-v32-latin-900.woff2") format("woff2");
}

:root {
  --forest: #1F3A3A;
  --forest-deep: #1F2A2A;
  --sage: #A8B99E;
  --sage-on-light: #5A6F50;
  --sand: #F8F5F0;
  --canyon: #E3941D;
  --canyon-deep: #C47A12;
  --canyon-pale: #FBE8C4;
  --journal: #463A3A;
  --ink: #1F2A2A;
  --white: #ffffff;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(31, 58, 58, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
}

.wordmark .enter { color: var(--forest); }
.wordmark .planet { color: var(--sage-on-light); }
.wordmark .tm {
  font-size: 0.52em;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--forest);
  margin-left: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header .site-nav a { color: var(--forest-deep); }
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  color: var(--canyon);
}
.site-header .site-nav a[aria-current="page"] {
  color: var(--canyon);
  font-weight: 800;
}

.hero {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--forest-deep);
  background-image:
    linear-gradient(rgba(31, 42, 42, 0.38), rgba(31, 42, 42, 0.48)),
    url("/img/hero-preikestolen.webp");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: 40rem;
  padding: 2.5rem 1.5rem;
}

.hero-door {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}

.hero-door:hover { color: var(--sage); }

.hero-door img {
  width: 7.5rem;
  height: 7.5rem;
  display: block;
  background: var(--white);
  border-radius: 50%;
}

.hero-mark-label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.35rem;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-sub {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero .tm {
  font-size: 0.42em;
  vertical-align: super;
  margin-left: 0.12em;
}

.page-shell {
  flex: 1 1 auto;
  padding: 2.75rem 1.5rem 3.25rem;
  background-color: var(--sand);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-shell.about-photo {
  background-color: var(--forest-deep);
  background-image: url("/img/about-fuvahmulah.webp");
}

.story-box {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--sage);
  outline: 2px solid var(--sage);
  outline-offset: 6px;
  padding: 2.15rem 2.35rem 2.4rem;
}

.story-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.story-title-row .story-mark {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.story-title-row .story-mark img {
  width: 3.5rem;
  height: 3.5rem;
  display: block;
}

.story-box h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-align: left;
}

.story-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-on-light);
  margin-bottom: 0.35rem;
}

.story-meta {
  font-size: 0.85rem;
  color: var(--forest);
  margin-bottom: 1.35rem;
}

.story-box h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin: 1.35rem 0 0.45rem;
  text-align: left;
}

.story-box p,
.story-box li {
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
}

.story-box p + p { margin-top: 0.75rem; }

.story-box ul {
  margin: 0.45rem 0 0.75rem 1.2rem;
}

.story-box li { margin: 0.28rem 0; }

.story-box a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.story-box a:hover { color: var(--forest-deep); }

.story-box.policy-box { max-width: 52rem; }

.policy-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: 2.1rem 0 1.35rem;
  border: 0;
  border-top: 2px solid var(--sage);
}

.policy-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 0.85rem;
  text-align: left;
}

.story-title-row + .policy-section-title {
  margin-top: 1.75rem;
}

.story-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest);
  margin: 1.15rem 0 0.5rem;
  text-align: left;
}

.policy-highlight {
  background: var(--sand);
  border-left: 4px solid var(--sage);
  padding: 0.95rem 1.15rem;
  margin: 0.95rem 0 1.1rem;
}

.policy-highlight p {
  margin: 0;
  font-size: 0.94rem;
}

.policy-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
}

.policy-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.4rem 0;
  text-align: justify;
}

.policy-list li::before {
  content: "▸";
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.service-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--sage);
}

.service-row:last-child { border-bottom: none; }

.service-name {
  min-width: 9.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--forest);
  text-align: left;
}

.service-desc {
  font-size: 0.92rem;
  text-align: justify;
}

.contact-card {
  margin-top: 0.85rem;
  background: var(--sand);
  border: 2px solid var(--sage);
  outline: 2px solid var(--sage);
  outline-offset: 4px;
  padding: 1.25rem 1.35rem;
}

.contact-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.65rem;
  text-align: left;
}

.contact-card p {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: left;
  margin: 0;
}

.story-box .policy-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.68rem;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.story-box .policy-dates {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--sage);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--forest);
  text-align: right;
}

.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.6rem 1.5rem 1.25rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1.4fr) auto auto;
  gap: 1.75rem 2.5rem;
  align-items: stretch;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-brand-name .enter { color: var(--white); }
.footer-brand-name .planet { color: var(--sage); }
.footer-brand-name .tld { color: var(--white); }

.footer-blurb {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.footer-quiet {
  margin-top: auto;
  padding-top: 1.1rem;
}

.footer-quiet p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage);
  line-height: 1.45;
}

.footer-col h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.55rem;
}

.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.32rem; }
.footer-col a { color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; }
.footer-col a:hover,
.footer-bottom a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.15rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(168, 185, 158, 0.28);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-door img { width: 6.25rem; height: 6.25rem; }
  .story-box { padding: 1.5rem 1.2rem 1.7rem; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 1.2rem; letter-spacing: 0.16em; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 1.75rem 1.1rem; }
  .story-title-row .story-mark img { width: 2.75rem; height: 2.75rem; }
}

.scroll-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 42, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.2s;
  z-index: 200;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover { background: #c0d0b6; }

.error-panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1.5rem 3.25rem;
}

.error-box {
  text-align: center;
}

.error-box p {
  text-align: center;
}

.error-mark {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.error-mark img {
  width: 4.5rem;
  height: auto;
  display: block;
  margin: 0 auto;
}

.error-apology {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-on-light);
  margin-bottom: 0.45rem;
}

.error-box h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  text-align: center;
}

.error-box p.error-sub {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--sage);
  background: var(--sand);
  color: var(--sage-on-light);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.55;
  text-align: center;
}

.error-image-wrap {
  display: block;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  border: 2px solid var(--sage);
  overflow: hidden;
}

.story-box a.error-image-wrap {
  color: inherit;
  text-decoration: none;
}

.error-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.story-box .error-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--sage);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.85rem;
  border: 2px solid var(--sage);
  border-radius: 50px;
  text-decoration: none;
}

.story-box .error-home-btn:hover {
  background: var(--forest-deep);
  color: var(--sage);
}
