@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #eeece4;
  --panel: #fffefb;
  --ink: #1f1e1a;
  --ink-soft: #5c5a52;
  --line: #d9d5c7;
  --accent: #1f1e1a;
  --focus: #0a8a4b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.app-header {
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-size: 30px;
  line-height: 1;
  color: var(--focus);
}

.brand h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.brand p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.score-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--focus);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--focus);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--focus);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 4px 2px 0;
}

select {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.primary-btn {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.primary-btn:hover { background: #3a3830; }

.hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.preview-surface {
  width: 100%;
  border-radius: 3px;
  padding: 24px;
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  background-color: #f4f4f2;
}

#preview {
  width: 100%;
  height: auto;
  display: block;
}
