:root {
  color-scheme: dark;
  --page: #091816;
  --surface: #142a26;
  --accent: #abf1d5;
  --text: #fafaf7;
  --secondary: #b4bbbe;
  --border: #2f4841;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: var(--accent);
  overflow-wrap: anywhere;
}
button {
  color: inherit;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  line-height: 1.7;
}
h1 {
  font-size: 1.875rem;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
h2,
h3 {
  font-size: 1.063rem;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--secondary);
}
.kicker {
  font-size: 0.688rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.brandbar {
  max-width: 1180px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.lang {
  display: flex;
  gap: 6px;
}
.lang a {
  padding: 12px;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
}
.lang [aria-current="true"] {
  border-bottom: 2px solid var(--accent);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 32px 24px 48px;
}
.layout {
  display: grid;
  gap: 32px;
}
.reading,
.aside,
.stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quiet {
  background: transparent;
}
.rule {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.initial {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #264d41;
  color: var(--accent);
  font-weight: 600;
}
.shared {
  border-left: 2px solid #426a54;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.degree {
  font-size: 2.25rem;
  line-height: 1.3;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.button {
  display: block;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(125deg, #abf1d5, #94dec2);
  border: 1px solid #baf4de;
  box-shadow: 0 3px 7px #0003;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  color: #0f1e1c;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button:active {
  box-shadow: 0 1px 3px #0003;
  background: #94dec2;
}
.secondary {
  border-color: #587b68;
  background: #1b3730;
  color: var(--accent);
  box-shadow: none;
}
.text-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  text-align: left;
  min-height: 44px;
  padding: 12px 0;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feedback {
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #10231e;
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 140px;
  color: var(--text);
}
details > summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::after {
  content: "+";
  color: var(--accent);
}
details[open] > summary::after {
  content: "−";
}
details[open] > summary {
  margin-bottom: 24px;
}
.private {
  text-align: center;
}
.ruler {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--secondary);
}
input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--accent);
}
.adjust {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.adjust button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}
.qr {
  display: none;
  gap: 12px;
  align-items: center;
}
.qr svg {
  width: 100px;
  height: 100px;
  background: white;
  padding: 8px;
  flex-shrink: 0;
}
.page-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  max-width: 1180px;
  margin: auto;
  color: var(--secondary);
  font-size: 0.75rem;
  line-height: 1.7;
}
.subpage {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.back {
  margin-bottom: 20px;
}
.media {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  background: #10231e;
}
.media video,
.media img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.media video {
  aspect-ratio: 16/9;
}
.social img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.segments button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  line-height: 1.5;
}
.segments [aria-selected="true"] {
  background: #264d41;
  color: var(--accent);
}
.toggle {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.toggle span {
  flex: 1;
}
.toggle input {
  appearance: none;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 22px;
  background: #254338;
  border: 0;
  cursor: pointer;
  position: relative;
}
.toggle input:checked {
  background: var(--accent);
}
.toggle input::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: var(--secondary);
}
.toggle input:checked::after {
  left: 22px;
  background: var(--page);
}
.reward {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}
.preview-note {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--secondary);
}
[hidden] {
  display: none !important;
}
@media (min-width: 850px) {
  .brandbar {
    padding: 30px 0;
  }
  main {
    padding: 48px 40px;
  }
  .layout {
    grid-template-columns: minmax(0, 690px) minmax(280px, 330px);
    gap: 80px;
  }
  h1 {
    font-size: 2.688rem;
    line-height: 1.14;
  }
  .qr {
    display: flex;
  }
  .subpage h1 {
    font-size: 1.875rem;
  }
  .subpage {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media (min-resolution: 1dppx) {
  input[type="range"] {
    background: transparent;
  }
}

.portrait {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.portrait.small {
  width: 28px;
  height: 28px;
}
.brand svg {
  width: 18px;
  height: 24px;
}
