/* The content domain's own pages (screens 54 to 58 of the share design). Tokens and type scale
   follow brand-squibble-share; the fonts are byte copies served from /.shr/page/fonts/. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg1: #ffffff;
  --bg2: #fafaf9;
  --g100: #f2f2f1;
  --g200: #eaeae8;
  --g300: #e1e1de;
  --g400: #d6d6d2;
  --g500: #bdbdb8;
  --g600: #8a8a85;
  --g800: #2a2a28;
  --g900: #54544f;
  --g1000: #111110;
  --focus: rgba(255, 190, 100, 0.6);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #0a0a0a;
    --bg2: #000000;
    --g100: #161616;
    --g200: #1c1c1c;
    --g300: #232323;
    --g400: #2e2e2e;
    --g500: #3a3a3a;
    --g600: #6e6e6e;
    --g800: #d4d4d4;
    --g900: #a3a3a3;
    --g1000: #ededed;
    --focus: rgba(255, 178, 77, 0.7);
  }
  .lg-tile {
    fill: #1c1c1c;
  }
  .lg-ring {
    stroke: #3a3a3a;
  }
  .lg-share {
    fill: #ededed;
  }
  .lg-by {
    fill: #d4d4d4;
  }
}

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

html,
body {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg2);
  color: var(--g1000);
  font: 400 14px/20px var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
p,
dl,
dd {
  margin: 0;
}

.mono {
  font-family: var(--mono);
}
.t-h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.t-h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.t-lg {
  font-size: 16px;
  line-height: 24px;
}
.t-sm {
  font-size: 13px;
  line-height: 20px;
}
.c2 {
  color: var(--g900);
}
.w5 {
  font-weight: 500;
}
.w6 {
  font-weight: 600;
  color: var(--g1000);
}
.r {
  text-align: right;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: inherit;
}
.ulink {
  text-decoration: underline;
  text-decoration-color: var(--g600);
  text-underline-offset: 4px;
}
.ulink:hover {
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px var(--g600),
    0 0 0 4px var(--focus);
}

.ico {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--bg1);
  box-shadow: inset 0 0 0 1px var(--g400);
  color: var(--g1000);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--g100);
}
.btn:active {
  background: var(--g200);
  box-shadow: inset 0 0 0 1px var(--g600);
}
.btn:focus-visible {
  border-radius: 6px;
}
.btn-sm {
  height: 28px;
  padding: 0 8px;
  gap: 4px;
  font-size: 13px;
}

/* Frame: header, centred column, footer. */
.top {
  padding: 24px 32px;
}
.logo {
  display: block;
  width: 101px;
  height: 32px;
}
main {
  flex: 1;
  padding: 96px 32px;
}
.srv {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.srv.wide {
  max-width: 960px;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  box-shadow: inset 0 1px 0 var(--g400);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* 404: the address the visitor asked for. */
.host {
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--g100);
  box-shadow: inset 0 0 0 1px var(--g400);
  overflow-wrap: anywhere;
}

/* Operator page. */
.facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.facts > .report {
  gap: 8px;
}

/* File list. */
.by {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--g200);
  color: var(--g1000);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg1);
  box-shadow: inset 0 0 0 1px var(--g400);
}
.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 136px;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  box-shadow: inset 0 -1px 0 var(--g300);
}
.frow:last-child {
  box-shadow: none;
}
.frow.head {
  min-height: 40px;
}
.frow.dir {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 40px;
  background: var(--g100);
}
.frow.nested {
  padding-left: 48px;
}
.frow .nm {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.frow .dl {
  text-align: right;
}
.name {
  display: flex;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
}
.name .hd {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.name .tl {
  flex: none;
  white-space: pre;
}

@media (max-width: 640px) {
  .top {
    padding: 16px;
  }
  .logo {
    width: 88px;
    height: 28px;
  }
  main {
    padding: 32px 16px 48px;
  }
  .t-h1 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.02em;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 16px;
  }
  .frow {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 12px;
  }
  .frow.head {
    display: none;
  }
  .frow.nested {
    padding-left: 16px;
  }
  .frow .dl .btn {
    width: 28px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--g900);
  }
  .frow .dl .btn:hover {
    background: var(--g100);
  }
  .frow .dl .lbl {
    display: none;
  }
}
