@font-face {
  font-family: "RLN Condensed";
  src: url("RLNCondensed-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172527;
  --muted: #536160;
  --paper: #e6e8ea;
  --rule: #cfd5d7;
  --accent: #26756c;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
.mast { color: var(--muted); }
.mast-inner {
  max-width: 1120px;
  margin: auto;
  padding: 13px clamp(16px,4vw,36px);
  display: flex;
  justify-content: flex-end;
  font-size: .875rem;
  font-weight: 650;
}
.mast a {
  color: inherit;
  text-decoration: none;
  padding: 8px 0 8px 6px;
  white-space: nowrap;
  font-size: .8125rem;
}
.mast a:hover { text-decoration: underline; }
.mast a span { margin-left: 2px; color: var(--accent); }
main {
  max-width: 1120px;
  margin: auto;
  padding: clamp(30px,6vw,68px) clamp(16px,4vw,36px) 42px;
}
.intro { margin: 0 0 26px; }
h1 {
  font-size: clamp(2.45rem,6vw,4.35rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.065em;
  margin: 0 0 12px;
}
p { margin: 0; }
.intro p { color: var(--muted); font-size: .9375rem; }
.intro p span { margin: 0 4px; }
.tester {
  border: 1px solid var(--rule);
  border-radius: 15px;
  box-shadow: 0 8px 28px #2732260a;
  overflow: clip;
}
.toolbox {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(128px,160px) auto;
  gap: clamp(16px,3vw,32px);
  padding: 18px clamp(16px,3vw,27px) 19px;
  background: #f0f1f2;
  border-bottom: 1px solid var(--rule);
}
.control { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.control > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.control > span, .theme legend { font-size: .8125rem; font-weight: 700; }
output { color: #405650; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 29px; margin: 0; accent-color: var(--accent); cursor: pointer; }
#alignment {
  width: 100%;
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid #bac5c7;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: .8125rem;
}
#alignment:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; align-items: center; gap: 4px; }
.theme legend { padding: 0; margin-bottom: 7px; }
.theme label { position: relative; }
.theme input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.theme span {
  display: block;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .8125rem;
  line-height: 1.1;
  pointer-events: none;
}
.theme input:checked + span { background: #fff; border-color: #bacac2; font-weight: 650; }
.theme input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.board {
  --board-bg: #fff;
  --board-ink: #101918;
  --board-muted: #52605d;
  --board-accent: #338578;
  background: var(--board-bg);
  color: var(--board-ink);
  padding: 15px clamp(16px,3vw,27px) 15px;
}
.board[data-theme="dark"] {
  color-scheme: dark;
  --board-bg: #1a2525;
  --board-ink: #f6faf5;
  --board-muted: #afc3bc;
  --board-accent: #9cd2bb;
}
.board-top { display: flex; align-items: center; justify-content: space-between; color: var(--board-muted); font-size: .8125rem; }
.board-top label { display: flex; align-items: center; gap: 8px; cursor: text; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--board-accent); }
button {
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 5px 7px;
  cursor: pointer;
}
button:hover { border-color: currentColor; }
#preview {
  display: block;
  margin: 3px 0 9px;
  width: 100%;
  height: 260px;
  min-height: 210px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 7px 18px;
  resize: vertical;
  font-family: "RLN Condensed", system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--type-size,112px);
  letter-spacing: var(--type-spacing,0px);
  line-height: 1.05;
  font-kerning: normal;
  font-synthesis: none;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#preview::placeholder { color: var(--board-muted); opacity: .85; }
#preview:hover { border-color: var(--board-muted); }
#preview:focus-visible, button:focus-visible { outline: 2px solid var(--board-accent); outline-offset: 2px; }
.board-help, .status { color: var(--board-muted, var(--muted)); font-size: .8125rem; }
.status { margin: 14px 0 0; }
@media (max-width: 720px) {
  .toolbox { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 16px; }
}
@media (max-width: 570px) {
  .intro { margin-bottom: 20px; }
  #preview { height: 220px; min-height: 180px; font-size: var(--type-size,54px); }
}
