@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 112%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F2F4F1;
  --ink: #12211D;
  --muted: #4B5C56;
  --spruce: #0E4A3E;
  --jade: #2E9C82;
  --glass: #9CCFBF;
  --amber: #C7811F;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Upper zone: identity and status */

.page {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(1.5rem, 3.5vw, 3rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #F8FAF7 0%, #EFF3EF 55%, #E2EAE4 100%);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand svg {
  display: block;
  width: auto;
  height: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  overflow: visible;
}

.status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Engraved rosette, centred on the status so it reads as a seal */

.status::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 68rem;
  height: 68rem;
  transform: translate(-50%, -50%);
  background: url("/assets/guilloche.svg") center / contain no-repeat;
  pointer-events: none;
}

.status-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--amber);
}

.statement {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 6vw, 6rem);
  padding-top: clamp(3rem, 10vh, 7rem);
}

.statement h1 {
  margin: 0;
  color: var(--spruce);
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement-body {
  max-width: 36rem;
}

.statement-body p {
  margin: 0 0 0.9em;
}

.statement-body .contact {
  margin: 1.4em 0 0;
  color: var(--muted);
}

.contact a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (min-width: 62rem) {
  .statement {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

/* Lower zone: the company record */

.record {
  background: linear-gradient(180deg, var(--spruce) 0%, #0A3A31 100%);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3.25rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.record-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
  gap: 1.5rem 3rem;
}

.record h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 112%;
}

.details {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.7rem 2rem;
  margin: 0;
}

.details dt {
  color: var(--glass);
}

.details dd {
  margin: 0;
  max-width: 38rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.fineprint {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--glass);
  font-size: 0.875rem;
}

/* Not-found page */

.statement.is-plain {
  align-self: center;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 2rem;
}

/* Small screens */

@media (max-width: 46rem) {
  .status::before {
    width: 40rem;
    height: 40rem;
  }

  .record-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .details dd {
    margin-bottom: 1rem;
  }

  .details dd:last-child {
    margin-bottom: 0;
  }
}

/* One load moment: the two halves of the mark meet */

@media (prefers-reduced-motion: no-preference) {
  .brand .hook-a {
    animation: meet-from-right 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .brand .hook-b {
    animation: meet-from-left 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes meet-from-right {
  from {
    transform: translateX(9px);
    opacity: 0;
  }
}

@keyframes meet-from-left {
  from {
    transform: translateX(-9px);
    opacity: 0;
  }
}

@media print {
  body {
    display: block;
    min-height: 0;
  }

  .page {
    background: none;
  }

  .status::before {
    display: none;
  }

  .record {
    background: none;
    color: var(--ink);
    border-top: 1px solid var(--ink);
  }

  .details dt,
  .fineprint {
    color: var(--muted);
  }
}
