/* Sloganizer.net – the 2005 look (Verdana, #F48000, grey italic slogan, rounded orange box),
   rebuilt with modern CSS. Colours are tokens; dark mode redefines them. */

:root {
  --orange: #f48000;
  --orange-ink: #c05f00;       /* orange text/links on white: 4.5:1 */
  --orange-top: #ffa640;
  --orange-bottom: #e86f00;
  --grey-top: #a3a3a3;
  --grey-bottom: #6e6e6e;
  --logo-shadow: rgb(0 0 0 / 0.22);
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --slogan: #666666;
  --box-text: #1f1f1f;
  --field: #ffffff;
  --field-border: #b35d00;
  --code-bg: #fff7ee;
  --code-border: #f48000;
  --grid: #e6e6e6;
  --bar: #d96c00;
  --bar-hover: #8f4700;
  --checker-a: #ffffff;
  --checker-b: #e9e9e9;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --orange-ink: #ff9a33;
    --grey-top: #c4c4c4;
    --grey-bottom: #8c8c8c;
    --logo-shadow: rgb(0 0 0 / 0.6);
    --bg: #1b1b1b;
    --text: #e6e6e6;
    --muted: #a8a8a8;
    --slogan: #bdbdbd;
    --field: #fffaf4;
    --code-bg: #2a2118;
    --code-border: #b35d00;
    --grid: #333333;
    --bar: #f48000;
    --bar-hover: #ffb366;
    --checker-a: #2b2b2b;
    --checker-b: #3a3a3a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.55 Verdana, Geneva, Tahoma, "DejaVu Sans", sans-serif;
}

.wrap {
  max-width: 732px;
  margin: 0 auto;
  padding: 28px 16px 24px;
  text-align: center;
}

