/* ============================================================
   Sheridan OS — overview selector

   The door, not the document. It recreates the hub's own platform
   picker (the screen you get after signing in at
   command.sheridanfunds.com): an inset rounded panel floating on
   near-black, warm red light falling across the left half, cool light
   pooling under the right, and translucent cards you pick from.

   Two cards, not three: this demo covers Command Center and Credit.

   Deliberately single-theme. It is a recreation of one specific screen,
   so it commits to that screen's dark world and paints every colour
   explicitly rather than following the viewer's theme.
   ============================================================ */

@import url("./fonts/fonts.css");

:root {
  /* the ground the panel floats on */
  --void: #08080a;

  /* panel body, before the light falls on it */
  --panel: #141416;
  --edge: rgba(255, 255, 255, 0.09);
  --edge-soft: rgba(255, 255, 255, 0.07);

  /* The two light sources. These are the whole look, and they are easy to
     under-dial: an rgba wash composited onto a near-black panel loses most
     of its apparent strength, so the values are far higher than they read
     as numbers. */
  --warm: rgba(206, 62, 47, 0.82); /* top-left of the left half */
  --cool: rgba(156, 178, 214, 0.34); /* pooling under the right half */

  /* cards: glass, lifted well clear of the ground so they read as pickable */
  --card: rgba(255, 255, 255, 0.19);
  --card-hover: rgba(255, 255, 255, 0.25);
  --card-edge: rgba(255, 255, 255, 0.15);
  --card-edge-hover: rgba(255, 255, 255, 0.3);

  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.66);
  --on-dark-3: rgba(255, 255, 255, 0.42);

  --accent: #e0342a;
  --accent-lift: #f4544a;

  --display: "Libre Franklin", "Helvetica Neue", sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;

  --radius: 6px;
  --radius-card: 14px;
  --radius-panel: 20px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: clamp(0px, 1.6vw, 24px);
  background: var(--void);
  color: var(--on-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--radius);
}
.skip:focus {
  left: 12px;
  top: 12px;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
}

/* ---------- the panel ---------- */
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-panel);
  /* the light sources sit inside the rounded corners */
  overflow: hidden;
}
@media (max-width: 900px) {
  .panel {
    grid-template-columns: 1fr;
  }
}

.side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 54px);
  min-width: 0;
}

/* the divider between the halves, and the light on each */
.side.brand {
  border-right: 1px solid var(--edge);
  background:
    radial-gradient(124% 108% at -10% -12%, var(--warm) 0%, transparent 66%),
    linear-gradient(152deg, rgba(255, 255, 255, 0.06) 0%, transparent 52%);
}
.side.pick {
  background:
    radial-gradient(98% 70% at 54% 110%, var(--cool) 0%, transparent 74%),
    linear-gradient(200deg, rgba(255, 255, 255, 0.035) 0%, transparent 40%);
}
@media (max-width: 900px) {
  .side.brand {
    border-right: none;
    border-bottom: 1px solid var(--edge);
  }
}

/* ---------- the rule-under-header pattern, both halves ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--edge-soft);
  min-height: 34px;
}

.mark img {
  height: 26px;
  width: auto;
  display: block;
  /* the wordmark ships dark; lift it onto the dark ground */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  white-space: nowrap;
}
.tag.count {
  color: var(--on-dark-2);
}

/* ---------- left: the statement ---------- */
/* content sits low-centre, the way the picker's sign-in column does */
.mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px) 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin: 0 0 24px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.038em;
  margin: 0;
  color: var(--on-dark);
  max-width: 13ch;
  text-wrap: balance;
}

.lead {
  margin: 24px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--on-dark-2);
  text-wrap: pretty;
}

/* ---------- footers, both halves ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--edge-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* the right footer carries prose, not a label pair */
.foot .note {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  color: var(--on-dark-3);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- right: the choice ---------- */
.cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: clamp(30px, 5vw, 64px) 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  align-items: center;
  /* a touch brighter at the top-left corner, the way a lit pane would be */
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.055) 0%, transparent 58%),
    var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  padding: 28px 26px 28px 0;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
a.card:hover {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.06) 0%, transparent 58%),
    var(--card-hover);
  border-color: var(--card-edge-hover);
  transform: translateY(-1px);
}
a.card:hover .go {
  color: var(--on-dark);
  transform: translateX(4px);
}

.card .n {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: center;
}

.card b {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--on-dark);
}
.card s {
  display: block;
  text-decoration: none;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--on-dark-2);
  text-wrap: pretty;
}

.card .go {
  font-size: 19px;
  line-height: 1;
  color: var(--on-dark-3);
  text-align: center;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

@media (max-width: 560px) {
  .card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 22px 20px 22px 0;
  }
  .card .go {
    display: none;
  }
}
