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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
}

/* Remove default padding */
ul,
ol {
  padding: 0;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove default anchor styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove default button styles */
button,
input[type="button"],
input[type="submit"] {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Remove default form styles */
input,
textarea {
  border: none;
  outline: none;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --text: #2b1d10;
  --muted: #6b5a48;
  --line: #eadfcf;
  --brand: #f0920a;
  --brand-soft: #fdf0dc;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, var(--brand-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.lang {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1rem 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang a {
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  color: var(--muted);
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.lang a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.card {
  width: 100%;
  max-width: 38rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(22rem, 80%);
  height: auto;
  /* The PNG has whitespace above and below the lettering */
  margin: -2rem auto -1.5rem;
}

.slogan {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Line breaks only on phones, so NL and FR text takes the same number of lines */
.slogan br,
.status br {
  display: none;
}

/* Narrow enough that NL and FR both wrap to two lines, so switching language doesn't shift the page */
.intro {
  max-width: 28rem;
  margin: 1rem auto 0;
  text-wrap: balance;
  color: var(--muted);
  font-size: 1.0625rem;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.products li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}

.status {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-wrap: balance;
}

.status::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  vertical-align: 0.05em;
  border-radius: 50%;
  background: var(--brand);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  font-weight: 500;
  transition: border-color 0.15s, transform 0.15s;
}

.contact a:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.contact a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.contact svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand);
  flex-shrink: 0;
}

footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 30rem) {
  main {
    padding: 2rem 1rem;
  }

  .slogan br,
  .status br {
    display: inline;
  }

  .intro {
    font-size: 1rem;
  }

  .products {
    gap: 0.375rem;
  }

  .products li {
    padding: 0.3125rem 0.75rem;
    font-size: 0.8125rem;
  }

  .contact {
    flex-direction: column;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .contact a {
    justify-content: center;
    padding: 0.875rem 1.25rem;
  }
}

/* Very small phones: keep all four product labels on one row in both languages */
@media (max-width: 22rem) {
  .intro {
    font-size: 0.875rem;
  }

  .products {
    gap: 0.25rem;
  }

  .products li {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact a { transition: none; }
  .contact a:hover { transform: none; }
}
