/* The one stylesheet of the site. Brand round 1 as it stands: palette option 1 in its light form, one type family,
   the leaf lying as a desk. Paper, ink and one petrol; a state is said in a word and colour supports it.
   Nothing moves and nothing is rounded but the dot. Sizes are steps of one scale, in rem, so text zoom holds. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #F1F7FA;
  --surface: #FCFEFF;
  --ink: #131B1F;
  --quiet: #555E63;
  --hairline: #D4DADE;
  --accent: #005D6D;
  --waiting: #805500;
  --face: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.5 var(--face);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
address {
  margin: 0;
}

address {
  font-style: normal;
}

img {
  display: block;
}

b,
strong {
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-underline-offset: 0.15em;
}

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

@media (hover: hover) {
  a:hover {
    color: var(--ink);
  }
}

a:active {
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

/* The frame: header, main part and footer share one width and one side margin. */

.top,
.home,
.paper,
.foot {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.skip {
  position: absolute;
  top: -6rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  position: static;
  align-self: flex-start;
  margin: 0.5rem 1rem 0;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.75rem;
}

/* The lockup: the mark beside the wordmark. The wordmark is type, lower case, one weight; only the 2 takes the accent. */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  padding-block: 0.25rem;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration-line: none;
}

.lockup img {
  width: 1.375em;
  height: 1.375em;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.hinge {
  color: var(--accent);
}

.langs {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.4286;
}

.langs a,
.foot a {
  display: inline-block;
  padding-block: 0.75rem;
}

.langs a[aria-current],
.foot a[aria-current] {
  color: var(--ink);
  font-weight: 700;
  text-decoration-line: none;
}

/* A language home: what it will be on the left, the sheet with state, plan and contact on the right. */

.home {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 2.5rem;
  padding-block: 2rem 4rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* A headline's phrases: a line breaks between two of them before it breaks inside one. */

h1 span {
  display: inline-block;
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5556;
  text-wrap: pretty;
}

.sheet {
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.row {
  padding: 1.5rem 1rem;
}

.row + .row {
  border-top: 1px solid var(--hairline);
}

.row h2 {
  margin-bottom: 0.5rem;
  color: var(--quiet);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4286;
}

.row p,
.row li {
  font-size: 1.125rem;
  line-height: 1.5556;
  text-wrap: pretty;
}

.state {
  color: var(--waiting);
  white-space: nowrap;
}

.state::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.1em;
}

.plan,
.paper ul {
  padding-left: 1.5rem;
  list-style: square;
}

.plan li + li {
  margin-top: 0.5rem;
}

.plan li::marker,
.paper li::marker {
  color: var(--quiet);
}

.action {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--surface);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5556;
  text-decoration-line: none;
}

@media (hover: hover) {
  .action:hover {
    background: var(--ink);
    color: var(--surface);
  }
}

.action:active {
  background: var(--ink);
  color: var(--surface);
}

/* A page of running text: the legal pages and the 404 page. Its measure is about 66 characters a line at the body size. */

.paper {
  flex: 1;
  padding-block: 2rem 4rem;
}

.paper > * {
  max-width: 32rem;
}

.paper h1 {
  font-size: 1.5rem;
  line-height: 1.3333;
}

.paper h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5556;
  text-wrap: balance;
}

.paper h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.paper p,
.paper ul,
.paper dl,
.paper address {
  margin-top: 0.75rem;
  text-wrap: pretty;
}

.paper li + li,
.paper dl div + div {
  margin-top: 0.5rem;
}

.paper dt {
  font-weight: 700;
}

.sub,
.note {
  color: var(--quiet);
}

.others {
  margin-block: 1.5rem;
  padding: 0.25rem 1rem 1rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.foot {
  padding-block: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 0.75rem;
}

@media (min-width: 40rem) {
  .top,
  .home,
  .paper,
  .foot {
    padding-inline: 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.1111;
  }

  .paper h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .paper h2 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .row {
    padding: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .top,
  .home,
  .paper,
  .foot {
    padding-inline: 2.5rem;
  }

  .home {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 4rem;
    padding-block: 6rem;
  }

  .home h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  /* Beside the sheet, the headline's box ends at the top of its capitals, so they stand level with the sheet's edge.
     A browser that cannot trim keeps the whole line box: the capitals then stand a little lower. */
  @supports (text-box: trim-start cap alphabetic) {
    .home h1 {
      text-box: trim-start cap alphabetic;
    }
  }

  .lead {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .paper {
    padding-block: 4rem 6rem;
  }

  .paper h1 {
    font-size: 2.25rem;
    line-height: 1.1111;
  }
}

@media (min-width: 80rem) {
  .home h1 {
    font-size: 3.75rem;
  }
}
