@font-face {
  font-family: "Darker Grotesque";
  src: url("../fonts/darker-grotesque-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #0e2a33;
  --indigo-deep: #091e25;
  --resist: #f3e6c8;
  --copper: #e07a3d;
  --copper-edge: #9a4e22;
  --ink: #1a120b;
  --wax: #c9a27a;
  --display: "Darker Grotesque", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --dock: 9.25rem;
}

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

html {
  overflow-x: clip;
  scrollbar-color: var(--copper-edge) var(--indigo);
}

html[data-lang="ms"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-ms {
  display: none !important;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background-color: var(--indigo);
  background-image: url("pattern.svg");
  background-size: 140px 140px;
  color: var(--resist);
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

::selection {
  background: var(--copper);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--copper);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9;
}

.skip:focus {
  top: 0.5rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  padding: 0.75rem 1rem 0.85rem;
  background: var(--indigo);
  border-bottom: 1px solid rgba(201, 162, 122, 0.35);
}

.wordmark {
  order: 1;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.lang-switch {
  order: 2;
  display: flex;
  border: 1px solid var(--wax);
}

.lang-switch button {
  appearance: none;
  background: transparent;
  color: var(--resist);
  border: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}

html[data-lang="ms"] [data-set-lang="ms"],
html[data-lang="en"] [data-set-lang="en"] {
  background: var(--copper);
  color: var(--ink);
}

.preview {
  order: 3;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--copper);
  padding: 0.28rem 0.45rem;
}

.nav {
  order: 4;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.col {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 1.35rem 0 2.4rem;
}

h1,
.page-title,
.service-index a,
.band h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-wrap: balance;
}

h1,
.page-title {
  margin: 0;
  font-size: clamp(2.55rem, 10.5vw, 5rem);
}

.page-head {
  padding: 1.6rem 0 0.4rem;
}

.tagline {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.where {
  margin: 1.15rem 0 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.sample {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 1.15rem 0 0;
  padding: 0.7rem 0.75rem;
  border: 1px dashed var(--wax);
  max-width: 100%;
}

.sample-tag {
  display: inline-block;
  background: var(--copper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 0.32rem 0.42rem;
}

.sample-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 0.9rem;
  padding: 0.65rem 1rem;
  background: var(--copper);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  border-bottom: 3px solid var(--copper-edge);
}

.stamp:hover {
  background: #ef8d4d;
}

.stamp:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.stamp:focus-visible {
  outline-color: var(--resist);
}

.service-index {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}

.service-index a {
  display: block;
  padding: 1.15rem 1rem 1.25rem;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  text-decoration: none;
}

.service-index a:hover {
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

.band-resist {
  background: var(--resist);
  color: var(--indigo);
}

.band-indigo {
  background: var(--indigo-deep);
  color: var(--resist);
}

.band {
  padding: 2.6rem 1rem 2rem;
}

.band .col {
  width: min(40rem, 100%);
}

.band h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 10vw, 4.2rem);
}

.band .label {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
}

.photo {
  position: relative;
  margin: 0.4rem 0 0;
}

.photo img {
  width: 100%;
  background: var(--resist);
  border: 1px solid rgba(14, 42, 51, 0.25);
}

.photo figcaption {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  margin: 0;
}

.foot {
  padding: 2.6rem 0 1.4rem;
  color: var(--wax);
}

.foot p {
  margin: 0.25rem 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--indigo-deep);
  border-top: 1px solid rgba(201, 162, 122, 0.35);
  padding: 0.6rem 0 calc(0.65rem + env(safe-area-inset-bottom));
}

.dock-inner {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.dock .sample {
  margin-top: 0;
}

.dock .stamp {
  margin-top: 0.5rem;
}

@media (min-width: 800px) {
  .bar {
    padding-inline: 1.5rem;
  }

  .wordmark {
    margin-right: 0;
  }

  .nav {
    order: 2;
    flex-basis: auto;
    margin-left: 1.25rem;
  }

  .lang-switch {
    order: 3;
    margin-left: auto;
  }

  .preview {
    order: 4;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .col,
  .dock-inner {
    width: min(40rem, calc(100% - 4rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .stamp:active {
    transform: none;
  }
}
