/*
 * Delsol – coming soon page.
 * Design reference: Figma "Landingspagina – ontwerp v1" (1640 × 900).
 */

/* RL Limo is a licensed font: drop the webfont files in /fonts. */
@font-face {
  font-family: "RL Limo";
  src: url("../fonts/RLLimo-Regular.woff2") format("woff2"),
       url("../fonts/RLLimo-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --delsol-main-color: #284445;
  --delsol-light-color: #bbc3c1;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "RL Limo", "DM Sans", system-ui, sans-serif;

  /* Visual column: 700px out of a 1640px wide frame. */
  --visual-width: clamp(380px, 42.68vw, 900px);
  --gutter: clamp(24px, 6.1vw, 100px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--delsol-main-color);
  color: var(--delsol-light-color);
  font-family: var(--font-sans);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  opacity: 0.7;
}

/* Layout */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.page__content {
  position: relative;
  z-index: 2;
  display: grid;
  /* Vertical rhythm from the design: 130px above the intro, 114px below. */
  grid-template-rows: auto minmax(48px, 130fr) auto minmax(48px, 114fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  width: calc(100% - var(--visual-width));
  padding: 52px 40px 100px var(--gutter);
}

.page__logo {
  grid-row: 1;
  width: 147px;
  height: auto;
}

.page__intro {
  grid-row: 3;
}

.contact {
  grid-row: 5;
}

/* Status label */

.status {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: normal;
  text-transform: uppercase;
}

.status__line {
  flex: 0 0 40px;
  height: 1px;
  background: currentColor;
}

/* Title */

.page__title {
  margin: 0 0 32px;
  font-size: clamp(34px, 3.415vw, 56px);
  font-weight: 400;
  line-height: 1.15;
}

.page__title-line {
  display: block;
}

.page__title-line--accent {
  font-family: var(--font-display);
  letter-spacing: -0.0114em;
}

/* Body text */

.page__text {
  max-width: 560px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
}

.page__text p {
  margin: 0 0 23px;
}

.page__text p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact {
  max-width: 600px;
  padding-top: 24px;
  border-top: 1px solid rgb(187 195 193 / 0.3);
}

.contact__title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin: 0;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: normal;
  text-transform: lowercase;
}

.contact__value {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

.contact__value address {
  font-style: normal;
}

/* Visual */

.page__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--visual-width);
}

.page__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* 520px radius on a 700px wide image. */
  border-bottom-left-radius: calc(var(--visual-width) * 0.743);
}

.page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The "D" outline: 621px wide, 465px from the top in a 700 × 900 column. */
.page__graphic {
  position: absolute;
  top: 51.67%;
  left: 0;
  width: 88.71%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

/* Content pages (old site URLs kept as static pages) */

.page__logo-link {
  grid-row: 1;
  justify-self: start;
}

.page--sub .page__title {
  text-wrap: balance;
}

/* Long pages (e.g. privacy policy): keep the visual one screen tall, like the homepage. */
@media (min-width: 901px) {
  .page--sub .page__visual {
    bottom: auto;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}

.richtext h2,
.richtext h3 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.richtext > :first-child {
  margin-top: 0;
}

.richtext p {
  margin: 0 0 16px;
}

.richtext ul,
.richtext ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.richtext li {
  margin-bottom: 6px;
}

.richtext li::marker {
  color: rgb(187 195 193 / 0.6);
}

.richtext > :last-child {
  margin-bottom: 0;
}

.richtext strong,
.richtext b {
  font-weight: 500;
}

.richtext a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tablet and mobile: stack the image below the content. */
@media (max-width: 900px) {
  :root {
    --visual-width: 100%;
    --gutter: clamp(24px, 6vw, 56px);
  }

  .page__content {
    width: 100%;
    min-height: 0;
    grid-template-rows: auto 72px auto 64px auto;
    padding: 40px var(--gutter) 64px;
  }

  .page__visual {
    position: relative;
    aspect-ratio: 7 / 9;
    max-height: 120vw;
    width: 100%;
    overflow: hidden;
  }

  .page {
    min-height: 0;
  }

  .page__image {
    border-bottom-left-radius: 74vw;
  }
}

@media (max-width: 480px) {
  .page__content {
    grid-template-rows: auto 56px auto 48px auto;
  }

  .page__title {
    font-size: 32px;
  }

  .page__title-line {
    display: inline;
  }

  .contact__details {
    column-gap: 40px;
  }

  .page__text,
  .contact__title {
    font-size: 16px;
  }
}
