/* The site's one stylesheet. Colours, type and the mark are brand round 1 as it stands: palette option 1 in its
   light set, Atkinson Hyperlegible Next at 400 and 700. One look, no dark set, no motion.
   Sizes come in pairs of size and line height: 16/24, 18/28, 20/28, 24/32, 30/36, 36/40.
   Spaces are 4, 8, 12, 16, 24, 32, 40, 48, 64 and 96 px. */

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

:root {
  color-scheme: light;
  --ground: #f9f5f0;
  --surface: #fffdfb;
  --ink: #1d1912;
  --quiet: #615b54;
  --hairline: #ddd8d3;
  --accent: #ad531a;
  --waiting: #805500;
  --type: "Atkinson Hyperlegible Next", system-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: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.125rem/1.5556 var(--type);
  overflow-wrap: break-word;
}

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

/* One column, 720 px at most, with the same left edge from the mark to the last link. */
.wrap {
  width: min(100% - 2rem, 45rem);
  margin-inline: auto;
}

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

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

a:hover {
  color: var(--accent);
}

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

/* The way past the head of the page, for a reader on the keyboard: out of sight until it has the focus. */
.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--ground);
  font-size: 1rem;
  line-height: 1.5;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:hover {
  color: var(--ground);
}

/* The head: the mark with the name, and the three languages. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 1rem;
}

/* The name is set in type, lower case, one weight; only the 2 takes the accent. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3333;
  letter-spacing: -0.015em;
  text-decoration-line: none;
  white-space: nowrap;
}

.lockup:hover {
  color: var(--ink);
}

.lockup img {
  display: block;
  width: 2rem;
  height: 2rem;
}

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

.langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

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

.langs [aria-current="page"] {
  font-weight: 700;
  text-decoration-line: none;
}

/* A home: the sentence, the state, what is planned, the address to write to. */
main {
  padding-block: 2.5rem 4rem;
}

h1 {
  max-width: 42.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3333;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Words of the sentence that stay on one line wherever a line can hold them. */
.keep {
  display: inline-block;
}

h2 {
  margin-top: 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* The state is a notice on the door, as wide as its words: said in words, with the colour of waiting on the first. */
.state {
  width: fit-content;
  max-width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.state strong {
  color: var(--waiting);
  font-weight: 700;
}

.planned {
  margin-top: 1rem;
}

.planned li {
  position: relative;
  padding-left: 1.5rem;
}

.planned li + li {
  margin-top: 0.75rem;
}

/* The dot of the mark stands before each line. */
.planned li::before {
  content: "";
  position: absolute;
  top: 0.625rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

.contact {
  margin-top: 3rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.contact a {
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* The foot: the two legal pages. */
.foot {
  border-top: 1px solid var(--hairline);
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.5;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding-block: 0.75rem;
}

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

/* A legal page: long German text at a measure of about 70 letters. */
.legal {
  font-size: 1rem;
  line-height: 1.5;
}

.legal > * {
  max-width: 40rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.5556;
}

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

.legal p,
.legal ul,
.legal dl,
.legal address {
  margin-top: 0.75rem;
}

.legal h2 + p,
.legal h2 + address,
.legal h2 + ul,
.legal h2 + dl,
.legal h3 + p {
  margin-top: 0.5rem;
}

.legal .sub {
  margin-top: 1rem;
  color: var(--quiet);
  font-size: 1.125rem;
  line-height: 1.5556;
}

/* The two lines that say, in English and in Turkish, that the German text is the binding one. */
.binding {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.binding p {
  margin-top: 0;
}

.binding p + p {
  margin-top: 0.5rem;
}

.legal li {
  position: relative;
  padding-left: 1.5rem;
}

.legal li + li {
  margin-top: 0.25rem;
}

.legal li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

.legal dt {
  font-weight: 700;
}

.legal dl div + div {
  margin-top: 0.75rem;
}

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

.legal .closing {
  margin-top: 2.5rem;
}

/* On a narrow screen the long German words of a legal page break at a syllable; an address never does. */
@media (max-width: 29.99rem) {
  .legal {
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }

  .legal address {
    hyphens: manual;
  }
}

/* The page for an address that does not exist. */
.ways {
  margin-top: 2rem;
}

.ways li + li {
  margin-top: 0.75rem;
}

@media (min-width: 30rem) {
  .wrap {
    width: min(100% - 3rem, 45rem);
  }

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

  .state {
    padding: 1rem 1.5rem;
  }

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

@media (min-width: 48rem) {
  .bar {
    padding-block: 1.5rem;
  }

  main {
    padding-block: 4rem 6rem;
  }

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

  /* On a wide screen the sentence breaks after its colon: what pro2door will be, then how it goes. */
  .opening {
    display: block;
  }
}
