/* Example websites shown to prospects (lib/examples.js). The prospect's colour comes from
   /exemple-theme.css as --brand, with --on-brand for text on it. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/geist-latin-normal-19f9c925.woff2) format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-latin-normal-5eb09b5a.woff2) format('woff2');
}

:root {
  --brand: #3346ff;
  --on-brand: #fff;
  --bg: #faf7f0;
  --card: #fff;
  --ink: #1b1a16;
  --muted: #5f5b4f;
  --line: #e6e0d2;
  --radius: 22px;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* The line that says this is a Gojoweb preview. */
.x-ribbon {
  padding: 8px 16px;
  background: #efe8d8;
  color: #3d3a31;
  font-size: 0.8125rem;
  text-align: center;
}

.x-ribbon a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* The Gojoweb button that stays in view on a prospect's example (order this website) and on the
   sample websites (order one like it). */
.x-order {
  position: fixed;
  right: clamp(12px, 2.5vw, 28px);
  bottom: clamp(12px, 2.5vw, 28px);
  z-index: 20;
  padding: 13px 22px;
  border-radius: 999px;
  background: #14130e;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
  transition: transform 0.15s ease;
}

.x-order:hover {
  transform: translateY(-2px);
}

/* On the sample websites: the samples for other kinds of business. */
.x-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px clamp(20px, 5vw, 40px) 0;
  font-size: 0.875rem;
}

.x-samples b {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 500;
}

.x-samples a,
.x-samples span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.x-samples a:hover {
  border-color: var(--ink);
}

.x-samples span {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

/* Room under the footer so the button never covers its last line. */
body:has(.x-order) .x-footer {
  padding-bottom: 88px;
}

/* --- Header ------------------------------------------------------------------- */
.x-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgb(250 247 240 / 0.92);
  backdrop-filter: blur(10px);
}

.x-header.is-dark {
  border-bottom-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

.x-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.x-logo {
  width: auto;
  height: 46px;
}

.x-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.x-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
  overflow-x: auto;
  font-size: 0.9375rem;
  scrollbar-width: none;
}

.x-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.x-nav a:hover {
  color: var(--ink);
}

.is-dark .x-nav a {
  color: var(--on-brand);
  opacity: 0.78;
}

.is-dark .x-nav a:hover {
  opacity: 1;
}

.x-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-lang {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.is-dark .x-lang {
  border-color: rgb(255 255 255 / 0.3);
}

/* --- Buttons ------------------------------------------------------------------ */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.x-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.16);
}

.x-btn-light {
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
}

.is-dark .x-btn {
  background: var(--on-brand);
  color: var(--brand);
}

/* --- Big photo with the name on it ----------------------------------------------- */
.x-hero {
  position: relative;
  min-height: min(86vh, 840px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.x-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.04) 35%, rgb(0 0 0 / 0.62) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0) 60%);
}

.x-hero-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 860px;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px);
  color: #fff;
}

.x-hero.has-facts .x-hero-text {
  padding-bottom: calc(clamp(28px, 6vw, 72px) + 64px);
}

.x-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
}

.x-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.25);
}

.x-hero-logo img {
  width: min(560px, 82vw);
  height: auto;
  filter: drop-shadow(0 2px 16px rgb(0 0 0 / 0.35));
}

.x-tagline {
  max-width: 34em;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.96;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.3);
}

.x-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* --- Key figures, over the bottom of the photo --------------------------------------- */
.x-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: 1040px;
  margin: -64px auto 0;
  padding: 22px clamp(12px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 60px rgb(20 18 10 / 0.12);
  list-style: none;
}

.x-facts li {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 8px 14px;
  text-align: center;
}

.x-facts li:not(:first-child) {
  border-left: 1px solid var(--line);
}

.x-facts strong {
  color: var(--brand);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
}

.x-facts span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

/* --- Sections ------------------------------------------------------------------- */
.x-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 112px) clamp(20px, 5vw, 40px);
}

.x-section h2,
.x-band h2,
.x-contact h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.x-section h2 {
  margin-bottom: 26px;
}

.x-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: var(--brand);
}

.x-eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.x-intro {
  max-width: 44em;
  margin: -6px 0 36px;
  color: var(--muted);
  font-size: 1.125rem;
}

h3 {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
}

/* What they do: a simple list with a tick before each line. */
.x-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-services li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-weight: 500;
  line-height: 1.4;
}

.x-services li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--brand);
}

.x-about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.x-about p + p,
.x-story p + p,
.x-band-card p + p {
  margin-top: 14px;
}

.x-about p,
.x-story p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.x-about > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

/* --- Cards with a photo and a price (rooms, cottages, menus) -------------------------- */
.x-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.x-cards.cols2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.x-cards.cols1 {
  grid-template-columns: minmax(0, 1fr);
}

