/* Peterloff Holdings B.V. · peterloff.nl
   English and Dutch pages share this sheet. Faces are stand-ins until type specimens;
   blue and red are provisional (issue #2). Tokens mirror DESIGN.md and design-system/tokens.css. */

:root {
  --burgundy: #5A1E31;
  --ground: #F5EEDF;
  --ink: #1C1B19;
  --soft: #5E5A53;
  --on-burgundy: #F6EFE6;
  --hair: #D6CBB6;
  --blue: #1F4690;
  --red: #A51F2B;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --caps: "Spectral SC", "Spectral", Georgia, serif;

  --gutter: clamp(24px, 7.8vw, 112px);
}

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

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

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--burgundy); color: var(--on-burgundy); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* The field: burgundy, carrying the signet and the name */
.field {
  background: var(--burgundy);
  color: var(--on-burgundy);
  padding: clamp(24px, 5.3vh, 48px) var(--gutter) clamp(28px, 5.8vh, 52px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 3.3vw, 48px);
  row-gap: clamp(16px, 4vh, 40px);
  align-items: end;
}

.signet {
  grid-row: 1 / 3;
  width: clamp(88px, min(9.2vw, 14.7vh), 132px);
  aspect-ratio: 1;
  border: 1.5px solid var(--on-burgundy);
  outline: 1px solid var(--on-burgundy);
  outline-offset: 5px;
  /* Two lines, four columns: each letter left-aligned in its column,
     so P sits over B, H over V, and each full stop over the other. */
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  align-content: center;
  justify-items: start;
  column-gap: 0.05em;
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(26px, min(2.75vw, 4.35vh), 39px);
  line-height: 1.12;
  /* The trailing stops leave the right side light; shift the block a little right
     so it reads as centred in the box. */
  padding-left: 0.12em;
}

.lang {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.lang a { color: var(--on-burgundy); padding: 2px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lang a:hover { text-decoration-thickness: 2px; }
.lang a[aria-current] { text-decoration: none; font-family: var(--caps); font-weight: 500; letter-spacing: 0.1em; }
.lang a:focus-visible { outline-color: var(--on-burgundy); }

.name { grid-column: 2 / 4; grid-row: 2; }
.name h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, min(5.3vw, 8.4vh), 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.seat {
  font-family: var(--caps);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.14em;
  margin-top: clamp(8px, 1.8vh, 16px);
}

/* The body: mission and values */
.body {
  display: grid;
  grid-template-columns: minmax(0, clamp(300px, 27vw, 400px)) 1fr;
  column-gap: clamp(40px, 4.5vw, 64px);
  padding: clamp(28px, 5.8vh, 56px) var(--gutter) clamp(28px, 4.5vh, 48px);
  align-content: center;
}

.mission {
  font-size: clamp(20px, min(1.8vw, 2.9vh), 26px);
  line-height: 1.45;
  max-width: 30ch;
  text-wrap: pretty;
}

.values h2 {
  font-family: var(--caps);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.values ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 24px;
}
.values li {
  font-size: clamp(18px, min(1.53vw, 2.45vh), 22px);
  line-height: 1.3;
  padding: clamp(8px, 1.35vh, 12px) 0 clamp(9px, 1.45vh, 13px);
  border-top: 1px solid var(--hair);
}
.values li:nth-child(1), .values li:nth-child(5) { border-top-color: var(--burgundy); }
/* The Dutch names run longer: a hair smaller at the top end so they hold one line where they can */
:lang(nl) .values li { font-size: clamp(18px, min(1.46vw, 2.35vh), 21px); }
:lang(nl) .body { grid-template-columns: minmax(0, clamp(300px, 25vw, 370px)) 1fr; }
@media (min-width: 1101px) { :lang(nl) .mission { font-size: clamp(19px, min(1.6vw, 2.55vh), 23px); max-width: none; } }
@media (max-width: 1100px) { :lang(nl) .body { grid-template-columns: 1fr; } :lang(nl) .mission { max-width: 58ch; } }

/* The register: every registration fact on one ruled line */
.register { padding: 0 var(--gutter) clamp(24px, 4.9vh, 44px); }
.register dl {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.register dt {
  font-family: var(--caps);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--soft);
}
.register dd {
  font-size: 18px;
  font-variant-numeric: lining-nums tabular-nums;
}
.register a { text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; }
.register a:hover { text-decoration-thickness: 2px; }

/* Narrower screens */
@media (max-width: 1100px) {
  :root { --gutter: clamp(24px, 5.6vw, 64px); }
  .body { grid-template-columns: 1fr; row-gap: 28px; }
  .mission { max-width: 58ch; }
  .register dl { flex-wrap: wrap; justify-content: space-between; column-gap: 24px; row-gap: 16px; }
}

/* Mid widths: a deliberate 3 + 2 register instead of an accidental wrap */
@media (min-width: 641px) and (max-width: 999px) {
  .register dl { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; column-gap: 56px; row-gap: 16px; }
}

@media (max-width: 640px) {
  .field { grid-template-columns: auto 1fr; row-gap: 24px; }
  .signet { grid-row: 1; width: 88px; font-size: 24px; outline-offset: 4px; }
  .lang { grid-column: 2; justify-self: end; }
  .name { grid-column: 1 / 3; }
  .values ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .values li:nth-child(5) { border-top-color: var(--hair); }
  .register dl { display: grid; grid-template-columns: 1fr; row-gap: 14px; }
  .register dl > div { display: block; }
}

/* Print: black and white first, backgrounds off */
@media print {
  body { background: none; min-height: 0; }
  .field { background: none; color: var(--ink); border-bottom: 2px solid var(--ink); padding: 0 0 16px; }
  .signet { border-color: var(--ink); outline-color: var(--ink); }
  .lang { display: none; }
  .lang a, .field { color: var(--ink); }
  .body, .register { padding-left: 0; padding-right: 0; }
  .values h2 { color: var(--ink); }
  .values li:nth-child(1), .values li:nth-child(5) { border-top-color: var(--ink); }
  a { text-decoration: none; }
}
