/* 1988RICH link directory — plain, fast, no dependencies. */

:root {
  --ink:        #17181b;
  --ink-soft:   #55575e;
  --ink-faint:  #6b6e76;
  --ground:     #ffffff;
  --ground-alt: #f6f5f3;
  --rule:       #e2e0dc;
  --accent:     #a81f16;
  --accent-ink: #8d1a12;
  --focus:      #1b5fd0;
  --radius:     10px;
  --measure:    68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #eceae6;
    --ink-soft:   #a8a7a3;
    --ink-faint:  #8a8985;
    --ground:     #141416;
    --ground-alt: #1c1c1f;
    --rule:       #2e2e32;
    --accent:     #f2705f;
    --accent-ink: #ff8676;
    --focus:      #7fb0ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: .65rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- head ---------- */

/* Brand bar. The logo artwork is white-and-gold on transparency, so it needs a
   dark surface in both themes — on a light header the white half disappears. */
.site-head {
  background: #141210;
  border-bottom: 1px solid rgba(204, 168, 96, .22);
  padding: .7rem 0;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
}
.logo-link:focus-visible {
  outline: 2px solid #cca860;
  outline-offset: 3px;
}

.logo {
  display: block;
  width: 146px;
  height: 65px;
}

/* Language switcher. Real anchors, not a script widget — crawlers have to be able
   to follow these or the translated pages never get discovered. */
.head-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.head-social {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.head-social a {
  display: inline-flex;
  padding: .3rem;
  border-radius: 5px;
  line-height: 0;
  transition: background-color .15s ease;
}
.head-social a:hover { background: rgba(255, 255, 255, .08); }
.head-social a:focus-visible { outline: 2px solid #cca860; outline-offset: 1px; }

.hs-icon { width: 1.25rem; height: 1.25rem; }
.hs-icon--tg { color: #26A5E4; }
.hs-icon--fb { color: #1877F2; }

.langs {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
}

.langs a,
.langs .lang-current {
  display: inline-block;
  padding: .35rem .55rem;
  border-radius: 5px;
  line-height: 1.2;
  white-space: nowrap;
}

.langs a {
  color: #b9b2a6;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.langs a:hover {
  color: #f2ede3;
  background: rgba(204, 168, 96, .14);
}
.langs a:focus-visible {
  outline: 2px solid #cca860;
  outline-offset: 1px;
}

.langs .lang-current {
  color: #141210;
  background: #cca860;
  font-weight: 600;
}

@media (max-width: 30rem) {
  .head-right { gap: .25rem; }
  .langs { gap: .1rem; font-size: .75rem; }
  .langs a, .langs .lang-current { padding: .28rem .35rem; }
  .hs-icon { width: 1.125rem; height: 1.125rem; }
  .head-social a { padding: .25rem; }
  .logo { width: 118px; height: 53px; }
}

/* ---------- hero ---------- */

.hero { padding: 3rem 0 2.5rem; }

h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lede {
  max-width: var(--measure);
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ---------- picker card ---------- */

.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground-alt);
  padding: 1.5rem;
}

.card-label {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.domain {
  margin: 0 0 1.35rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  font-size: clamp(1.35rem, 1rem + 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-all;
  font-variant-ligatures: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
}
.btn-primary:hover { background: var(--accent-ink); }

@media (prefers-color-scheme: dark) {
  .btn-primary { color: #1a0d0b; }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--ground); }

.icon { width: 1.05em; height: 1.05em; flex: none; }

.card-note {
  margin: 1.1rem 0 0;
  font-size: .875rem;
  color: var(--ink-faint);
  min-height: 1.4em;
}
.card-note.is-copied { color: var(--accent); font-weight: 600; }

.card-backup {
  margin: .5rem 0 0;
  font-size: .875rem;
  color: var(--ink-faint);
}
.card-backup a {
  color: var(--ink-soft);
  font-weight: 600;
  text-underline-offset: 3px;
}
.card-backup a:hover { color: var(--accent); }

/* ---------- sections ---------- */

.section { padding: 2.75rem 0; border-top: 1px solid var(--rule); }
.section.alt { background: var(--ground-alt); }

h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 .75rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 .3rem;
}

p { max-width: var(--measure); margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

/* Freshness marker. A date is only reassuring while it is true — build.mjs warns
   when site.json reviewDate goes stale. */
.list-checked {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  color: var(--ink-faint);
}
.list-checked time {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- link list ---------- */

.link-list {
  list-style: none;
  margin: .75rem 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.link-list li { border-bottom: 1px solid var(--rule); }

.link-list a {
  display: block;
  padding: .95rem .25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  font-variant-ligatures: none;
}
.link-list a:hover { color: var(--accent); }

/* ---------- channels ---------- */

.channels {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: .625rem;
  max-width: var(--measure);
}

.channels a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.channels a:hover {
  border-color: var(--ink-faint);
  background: var(--ground-alt);
}

/* Brand marks keep their own colours — a logo is recognised by colour before shape,
   and on a page people scan in a hurry that recognition is the whole point. */
.ch-icon { width: 1.5rem; height: 1.5rem; flex: none; }
.ch-icon--tg { color: #26A5E4; }
.ch-icon--fb { color: #1877F2; }

.ch-name { font-weight: 600; }

.ch-note {
  margin-left: auto;
  text-align: right;
  font-size: .8125rem;
  color: var(--ink-faint);
}

@media (max-width: 29rem) {
  .ch-note { display: none; }
}

/* ---------- steps + qa ---------- */

.steps {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.4rem;
  max-width: var(--measure);
}
.steps li { margin-bottom: 1.4rem; }
.steps li::marker { color: var(--ink-faint); font-weight: 600; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

.qa { margin-top: 1.6rem; max-width: var(--measure); }
.qa p { color: var(--ink-soft); font-size: .96rem; }

.fineprint { font-size: .875rem; color: var(--ink-faint); }

/* ---------- foot ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: .875rem;
  color: var(--ink-faint);
}
.site-foot p { margin: 0 0 .3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
