/* sibba.dk: one file, no framework. Fonts are self-hosted (assets/fonts, SIL OFL). */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3c3c3c;      /* text on light */
  --dark: #555b62;     /* dark sections */
  --blue: #bfcdd9;     /* top bar, button, contact, headings on dark */
  --paper: #faf5f5;    /* quote section */
  --white: #fff;
  --wrap: 1040px;
  --sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav: "Montserrat", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.25; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--blue); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar__nav { display: flex; gap: 2.25rem; }
.topbar__nav a { font-family: var(--nav); font-weight: 600; font-size: 0.875rem; text-decoration: none; color: var(--ink); }
.topbar__nav a:hover, .topbar__nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* hero: photo with a light blue wash, as on the old site */
.hero {
  background:
    linear-gradient(rgba(191, 205, 217, 0.6), rgba(191, 205, 217, 0.6)),
    url("/assets/img/hero.jpg") center / cover no-repeat;
  min-height: 655px;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.125rem); color: var(--dark); }
.button {
  display: inline-block;
  margin-top: 3.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.375rem;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover, .button:focus-visible { background: #aebfcd; }

/* sections */
.section { padding: 7.5rem 0; text-align: center; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2 { color: var(--blue); }
.section--light { background: var(--paper); }
.section--blue { background: var(--blue); }
.section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.eyebrow { font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.section--dark .eyebrow { color: var(--blue); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.25rem; }
.card h3 { font-size: 1.1875rem; margin: 0.5rem 0 0.75rem; }
.card p { font-size: 0.875rem; line-height: 1.9; max-width: 18rem; margin-inline: auto; }
.icon { width: 44px; height: 44px; color: var(--blue); }

/* quote */
.quote { padding: 6.5rem 0; text-align: left; }
.quote__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.quote h2 { padding-left: 3rem; }
.quote blockquote { margin: 0; font-style: italic; font-size: 1.375rem; line-height: 1.9; }
.quote figcaption { margin-top: 0.75rem; text-align: right; font-weight: 700; font-size: 1.375rem; }

/* contact */
.contact { padding: 5rem 0 6.5rem; }
.contact .eyebrow { margin-bottom: 1.5rem; }
.icon--small { width: 30px; height: 30px; color: var(--ink); }
.contact h3 { font-weight: 700; font-size: 0.9375rem; margin-top: 0.5rem; }
.contact a { text-decoration: none; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }

/* footer: the coffee picture */
.footer { height: 360px; background: #000 url("/assets/img/coffee.jpg") center / cover no-repeat; }

@media (max-width: 760px) {
  .topbar__nav { gap: 1.1rem; }
  .topbar__nav a { font-size: 0.8125rem; }
  .hero { min-height: 360px; padding: 2.5rem 0; }
  .button { margin-top: 2rem; font-size: 1.125rem; }
  .section { padding: 4.5rem 0; }
  .cards { grid-template-columns: 1fr; gap: 2.25rem; }
  .quote { text-align: center; }
  .quote__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote h2 { padding-left: 0; }
  .quote blockquote, .quote figcaption { font-size: 1.125rem; }
  .quote figcaption { text-align: center; }
  .footer { height: 220px; }
}
