@font-face { font-family: "Oswald 700"; src: url(fonts/Oswald-700.ttf); }
@font-face { font-family: "Antonio 700"; src: url(fonts/Antonio-700.ttf); }
@font-face { font-family: "Sofia Sans Condensed 800"; src: url(fonts/SofiaSansCondensed-800.ttf); }
@font-face { font-family: "Roboto Condensed 400"; src: url(fonts/RobotoCondensed-400.ttf); }
@font-face { font-family: "Inter 900"; src: url(fonts/Inter-900.ttf); }
@font-face { font-family: "Roboto Slab 800"; src: url(fonts/RobotoSlab-800.ttf); }
@font-face { font-family: "Bebas Neue 400"; src: url(fonts/BebasNeue-400.ttf); }

:root {
  --bg: #fff;
  --ink: #1d1d1f;
  --muted: #6b6b73;
  --line: #d9d9de;
  --panel: #f6f6f8;
  --field: #fff;
  --drop: #eef5f8;
  --accent: #48869f;
  --error: #b3261e;
  color-scheme: light;
  font: 15px/1.45 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
/* Black theme, switched on with the logo's Black background option. */
:root.dark {
  --bg: #000;
  --ink: #ececef;
  --muted: #9a9aa3;
  --line: #3a3a40;
  --panel: #1c1c20;
  --field: #111114;
  --drop: #16252c;
  --accent: #5b9bb5;
  --error: #ff8a80;
  color-scheme: dark;
}

body { margin: 0 auto; max-width: 1280px; padding: 1.5rem 1rem 3rem; }
header h1 { margin: 0 0 .4rem; font-size: 1.6rem; line-height: 0; }

.wordmark { height: 3.2rem; width: auto; }
header p, footer p { margin: 0; color: var(--muted); }
footer { margin-top: 2rem; font-size: .85rem; }
a { color: var(--accent); }

main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}
/* Alignment and preview stay in view while the options column scrolls. */
.work { position: sticky; top: .75rem; display: grid; gap: 1rem; }
@media (max-width: 820px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .work { position: static; }
}

.input label { font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.drop-note { margin: .15rem 0 0; font-size: .92rem; }
textarea.dragging { border-color: var(--accent); background: var(--drop); }
textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: .35rem;
  font: 12px/1.35 ui-monospace, Menlo, monospace;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .5rem;
  resize: vertical;
  color: var(--ink);
  background: var(--field);
}
.buttons { display: flex; gap: .5rem; margin-top: .5rem; }
button {
  font: inherit;
  padding: .3rem .8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
label.disabled, .row.disabled { opacity: .45; cursor: default; }
#download { margin-left: .75rem; background: var(--accent); border-color: var(--accent); color: #fff; }

.options { display: grid; gap: .75rem; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem .75rem .65rem;
  margin: 0;
}
legend { font-weight: 600; padding: 0 .3rem; }
fieldset > label, .row label { margin-right: .9rem; white-space: nowrap; }
.row { margin: .15rem 0; }
.rowname { display: inline-block; min-width: 9.5rem; color: var(--muted); }

#fonts, #colors, #font-presets { display: grid; gap: .15rem; }
.google { flex-wrap: wrap; margin-top: .3rem; }
#gfont {
  font: inherit;
  width: 9rem;
  padding: .2rem .4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--field);
}
#gweight { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 6px; }
#gsample { min-width: 0; }
.google-hint { margin: .15rem 0 0; }
.choice { display: flex; align-items: center; gap: .6rem; }
.sample { font-size: 1.5rem; line-height: 1.1; min-width: 7.5rem; flex: none; letter-spacing: .02em; }
.name { color: var(--muted); font-size: .9rem; }
.swatches { display: inline-flex; flex: none; outline: 1px solid var(--line); }
.swatches span {
  width: .62rem;
  height: 1.05rem;
  font: 600 .55rem/1.05rem ui-monospace, Menlo, monospace;
  color: #fff;
  text-align: center;
}

.preview { min-height: 6rem; }
.preview-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; margin-bottom: .4rem; }
.theme { white-space: nowrap; }
.theme .rowname { min-width: 0; margin-right: .6rem; }
.theme label { margin-left: .6rem; }
/* A fixed line for status messages, so the preview below doesn't jump. */
#status { color: var(--muted); margin: 0 0 .5rem; min-height: 1.45em; }
#status.error { color: var(--error); }
#notes { color: var(--muted); font-size: .85rem; white-space: pre-line; margin: -.25rem 0 .5rem; }
#logo { box-sizing: border-box; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; }