a { color: var(--orange-ink); font-weight: bold; text-decoration: none; }
a:hover, a:focus-visible { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

h1 { font-size: 20px; margin: 18px 0 8px; color: var(--muted); font-style: italic; }
h2 { font-size: 14px; margin: 26px 0 8px; }
.lead, .intro, .comeback, .bug, main > p, main > div, main > h2, main > h1 { text-align: left; }
main > h1 { text-align: center; }
.lead { text-align: center; color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.masthead { position: relative; padding-top: 8px; }
.logo-link { display: inline-block; max-width: 100%; }
.logo { display: block; width: 531px; max-width: 100%; height: auto; }
.logo-orange-top { stop-color: var(--orange-top); }
.logo-orange-bottom { stop-color: var(--orange-bottom); }
.logo-grey-top { stop-color: var(--grey-top); }
.logo-grey-bottom { stop-color: var(--grey-bottom); }
.logo-shadow, .logo-swoosh-shadow { fill: var(--logo-shadow); }
.logo-swoosh, .logo-net { fill: var(--orange); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 11px; font-weight: normal; font-style: normal; letter-spacing: 0.04em; }

.faq { text-align: left; font-size: 12px; }
.faq h1 { text-align: center; }
.faq h2 { font-size: 13px; margin: 20px 0 4px; color: var(--orange-ink); }
.faq p { margin: 0; text-align: justify; }
.faq .signature { margin-top: 14px; font-style: italic; color: var(--muted); }

.lang-switch {
  position: absolute; top: -18px; right: 0;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--orange);
  border-radius: 10px;
}

/* ---------------------------------------------------------------- generator */

.slogan {
  margin: 36px 0 6px;
  color: var(--slogan);
  font: italic 32px/1.25 Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere;
  min-height: 1.25em;
  transition: opacity 0.15s;
}
.slogan.loading { opacity: 0.4; }
.slogan b { font-weight: bold; }

.tip { margin: 6px 0 0; font-size: 11px; font-style: italic; }
.tip a { font-weight: normal; }
.info {
  max-width: 500px; margin: 14px auto 0;
  font-size: 11px; text-align: justify; color: var(--muted);
}

.orange-box {
  max-width: 480px;
  margin: 30px auto 0;
  padding: 18px 22px;
  background: var(--orange);
  border-radius: 19px;
  color: var(--box-text);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 2px 0 rgb(0 0 0 / 0.08);
}
.orange-box input, .orange-box select {
  font: inherit;
  font-size: 15px;
  padding: 5px 8px;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  background: var(--field);
  color: #1f1f1f;
  min-width: 0;
}
#fslogan { flex: 1 1 220px; max-width: 280px; }
.orange-box button, button.copy {
  font: bold 13px Verdana, Geneva, Tahoma, sans-serif;
  padding: 6px 18px;
  border: 1px solid #7a7a7a;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #dcdcdc);
  color: #1f1f1f;
  cursor: pointer;
}
.orange-box button:hover, button.copy:hover { background: linear-gradient(#ffffff, #c8c8c8); }
.orange-box button:active, button.copy:active { background: linear-gradient(#c8c8c8, #f0f0f0); }

.form-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  text-align: left;
  max-width: 560px;
}
.form-grid label { font-weight: bold; }
.form-grid button { justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.form-inline label { font-weight: bold; }

.share { margin: 10px 0 0; min-height: 1.6em; }
.link-button {
  background: none; border: 0; padding: 0;
  font: bold 11px Verdana, Geneva, Tahoma, sans-serif;
  color: var(--orange-ink); cursor: pointer;
}
.link-button:hover { color: var(--muted); }

/* ---------------------------------------------------------------- content */

hr.line {
  border: 0;
  height: 3px;
  margin: 34px 0 18px;
  background: linear-gradient(90deg, transparent, var(--orange) 8%, var(--orange) 92%, transparent);
  border-radius: 2px;
}

.intro { font-size: 12px; text-align: justify; }
.comeback {
  font-size: 12px;
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 10px;
  color: var(--muted);
}

.preview { text-align: center; padding: 10px; border-radius: 8px; }
.preview img { max-width: 100%; height: auto; }
.preview-checker {
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 16px 16px;
}

.codes { display: grid; gap: 4px; }
.codes label { font-weight: bold; margin-top: 10px; text-align: left; }
.code-row { display: flex; gap: 8px; align-items: stretch; text-align: left; }
.code-row textarea, .terminal {
  flex: 1;
  min-width: 0;
  font: 12px/1.45 ui-monospace, Consolas, "DejaVu Sans Mono", monospace;
  background: var(--code-bg);
  color: var(--text);
  border: 2px dotted var(--code-border);
  border-radius: 4px;
  padding: 6px 8px;
  resize: vertical;
  overflow-wrap: anywhere;
}
.terminal { white-space: pre-wrap; text-align: left; margin: 8px 0 0; }
button.copy { padding: 4px 12px; align-self: center; }

.embed-preview { text-align: center; font-size: 16px; font-style: italic; }

.style-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.style-gallery a { display: grid; gap: 4px; justify-items: center; font-size: 11px; }
.style-gallery img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- statistics */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 10px;
  margin: 20px 0;
}
.tiles div { border: 1px solid var(--grid); border-radius: 10px; padding: 10px; }
.tiles dt { font-size: 11px; color: var(--muted); }
.tiles dd { margin: 4px 0 0; font-size: 17px; font-weight: bold; font-variant-numeric: tabular-nums; }
.tiles div:first-child dd { color: var(--orange-ink); }
.tiles dd.small { font-size: 13px; }

.chart-box { margin: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--muted); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 10px Verdana, Geneva, Tahoma, sans-serif; }
.chart .bar { fill: var(--bar); }
.chart .hit { fill: transparent; }
.chart .bar-group:hover .bar { fill: var(--bar-hover); }
.chart-box figcaption { font-size: 11px; color: var(--muted); text-align: left; margin-top: 6px; }

.table-scroll { overflow-x: auto; margin-top: 16px; }
.numbers { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.numbers th, .numbers td { padding: 4px 8px; border-bottom: 1px solid var(--grid); text-align: right; }
.numbers th:first-child { text-align: left; }
.numbers thead th { color: var(--muted); font-weight: bold; }

/* ---------------------------------------------------------------- footer */

.footer { margin-top: 30px; }
.navigation { font-weight: bold; font-size: 12px; line-height: 2; }
.navigation span { color: var(--muted); }
.navigation a[aria-current="page"] { color: var(--muted); }
.grau { font-size: 11px; color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding-top: 34px; }
  .slogan { font-size: 24px; margin-top: 26px; }
  .orange-box { padding: 14px; border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .code-row { flex-direction: column; }
  button.copy { align-self: flex-start; }
  .lang-switch { top: -24px; }
  .intro { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .slogan { transition: none; }
}
