@font-face {
  font-family: "Instrument Sans";
  src: url("/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* The extension's own colors (static/welcome.css), so the site and the welcome page match. */
:root {
  --paper: #f5f4f0; --sheet: #ffffff; --ink: #1c1b19; --muted: #6d6a63; --line: #e3e0d8; --hover: #f3f2ee;
  --accent: #5a54d6; --accent-soft: #ecebfb; --accent-ink: #ffffff;
  --sidebar: #ebeae5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413; --sheet: #1d1c1a; --ink: #ecebe6; --muted: #9c988f; --line: #2f2e2a; --hover: #262522;
    --accent: #8f8af0; --accent-soft: #29274d; --accent-ink: #141413;
    --sidebar: #181816;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.top, main, .foot { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip-path: none; background: var(--sheet); padding: 0.5rem 0.75rem; z-index: 1; }

/* The logo: three bars, each shorter and fainter than the one above. */
.glyph { display: grid; gap: 3px; width: 22px; }
.glyph i { display: block; height: 5px; border-radius: 3px; background: var(--accent); }
.glyph i:nth-child(2) { width: 71%; opacity: 0.72; }
.glyph i:nth-child(3) { width: 42%; opacity: 0.44; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) 3rem; }
h1 {
  margin: 0 0 1.5rem;
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { margin: 0 0 2rem; max-width: 34rem; font-size: 1.3125rem; line-height: 1.5; }
@media (min-width: 60rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
  .hero h1 { margin: 0; }
  .hero .lede { margin-bottom: 1.5rem; }
}
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; color: var(--muted); font-size: 0.9375rem; }
.cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.cta:hover { background: color-mix(in oklab, var(--accent), var(--ink) 18%); }

/* The demo: a browser's tab sidebar next to Ebb's side panel. */
.window {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--sheet);
}
.tabs { background: var(--sidebar); padding: 1.25rem 1.25rem 1rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.archive { padding: 1.25rem; }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
h3 { margin: 0; font-size: 1rem; font-weight: 600; }
h3 span { color: var(--muted); font-weight: 400; margin-left: 0.25rem; }
#clock { margin: 0; color: var(--muted); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.window ol { list-style: none; margin: 0; padding: 0; }

.mark {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 5px;
  background: var(--mark);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.window { word-spacing: 0.06em; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9375rem; }

/* A tab narrows and fades as it ages, and its bar is the time it has left. */
.tab {
  --life: 1;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.625rem;
  row-gap: 0.375rem;
  padding-block: 0.5rem;
}
.tab .title { font-stretch: calc(75% + 25% * var(--life)); opacity: calc(0.7 + 0.3 * var(--life)); }
.tab .age { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tab .bar {
  grid-column: 2 / 4;
  height: 4px;
  width: calc(var(--life) * 100%);
  border-radius: 2px;
  background: var(--accent);
  opacity: calc(0.44 + 0.56 * var(--life));
}
.tab.kept .bar { background: var(--muted); opacity: 0.3; }

.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
button { font: inherit; color: var(--ink); cursor: pointer; }
.controls button {
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--sheet);
}
.controls button:hover { border-color: var(--accent); }
.said { margin: 0.75rem 0 0; min-height: 3em; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

#search {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--hover);
  color: var(--ink);
}
#search:focus { border-color: var(--accent); outline: none; }
.try { margin: 0.5rem 0 0.25rem; color: var(--muted); font-size: 0.8125rem; }
.try button {
  font-size: inherit;
  color: var(--accent);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 0.375rem;
}
#archived { height: 22rem; overflow-y: auto; margin-inline: -0.5rem; }
.entry {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.625rem;
  align-items: center;
  width: 100%;
  padding: 0.4375rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}
.entry:hover { background: var(--hover); }
.entry .mark { grid-row: 1 / 3; }
.entry .meta { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fresh .entry { animation: arrive 1.6s ease-out; }
@keyframes arrive { from { background: var(--accent-soft); } }
.none { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 52rem) {
  .window { grid-template-columns: minmax(0, 1fr); }
  .tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs .pane-head { flex-direction: column; gap: 0.125rem; }
  #clock { text-align: left; }
  #archived { height: auto; max-height: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fresh .entry { animation: none; }
}

h2 { margin: 3rem 0 0.75rem; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.facts { padding-top: 4.5rem; display: grid; gap: 3rem; }
.facts h2 { margin: 0 0 0.75rem; text-wrap: balance; }
.facts section > div { max-width: 40rem; }
.facts p { margin: 0 0 1rem; }
.facts p, .facts li, .prose p, .prose li, .lede { text-wrap: pretty; }
@media (min-width: 60rem) {
  .facts section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 3rem; }
  .facts h2 { margin: 0; padding-right: 2rem; }
}
.facts ul, .prose ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.facts li, .prose li { position: relative; padding-left: 1.5rem; margin-bottom: 0.375rem; }
.facts li::before, .prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.75rem;
  height: 0.25rem;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.72;
}
.facts .get { margin-top: 2rem; }
kbd {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--sheet);
  white-space: nowrap;
}

.prose { max-width: 40rem; padding-block: clamp(2rem, 5vw, 4rem) 1rem; }
.prose h1 { font-size: clamp(2.25rem, 1.75rem + 2vw, 3rem); max-width: none; }
.prose h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.prose p { margin: 0 0 1rem; }
.prose address { font-style: normal; margin-bottom: 1rem; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.5rem; margin: 0 0 1rem; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 6rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot p { margin: 0; max-width: 34rem; }
.foot .credit { margin-bottom: 0.375rem; font-size: 0.9375rem; }
.foot .credit a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot .credit a:hover { text-decoration: underline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
