@font-face {
  font-family: Geist;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #18191c;
  --muted: #585d69;
  --surface: #f5f5f7;
  --line: #dedfe5;
  --blue: #2359db;
  --header-height: 56px;
  --page-gutter: clamp(16px, 4.5vw, 86px);
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 8px); }
body { margin: 0; min-width: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 41;
  transform: translateY(-160%);
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.skip:focus { transform: none; }
.account-width { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.account-nav {
  height: var(--header-height);
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(16px, 2.6vw, 36px);
  padding-inline: var(--page-gutter);
  background: rgb(0 0 0 / .94);
  border-bottom: 1px solid #ffffff12;
}
.account-nav.has-open-menu, .account-nav .proposal-nav-flyouts { background: #161617; }
.account-nav.has-open-menu { border-bottom-color: transparent; }
.account-nav .proposal-brand { justify-self: start; }
.account-nav .proposal-brand img { width: 145px; height: 40px; }
.account-nav .proposal-nav-links { gap: clamp(16px, 2.6vw, 36px); }
.account-nav .proposal-nav-link { color: #f5f5f7; font-size: 18px; font-weight: 400; }
.account-nav .proposal-nav-column-label { color: #a1a1a6; }
.account-nav .proposal-nav-column > a { color: #f5f5f7; }
.account-nav .proposal-nav-link:hover, .account-nav .proposal-nav-link[aria-expanded=true], .account-nav .proposal-nav-column > a:hover { color: #8cbdff; }
.account-nav :is(a, button):focus-visible { outline-color: #8cbdff; }
.account-nav .proposal-nav-flyouts { max-height: calc(100svh - var(--header-height)); }
.account-nav + .proposal-nav-backdrop { top: var(--header-height); }

.account-avatar { background: #222226; color: #f5f5f7; border-color: #44444b; }
.account-avatar:hover, .account-avatar[aria-expanded=true] { border-color: #8cbdff; }
.account-avatar > span { background: #2359db; color: #fff; }
.account-nav:has(#account-avatar[aria-expanded=true]) .proposal-nav-flyouts {
  left: auto;
  right: var(--page-gutter);
  width: min(320px, calc(100% - 2 * var(--page-gutter)));
  border: 1px solid #ffffff20;
  border-radius: 14px;
}
.account-nav:has(#account-avatar[aria-expanded=true]) + .proposal-nav-backdrop {
  background: rgb(0 0 0 / .12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.account-profile-menu { padding: 18px; color: #f5f5f7; }
.account-profile-menu h2 { padding: 2px 8px 10px; font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
.account-profile-menu > :is(a, button) {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.account-profile-menu > :is(a, button):hover { background: #ffffff12; }
.account-profile-menu button[aria-busy=true] { cursor: wait; opacity: .65; }
#account-logout-error { margin: 10px 8px 0; color: #ffbfc6; font-size: 13px; }


.sign-out { justify-self: end; min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 24px; background: #fff; font-size: 14px; font-weight: 550; }
.sign-out:hover { background: #ececf0; }
.sign-out span, .account-pill > [aria-hidden] { margin-left: 6px; }


.account-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border-radius: 24px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.account-pill:hover { background: #343740; }
/* The hero takes the space left after all labeled shortcuts have been laid out. */
.learning-overview {
  height: min(calc(100svh - var(--header-height)), 1020px);
  display: grid;
  grid-template-rows: minmax(min-content, 3fr) minmax(max-content, 2fr);
}
.learning-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: clamp(50px, 8svh, 100px) var(--page-gutter) clamp(34px, 5svh, 65px);
  background: #000;
  color: #f5f5f7;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font-size: clamp(34px, min(7.5vw, 11.3svh), 110px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
}
.hero-copy h1 span { display: block; }
.hero-actions { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px); margin-top: clamp(16px, 3svh, 34px); }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: clamp(44px, 6svh, 56px); gap: .6em; font-size: clamp(14px, 1.2vw, 20px); font-weight: 550; }
.hero-actions img { width: .94em; filter: invert(1); }
.hero-actions .choose-platform { padding-inline: clamp(14px, 1.65vw, 28px); border-radius: 999px; color: white; background: #1670ff; }
.hero-actions .choose-platform:hover { background: #2563ff; }
.hero-actions a:not(.choose-platform):hover { color: #99c6ff; }
.hero-actions a:focus-visible { outline-color: #a9ccff; }
.hero-books, .hero-cap, .hero-spark { position: absolute; object-fit: contain; pointer-events: none; }
.hero-books { right: 4%; top: 1.5%; width: 38%; height: 93%; }
.hero-cap { left: var(--page-gutter); top: 1.2%; width: min(8vw, 12%); height: 18%; object-position: left center; }
.hero-spark { right: 6%; top: 2%; width: min(8vw, 13svh); height: 23%; object-position: top right; }
.hero-edge { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(20px, 4.5svh, 44px); background: url('/images/landing/store/torn-edge.webp') center 52% / 100% clamp(215px, 50svh, 560px) no-repeat; pointer-events: none; }
.platform-chooser { display: grid; align-content: center; padding: clamp(8px, 1.5svh, 18px) var(--page-gutter) clamp(10px, 1.9svh, 20px); }
.platform-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.8svh, 20px) 8px; }
.platform-shortcut {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: center;
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1.24;
  font-weight: 580;
}
.platform-shortcut img { width: min(136px, 90%); height: clamp(46px, 9.5svh, 82px); padding-block: 7px; object-fit: contain; }
.platform-shortcut:not(.is-subscribed) img { filter: grayscale(1); }
.platform-shortcut:not(.is-subscribed) { color: var(--muted); }
.platform-shortcut:hover span, .platform-shortcut:focus-visible span { text-decoration: underline; text-underline-offset: .18em; }
.empty-subscriptions { padding-block: 24px 30px; }
.empty-subscriptions h3 { font-size: 19px; margin-bottom: 12px; }
.account-notice:has(.account-message:not([hidden])) { padding-block: 22px; }
#account-gate-title { margin-bottom: 12px; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.055em; }
.account-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); min-height: 75px; padding-block: 10px; color: var(--muted); font-size: 13px; }
.account-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.account-footer a:hover { text-decoration: underline; }

@media (max-width: 734px) {
  :root { --header-height: 100px; }
  .account-nav { grid-template: 52px 48px / 1fr auto; gap: 0; }
  .account-nav .proposal-brand img { width: 112px; }
  .account-nav .proposal-nav-links { gap: clamp(10px, 4vw, 26px); }
  .account-nav .proposal-nav-link { font-size: 14px; }
}
@media (max-width: 680px) {
  .account-width { width: calc(100% - 36px); }
  .sign-out { font-size: 12px; padding-inline: 11px; }
}
@media (max-width: 580px) {
  .learning-overview { height: min(800px, calc(100svh - var(--header-height))); grid-template-rows: minmax(min-content, 1fr) auto; }
  .learning-hero { display: grid; grid-template-columns: 1.7fr 1fr; align-content: center; row-gap: 10px; padding-block: clamp(44px, 7svh, 64px) 36px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { grid-column: 1; grid-row: 1; font-size: clamp(26px, 6.8vw, 39px); }
  .hero-cap { width: 54px; height: 21%; }
  .hero-books { position: static; grid-column: 2; grid-row: 1; width: 100%; height: auto; max-height: 20svh; }
  .hero-actions { grid-row: 2; grid-column: 1 / -1; margin-top: 0; gap: 16px; }
  .hero-actions a { font-size: 12px; min-height: 40px; gap: 4px; }
  .hero-actions .choose-platform { padding-inline: 12px; }
  .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .platform-shortcut img { width: min(96px, 94%); height: clamp(36px, 6.5svh, 52px); padding-block: 4px; }
  .platform-shortcut { font-size: 12px; }
}
@media (max-width: 370px) {
  .hero-actions { gap: 8px; }
  .hero-actions a { font-size: 11px; }
}
@media (min-width: 581px) and (max-height: 520px) {
  .learning-hero { padding-block: 30px 20px; }
  .hero-copy h1 { font-size: clamp(27px, 8.2svh, 40px); }
  .hero-actions { margin-top: 8px; }
  .hero-actions a { min-height: 36px; font-size: 13px; }
  .platform-shortcut img { height: clamp(32px, 9svh, 46px); padding-block: 3px; }
  .platform-shortcut { font-size: 12px; }
}

.account-message:not([hidden]) { margin: 0 0 14px; color: var(--muted); }

[hidden] { display: none !important; }
