/* Linswing Team launcher. Paper · ink · brass; serif only for the personal line.
   Brass (#A9782B / #D2A35A) is decoration only — it is under 4.5:1 for text. */
:root {
  --paper: #F6F5F2;
  --card: #FFFFFF;
  --hair: #E4E3DE;
  --ink: #131A24;
  --slate: #4A5462;
  --brass: #A9782B;
  --link: #1D4ED8;
  --btn-bg: #131A24;
  --btn-fg: #FFFFFF;
  --focus: #1D4ED8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131A24;
    --card: #1A2230;
    --hair: #2A3445;
    --ink: #F2F0EB;
    --slate: #9AA3B1;
    --brass: #D2A35A;
    --link: #86B6FF;
    --btn-bg: #F2F0EB;
    --btn-fg: #131A24;
    --focus: #86B6FF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 880px; margin: 0 auto; padding: 20px 16px;
  border-bottom: 1px solid var(--hair);
}
.lockup { height: 25px; width: auto; display: block; }
.lockup-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .lockup-light { display: none; }
  .lockup-dark { display: block; }
}
.who { display: flex; gap: 16px; align-items: center; color: var(--slate); font-size: 14px; }

main { max-width: 880px; margin: 0 auto; padding: 40px 16px 64px; }
.centre { text-align: center; max-width: 420px; margin: 12vh auto 0; }

.serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500; letter-spacing: -0.01em;
  font-size: 34px; line-height: 1.2; margin: 0 0 8px;
}
.centre .serif::after {
  content: ""; display: block; width: 40px; height: 2px; background: var(--brass);
  margin: 16px auto 0;
}
h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); margin: 40px 0 12px;
}
.quiet { color: var(--slate); margin: 0 0 24px; }
.small { font-size: 14px; }
.fine { color: var(--slate); font-size: 13px; margin: 20px 0 0; }

.primary {
  appearance: none; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; padding: 12px 28px; min-height: 44px;
}
.primary:hover { opacity: 0.92; }
.link-button {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 0;
  font: inherit; color: var(--link);
}

.vpn-note {
  display: inline-block; margin: 8px 0 0; padding: 6px 12px;
  border-left: 2px solid var(--brass); color: var(--slate); font-size: 14px;
}

.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.tiles a {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px;
  padding: 18px 18px 16px; transition: border-color 120ms ease;
}
.tiles a:hover { border-color: var(--brass); }
.tile-name { font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.tile-note { color: var(--slate); font-size: 14px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 500; color: var(--slate); }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--hair); }
.rows .row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 18px; min-height: 52px;
}
.row-links { display: flex; gap: 4px; white-space: nowrap; }
.row-links a { color: var(--link); font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.row-links a:hover { background: var(--paper); text-decoration: underline; }
.row-account { font-weight: 600; }
.row-role { color: var(--slate); font-size: 14px; }

@media (max-width: 520px) {
  .serif { font-size: 28px; }
  main { padding-top: 28px; }
  .rows .row { flex-wrap: wrap; }
}
/* Waiting: an iOS-style activity indicator, shown only if the wait is noticeable. */
.loading { margin-top: 22vh; opacity: 0; animation: lw-appear 240ms ease-out 320ms forwards; }
.spinner { position: relative; width: 28px; height: 28px; margin: 0 auto 18px; }
.spinner i {
  position: absolute; left: 12.5px; top: 0; width: 3px; height: 8px; border-radius: 2px;
  background: var(--slate); transform-origin: 1.5px 14px; opacity: 0.18;
  animation: lw-tick 0.8s linear infinite;
}
.spinner i:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.7s; }
.spinner i:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.6s; }
.spinner i:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.5s; }
.spinner i:nth-child(4) { transform: rotate(135deg); animation-delay: -0.4s; }
.spinner i:nth-child(5) { transform: rotate(180deg); animation-delay: -0.3s; }
.spinner i:nth-child(6) { transform: rotate(225deg); animation-delay: -0.2s; }
.spinner i:nth-child(7) { transform: rotate(270deg); animation-delay: -0.1s; }
.spinner i:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }
.loading-text { color: var(--slate); font-size: 15px; margin: 0; letter-spacing: 0.01em; }
@keyframes lw-tick { from { opacity: 0.85; } to { opacity: 0.18; } }
@keyframes lw-appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .loading { animation: none; opacity: 1; }
  .spinner i { animation: none; opacity: 0.5; }
}