/* With a row to fill, the first card is wide: photo on the left, text on the right. */
@media (min-width: 901px) {
  .x-cards.wide3 > .x-card:first-child {
    grid-column: span 2;
    flex-direction: row;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .x-cards.wide2 > .x-card:first-child {
    grid-column: span 2;
    flex-direction: row;
  }
}

@media (min-width: 901px) {
  .x-cards.wide3 > .x-card:first-child figure {
    flex: 1.3 1 0;
    height: auto;
    min-height: 300px;
  }

  .x-cards.wide3 > .x-card:first-child .x-card-body {
    flex: 1 1 0;
    align-content: center;
    padding: clamp(26px, 3vw, 44px);
  }

  .x-cards.wide3 > .x-card:first-child h3 {
    font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .x-cards.wide2 > .x-card:first-child figure {
    flex: 1.2 1 0;
    height: auto;
    min-height: 280px;
  }

  .x-cards.wide2 > .x-card:first-child .x-card-body {
    flex: 1 1 0;
    align-content: center;
  }
}

.x-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.x-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgb(20 18 10 / 0.1);
}

.x-card figure {
  position: relative;
  height: clamp(220px, 23vw, 300px);
  margin: 0;
  background: var(--line);
}

.x-card figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-price {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
}

.x-card-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 8px;
  padding: 22px 24px 24px;
}

.x-meta {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-card-body p:not(.x-meta) {
  color: var(--muted);
  font-size: 0.975rem;
}

.x-card-link {
  align-self: end;
  margin-top: 8px;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.x-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Features with a tall photo ------------------------------------------------------- */
.x-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.x-feature {
  display: grid;
  align-content: start;
  gap: 10px;
}

.x-feature img {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 8px;
  border-radius: var(--radius);
  object-fit: cover;
}

.x-feature p {
  color: var(--muted);
}

/* --- Full-width photo band with a text card ---------------------------------------- */
.x-band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(82vh, 700px);
  padding: clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.x-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-band-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 500px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius);
  background: rgb(250 247 240 / 0.95);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.2);
  backdrop-filter: blur(8px);
}

.x-band.is-right .x-band-card {
  justify-self: end;
}

.x-band-card .x-eyebrow {
  margin-bottom: 0;
}

.x-band-card p:not(.x-eyebrow) {
  color: var(--muted);
}

.x-band-card .x-btn {
  margin-top: 6px;
}

/* --- The owners ------------------------------------------------------------------- */
.x-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.x-story-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.x-story-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  object-fit: cover;
}

.x-story-photos img:nth-child(2) {
  margin-top: 56px;
}

.x-story-photos img:only-child {
  grid-column: span 2;
  margin-top: 0;
}

/* --- Gallery: a collage --------------------------------------------------------------- */
.x-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: 12px;
}

.x-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.x-gallery img:nth-child(6n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.x-gallery img:nth-child(6n + 4) {
  grid-row: span 2;
}

/* --- Questions -------------------------------------------------------------------- */
.x-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 40px;
}

.x-faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.x-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.x-faq summary::-webkit-details-marker {
  display: none;
}

.x-faq summary::after {
  content: '+';
  flex: none;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.x-faq details[open] summary::after {
  transform: rotate(45deg);
}

.x-faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.x-reviews {
  text-align: center;
}

.x-reviews h2::after {
  margin-inline: auto;
}

.x-stars {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
}

.x-reviews p:last-child {
  color: var(--muted);
}

/* --- Contact, on the brand colour ---------------------------------------------------- */
.x-contact {
  background: var(--brand);
  color: var(--on-brand);
}

.x-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 112px) clamp(20px, 5vw, 40px);
}

.x-contact h2 {
  margin-bottom: 18px;
}

.x-contact .x-intro {
  margin: 0 0 26px;
  color: inherit;
  opacity: 0.85;
}

.x-contact .x-btn {
  background: var(--on-brand);
  color: var(--brand);
}

.x-contact .x-btn-ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--on-brand);
}

.x-contact dl {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 16px 24px;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--radius);
}

.x-contact dt {
  opacity: 0.75;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.x-contact dd {
  margin: 0;
}

.x-contact dd a {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 3px;
}

.x-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 26px clamp(20px, 5vw, 40px);
  color: var(--muted);
  font-size: 0.875rem;
}

.x-footer a {
  text-underline-offset: 3px;
}

/* --- Smaller screens ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .x-cards,
  .x-cards.cols2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .x-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .x-header {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .x-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .x-header-end {
    margin-left: auto;
  }

  .x-header-end .x-btn {
    padding: 9px 16px;
  }

  .x-logo {
    height: 36px;
  }

  .x-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -48px 16px 0;
    padding: 10px;
  }

  .x-facts li:not(:first-child) {
    border-left: 0;
  }

  .x-facts li:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .x-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .x-hero.has-facts .x-hero-text {
    padding-bottom: 76px;
  }

  .x-about,
  .x-story,
  .x-contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .x-story-photos {
    order: 2;
  }

  .x-band {
    align-items: end;
    min-height: 0;
    padding: 200px 16px 16px;
  }

  .x-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-contact dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .x-contact dd {
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .x-cards,
  .x-cards.cols2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .x-header-end .x-btn {
    display: none;
  }
}
