/* The typefaces of Observatoire, served from here: nothing loads from elsewhere. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #05060f;
  --dusk: #0d1230;
  --panel: #111737;
  --line: #2a3263;
  --text: #e8ecff;
  --muted: #a3acd6;
  --accent: #8fb4ff;
  --ok: #9be3b4;
  --warn: #ffb070;
  --bad: #ff8f80;
  --radius: 3px;
  --system: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 16px;
  background: radial-gradient(120% 80% at 50% 0%, var(--dusk), var(--night) 70%) fixed var(--night);
  color: var(--text);
  font: 16px/1.55 var(--sans);
}

header, main, footer { max-width: 920px; margin: 0 auto; }

header { padding: 40px 0 24px; text-align: center; }
/* The title keeps the system face it was drawn with. */
.brand {
  font-family: var(--system);
  color: var(--text);
  text-decoration: none;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-right: -.32em;
}
.tagline { margin: 6px 0 0; color: var(--muted); }

label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }

.search { max-width: 560px; margin: 0 auto 28px; }
.row { display: flex; gap: .6rem; align-items: stretch; }

input, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
/* A slim line, as light as the button beside it. */
input { padding: .4rem .9rem; font-size: .9rem; }
textarea { padding: 11px 14px; font: 13px/1.5 var(--mono); resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Form buttons: filled, and exactly as tall as the field beside them (same
   font size, line height, vertical padding and border width). */
button {
  flex: none;
  padding: .4rem .95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #06102e;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #b4ccff; }
button.quiet { background: transparent; color: var(--accent); border-color: var(--line); }
button.quiet:hover { background: var(--panel); }

/* Links that act as buttons: outlined and light, filled on hover. */
.button {
  display: inline-block;
  padding: .4rem .95rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--text);
  font: 500 .8rem/1.2 var(--mono);
  letter-spacing: .03em;
  text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--text); color: var(--night); }

.share { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 16px; }
.over { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.error {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 12px 14px;
  border: 1px solid var(--bad);
  border-radius: var(--radius);
  color: var(--bad);
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.sky svg { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 24px 60px #0008; }

h1 { margin: 4px 0 12px; font-size: 30px; font-weight: 600; letter-spacing: .04em; }

.status { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--muted); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.status[data-state="same"] { border-color: var(--ok); }
.status[data-state="new"] { border-color: var(--accent); }
.status[data-state="changed"] { border-color: var(--warn); color: var(--warn); }
#accept { margin-bottom: 16px; }

dl { margin: 0 0 16px; }
dt { color: var(--muted); font-size: 13px; margin-top: 12px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.mono { font: 13px/1.5 var(--mono); }

details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; color: var(--accent); }
details p { color: var(--muted); margin: 10px 0; }
pre { margin: 0; padding: 12px; background: var(--panel); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }

.about { max-width: 560px; margin: 0 auto 32px; color: var(--muted); }
.about li { margin: 6px 0; }

.paste { max-width: 560px; margin: 0 auto; }
.paste form { margin-top: 12px; }
.paste button { margin-top: 8px; }

footer { padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer p { max-width: 560px; margin: 0 auto; }
footer .links { margin-top: 14px; }
footer a { color: var(--muted); text-underline-offset: .18em; }
footer a:hover, footer a:focus-visible { color: var(--text); }
footer .sep { margin: 0 .5em; opacity: .6; }

@media (max-width: 720px) {
  .result { grid-template-columns: 1fr; gap: 20px; }
  .row { flex-wrap: wrap; }
  .row input { flex: 1 1 14rem; }
}
