@font-face {
  font-family: Manrope;
  src: url('./manrope.3ae11c49db0455a3.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font: 16px/1.55 Manrope, Arial, sans-serif;
  background: #0c0e11;
  color: #f6f5f2;
  --panel: #14171c;
  --panel-raised: #1b1f25;
  --border: #2b2e34;
  --muted: #b5b7c0;
  --orange: #ff9b32;
  --accent: #ffc177;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: #ff9b3225; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #ffffff12; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  min-height: 82px;
  padding-block: .4rem;
}
.brand, .languages { display: inline-flex; align-items: center; gap: .6rem; }
.brand { text-decoration: none; font-size: 1.55rem; font-weight: 800; letter-spacing: -.065em; }
.brand img { display: block; }
.brand span span { color: var(--orange); }
.languages { gap: .2rem; }
.languages a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}
.languages a:hover { background: #ffffff0b; color: #f6f5f2; }
.languages a[aria-current] { color: var(--accent); background: #ff9b3217; }

.skip { position: absolute; left: 1rem; top: .75rem; z-index: 1; padding: .65rem .85rem; background: var(--orange); color: #16110b; border-radius: 8px; font-weight: 800; }
.skip:not(:focus) { clip-path: inset(50%); }
.page { padding: clamp(33px, 7vw, 84px) 0 clamp(42px, 8vw, 95px); }
.page-intro { max-width: 800px; }
.section-name { color: var(--orange); font-size: .86rem; font-weight: 750; margin: 0 0 .65rem; }
h1, h2 { letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.08; margin: 0 0 .85rem; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .55rem; }
p { margin: 0; text-wrap: pretty; }
.intro { max-width: 62ch; margin-bottom: clamp(1.2rem, 4vw, 2rem); color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); }

.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.card, .explainer { border: 1px solid var(--border); border-radius: 18px; background: var(--panel); padding: clamp(1rem, 3vw, 1.65rem); min-width: 0; }
.explainer { background: var(--panel-raised); }
.explainer p, .hint, .startup-note { color: var(--muted); }
.explainer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); margin-top: .45rem; font-weight: 700; }
.explainer a:hover { color: #ffdeb2; }
.fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { margin-bottom: 1.15rem; }
label { display: block; font-weight: 750; margin-bottom: .35rem; }
input, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  background: #0c0e11;
  border: 1px solid #52555e;
  border-radius: 10px;
  color: inherit;
  padding: .6rem .72rem;
  font: inherit;
}
input:hover { border-color: #747680; }
input::placeholder { color: #a3a5ad; opacity: 1; }
input[aria-invalid=true] { border-color: #ffb1ad; }
.hint, .error, .compatibility, .startup-note { font-size: .875rem; margin-top: .4rem; }
.error { color: #ffb1ad; }
.compatibility { color: var(--accent); }
.actions, .output-row { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.output-row textarea { flex: 1 1 230px; min-width: 0; resize: none; overflow-wrap: anywhere; }
button {
  border-radius: 10px;
  border: 1px solid #474850;
  min-height: 46px;
  padding: .58rem .9rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  color: inherit;
  background: var(--panel-raised);
  cursor: pointer;
}
button:hover { border-color: #ffad56; background: #24272d; }
button.primary { background: linear-gradient(120deg, #ffad4b, #ff8e27); border-color: transparent; color: #17120c; }
button.primary:hover { background: linear-gradient(120deg, #ffc06d, #ffa13c); }
button.secondary { background: transparent; }
button.secondary:hover { background: #ff98200a; }
button:disabled { opacity: .65; cursor: default; }
#result { margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
#copy-status { margin-top: .4rem; font-size: .9rem; color: var(--accent); }
#copy-status:empty { margin: 0; }

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .top { min-height: 64px; }
  .brand { font-size: 1.4rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .output-row textarea { flex-basis: 100%; min-height: 5.4rem; }
}
