/* boredaf website: same tokens as the app ("the overlap"). No external
   requests: fonts are served from /fonts. */
@font-face {
  font-family: "Bagel Fat One";
  src: url("/fonts/bagel-fat-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f2f3f8;
  --surface: #ffffff;
  --track: #e3e5f0;
  --line: #dadcea;
  --you: #a8b4ff;
  --friend: #ffd966;
  --together: #4b2a86;
  --ink: #22163a;
  --muted: #5e5775;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* block only: `padding: 1.25rem 0` would cancel .wrap's side padding */
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 32px;
  height: 32px;
}
.brand span {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--track);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang a:first-child {
  background: var(--you);
  color: var(--ink);
}
body:has(#en:target) .lang a:first-child {
  background: transparent;
  color: var(--muted);
}
body:has(#en:target) .lang a:last-child {
  background: var(--you);
  color: var(--ink);
}

/* German is the default; the English text shows when #en is the target. */
section[lang="en"] {
  display: none;
}
body:has(#en:target) section[lang="de"] {
  display: none;
}
body:has(#en:target) section[lang="en"] {
  display: block;
}

/* text pages */
h1,
h2,
h3 {
  line-height: 1.15;
}
h1 {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3rem);
  margin: 1.5rem 0 0.5rem;
}
h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}
h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.25rem;
}
p,
ul {
  margin: 0.6rem 0;
  max-width: 40rem;
}
ul {
  padding-left: 1.25rem;
}
.stand {
  color: var(--muted);
  font-size: 0.9rem;
}
address {
  font-style: normal;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* home */
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 0.98;
  margin-top: 2.5rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30rem;
}
.overlap {
  position: relative;
  height: 8rem;
  margin: 2rem 0;
}
.overlap > div {
  position: absolute;
  display: flex;
  align-items: center;
  height: 3.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.overlap .you {
  left: 0;
  top: 0;
  width: 78%;
  padding-left: 1.5rem;
  background: var(--you);
}
.overlap .friend {
  right: 0;
  top: 4.5rem;
  width: 66%;
  justify-content: flex-end;
  padding-right: 1.5rem;
  background: var(--friend);
}
.overlap .both {
  left: 34%;
  top: 3rem;
  width: 44%;
  height: 2.5rem;
  justify-content: center;
  background: var(--together);
  color: #fff;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  color: #fff;
  background: var(--together);
}

/* footer */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
