/* Woodtells Game Studio – "Werkbank": warm dark wood, every game with its own colour.
   Fonts come from this site only (Fraunces, SIL Open Font License; system fonts for body text). */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #16120e;
  --bg-tint: #1f1913;
  --surface: #241c15;
  --surface-2: #2e241b;
  --ink: #f3e9d8;
  --ink-soft: #cdbda4;
  --line: #3a2f24;
  --link: #f2c27a;
  --link-hover: #ffe0a8;
  --focus: #f6d48a;
  --accent: #e2a75c;
  --accent-hover: #edbb7a;
  --accent-ink: #1d140b;
  --glow: rgb(226 167 92 / 0.3);

  /* The tree-slice emblem (logo) */
  --em-bark: #5a3d2b;
  --em-wood: #d9ab78;
  --em-ring: #a8754a;

  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-large: 18px;
  --radius-art: 28px;
}

/* Every game has its own colour: --game for the state badge and the glow behind the illustration,
   --game-text for text on the dark background. Both pass WCAG AA against --bg and --accent-ink. */
.accent-olive { --game: #a9b86a; --game-text: #c3cf8a; }
.accent-coral { --game: #ee8f78; --game-text: #f4a993; }
.accent-green { --game: #6fc39a; --game-text: #8ed6b0; }
.accent-violet { --game: #b7a2ea; --game-text: #c9b8f2; }
.accent-amber { --game: #e8b45e; --game-text: #f0c47c; }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

#inhalt:focus {
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.6em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Long German words such as "Datenschutzerklärung" must not push phones sideways.
   Only the big headings hyphenate; small card titles stay whole. */
h1,
h2 {
  hyphens: auto;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.2rem;
}

p,
ul,
ol,
dl,
address {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

address {
  font-style: normal;
}

code {
  padding: 0.05em 0.35em;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 0.92em;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta {
  color: var(--ink-soft);
}

.breadcrumb {
  margin-bottom: 1rem;
  font-weight: 600;
}

.breadcrumb a::before {
  content: '← ';
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 28px var(--glow);
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.button--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.button--quiet:hover {
  background: var(--surface-2);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.more-link {
  font-weight: 700;
}

.more-link::after {
  content: ' →';
}

.tag {
  display: inline-block;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand__emblem {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand__name {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand__sub {
  font-weight: 400;
  color: var(--ink-soft);
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.2em;
  text-underline-offset: 0.35em;
}

.site-nav .lang-switch {
  border: 2px solid var(--line);
}

/* ---------- Hero: the studio's workbench ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #2a1d12 60%, #3f2b1a 100%);
  text-align: center;
}

.hero__text {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 6rem) 0;
}

.hero__text > * {
  max-width: 44rem;
  margin-inline: auto;
}

.hero .button-row {
  justify-content: center;
}

.hero h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(2.8rem, 1.8rem + 5vw, 6rem);
  line-height: 1;
}

.hero__lead {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.4rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
}

.hero__intro {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* The picture's wall fades into the background behind the text. */
.hero__figure {
  position: relative;
  margin: clamp(-9rem, -7vw, -1rem) 0 0;
}

/* More specific than .art__tag further down: the note sits at the bottom, where the picture is not faded. */
.hero__figure .hero__tag {
  top: auto;
  bottom: 1rem;
  left: 1rem;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 90%, transparent 100%);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tinted {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.prose {
  max-width: 46rem;
}

.prose--large {
  font-size: 1.15rem;
}

.page-lead {
  max-width: 46rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.values,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.values li,
.cards li {
  padding: 1.4rem 1.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

/* ---------- Games ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.15rem 0.75rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  transform: rotate(45deg);
}

.status {
  background: var(--game, var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
}

.game-note {
  color: var(--ink-soft);
  font-style: italic;
}

.genre {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.game-hero__status p {
  margin: 0;
}

.game-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.game-row article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 48rem) {
  .game-row article {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  /* Picture left, text right – and the other way round in every second row. */
  .game-row:nth-child(even) .art {
    order: 2;
  }
}

.art {
  position: relative;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: var(--surface);
  background: radial-gradient(60% 55% at 50% 60%, color-mix(in srgb, var(--game, var(--accent)) 30%, transparent), transparent), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-art);
}

.art__image {
  display: block;
  width: 100%;
  height: auto;
}

.art__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.05rem 0.6rem;
  background: rgb(22 18 14 / 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-row .genre {
  margin-bottom: 0.4rem;
  color: var(--game-text);
}

.game-row__name {
  margin-bottom: 0.1rem;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem);
  font-weight: 800;
}

.working-title {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-style: italic;
}

.game-row .status {
  margin-bottom: 1.1rem;
}

.game-row__summary {
  max-width: 36rem;
  font-size: 1.1rem;
}

.game-row__more {
  margin: 0;
}

.facts {
  display: grid;
  gap: 0.35rem;
}

.facts--inline {
  margin-top: 1.5rem;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.facts dt {
  font-weight: 700;
}

.facts dt::after {
  content: ':';
}

.facts dd {
  margin: 0;
}

/* Platform and audience side by side, label above value. */
.facts--columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), max-content));
  gap: 0.75rem 2.5rem;
}

.facts--columns div {
  display: block;
}

.facts--columns dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts--columns dt::after {
  content: none;
}

/* ---------- Studio ---------- */

.studio {
  display: grid;
  gap: 1rem clamp(2rem, 5vw, 4rem);
}

@media (min-width: 52rem) {
  .studio {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.studio__about {
  max-width: 38rem;
  font-size: 1.15rem;
}

.studio__quote {
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- One game's page ---------- */

.game-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 62vh, 36rem);
  overflow: hidden;
  background: var(--bg);
}

.game-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgb(22 18 14 / 0.97) 8%, rgb(22 18 14 / 0.75) 40%, rgb(22 18 14 / 0.1) 85%),
    linear-gradient(90deg, rgb(22 18 14 / 0.85) 0%, rgb(22 18 14 / 0) 60%);
}

.game-hero__text {
  position: relative;
  z-index: 1;
  padding-block: 3rem 2.5rem;
}

.game-hero h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  line-height: 1;
}

.game-hero__tagline {
  max-width: 40rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  font-style: italic;
}

.game-hero .game-note {
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats__value {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stats__label {
  display: block;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
}

.gallery img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #cfe6ef;
}

.gallery a:hover img {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--glow);
}

.gallery__note {
  color: var(--ink-soft);
  font-style: italic;
}

.roadmap {
  position: relative;
  max-width: 46rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.6rem;
  width: 2px;
  background: var(--line);
}

.roadmap__step {
  position: relative;
  padding: 0 0 1.75rem 2.75rem;
}

.roadmap__step::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  background: var(--bg);
}

.roadmap__step--done::before {
  content: '✓';
  display: grid;
  place-items: center;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.roadmap__step--active::before {
  border: 4px solid var(--accent);
  box-shadow: 0 0 16px var(--glow);
}

.roadmap__step h3 {
  margin-bottom: 0.3rem;
}

.roadmap__step p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.roadmap__status {
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap__step--planned .roadmap__status {
  color: var(--ink-soft);
}

.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Devlog ---------- */

.post-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.post-teaser {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.post-teaser__meta,
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.post-teaser__title {
  margin-bottom: 0.4rem;
  font-size: 1.45rem;
}

.post-teaser__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-teaser__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-teaser p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.post h1 {
  margin-bottom: 0.5rem;
}

.post__summary {
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}

.post h2 {
  margin-top: 2.25rem;
  font-size: 1.6rem;
}

.post img {
  display: block;
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #cfe6ef;
}

.post__game {
  margin-top: 2.5rem;
}

/* ---------- Team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  text-align: center;
}

.team-member .avatar {
  width: 6rem;
  height: 6rem;
  margin-bottom: 0.9rem;
}

.team-member .avatar--photo {
  border-radius: 50%;
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-member__role {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-member__bio {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.avatar .av-letter {
  fill: #fffcf4;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
}

.avatar .av-a { fill: var(--em-bark); }
.avatar .av-ring {
  fill: none;
  stroke: rgb(255 252 244 / 0.25);
  stroke-width: 2;
}
.avatar--0 .av-b { fill: #8a5a3c; }
.avatar--1 .av-b { fill: #a3693c; }
.avatar--2 .av-b { fill: #6d4a33; }

/* Emblem colours (logo) */
.em-bark { fill: var(--em-bark); }
.em-wood { fill: var(--em-wood); }
.em-core { fill: var(--em-ring); }
.em-ring {
  fill: none;
  stroke: var(--em-ring);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

/* ---------- Legal pages ---------- */

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.legal h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal address {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.translation-notice {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
}

.site-footer a[aria-current='page'] {
  font-weight: 700;
}

.site-footer__note {
  flex-basis: 100%;
  color: var(--ink-soft);
}

/* ---------- Motion: only for people who have not asked for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button,
  .site-nav a,
  .gallery img,
  .tag {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      box-shadow 0.2s ease;
  }

  /* Sections fade in as they scroll into view. */
  @supports (animation-timeline: view()) {
    .reveal > .wrap {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Windows high contrast and print ---------- */

@media (forced-colors: active) {
  .button,
  .status,
  .tag,
  .site-nav .lang-switch {
    border: 2px solid CanvasText;
  }

  .status::before,
  .roadmap__step::before {
    background: CanvasText;
  }
}

@media print {
  .site-header,
  .skip-link,
  .site-footer nav {
    display: none;
  }

  body,
  html {
    background: #fff;
    color: #000;
  }
}
