:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: light-dark(#212c27, #e8eee9);
  background: light-dark(#faf9f5, #171b18);
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.26em;
}
header,
main,
footer {
  width: min(1120px, 90%);
  margin: auto;
}
nav,
footer,
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav {
  min-height: 78px;
  border-bottom: 1px solid light-dark(#d8dbd3, #39423c);
}
nav a,
footer a {
  text-decoration: none;
}
nav a:hover,
footer a:hover {
  text-decoration: underline;
}
.brand {
  gap: 10px;
}
.brand img:first-child {
  width: 26px;
}
.brand img:last-child {
  width: 92px;
}
nav,
footer {
  font-size: 0.9rem;
}
.policy h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
.policy p {
  color: light-dark(#4c5951, #c3cec5);
}
.policy {
  max-width: 700px;
  margin: 64px auto 80px;
}
.policy h2 {
  margin: 32px 0 8px;
  font-size: 1.35rem;
}
footer {
  padding: 24px 0 38px;
  border-top: 1px solid light-dark(#cdd4cb, #39423c);
  color: light-dark(#536059, #b4c2b8);
}
@media (max-width: 740px) {
  nav {
    min-height: 65px;
  }
  .policy {
    margin: 36px auto;
  }
  .brand img:last-child {
    width: 76px;
  }
}

.home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}
.intro {
  display: grid;
  width: min(1040px, 94%);
  justify-items: center;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 4vw, 52px) 0 32px;
  position: relative;
  top: clamp(-28px, -1.6svh, -8px);
  text-align: center;
}
.identity h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.mark {
  width: clamp(32px, 3.5vw, 49px);
}
.wordmark {
  width: clamp(138px, 15vw, 200px);
}
.identity p {
  color: light-dark(#536059, #b4c2b8);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  margin: 14px 0 0;
}
.gallery {
  width: 100%;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.gallery .record,
.gallery:has(input[value="record"]:checked) .capture {
  display: none;
}
.gallery:has(input[value="record"]:checked) .record {
  display: block;
}
.switcher {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 3px;
  background: light-dark(#eaece5, #29322d);
  border-radius: 24px;
  font-size: 0.86rem;
}
.switcher label {
  position: relative;
  cursor: pointer;
}
.switcher input {
  position: absolute;
  opacity: 0;
}
.switcher span {
  display: block;
  padding: 6px 17px;
  border-radius: 24px;
}
.switcher input:checked + span {
  background: light-dark(white, #424e46);
  box-shadow: 0 1px 3px #27382c22;
}
.switcher input:focus-visible + span {
  outline: 2px solid #526f60;
}
.home footer {
  gap: 12px 24px;
  flex-wrap: wrap;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] :is(.mark, .wordmark, .brand img) {
  filter: invert(1);
}
.preferences {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.preferences {
  gap: 2px;
}
nav .brand {
  margin-right: auto;
}
nav .preferences {
  margin-left: 14px;
}
.support-email,
.preferences :is(a, button) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.preferences button[hidden] {
  display: none;
}
.support-email:hover,
.preferences :is(a, button):hover {
  background: light-dark(#eaece5, #29322d);
}
.support-email svg,
.preferences svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
