:root {
  --cyan: #08a9df;
  --magenta: #ec008c;
  --yellow: #ffe600;
  --key: #231f20;

  --navy: #12213a;
  --navy-light: #1c3152;

  --page: #f3f5f8;
  --card: #ffffff;
  --text: #162033;
  --muted: #5f6978;
  --border: #dfe4eb;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #027a48;
  --success-bg: #ecfdf3;
  --warn: #b54708;
  --warn-bg: #fffaeb;

  --shadow: 0 14px 40px rgba(18, 33, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Segoe UI",
    "Avenir Next",
    "Trebuchet MS",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top left, rgba(8, 169, 223, 0.08), transparent 45%),
    radial-gradient(ellipse at top right, rgba(236, 0, 140, 0.06), transparent 40%),
    var(--page);
}

a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  padding: 52px 24px 76px;
  text-align: center;
  color: white;
  background:
    radial-gradient(circle at top, var(--navy-light), var(--navy) 68%);
}

.brand {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand-comics {
  color: var(--cyan);
}

.brand-etc {
  color: var(--magenta);
}

.tagline {
  max-width: 640px;
  margin: 20px auto 0;
  color: #e2e9f4;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.55;
}

.page {
  width: min(720px, calc(100% - 32px));
  margin: -42px auto 0;
  padding-bottom: 48px;
}

.page-narrow {
  width: min(440px, calc(100% - 32px));
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 36px 28px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.panel-cmyk-strip {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 8px;
}

.panel-cmyk-strip span:nth-child(1) {
  background: var(--cyan);
}

.panel-cmyk-strip span:nth-child(2) {
  background: var(--magenta);
}

.panel-cmyk-strip span:nth-child(3) {
  background: var(--yellow);
}

.panel-cmyk-strip span:nth-child(4) {
  background: var(--key);
}

.intro {
  margin: 0 0 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
}

.panel-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.45rem;
}

.panel-subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}

.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
}

.account-email {
  color: var(--muted);
}

.inline-form {
  display: inline;
  margin: 0;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.text-btn:hover {
  color: var(--navy);
}

.flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.flash p {
  margin: 0 0 8px;
}

.flash-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #fecdca;
}

.flash-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #abefc6;
}

.flash-warn {
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid #fedf89;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.field input:focus {
  outline: 3px solid rgba(8, 169, 223, 0.25);
  border-color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: white;
  background: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  text-decoration: none;
}

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  text-decoration: none;
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #aeb8c7;
  box-shadow: 0 10px 24px rgba(18, 33, 58, 0.1);
  text-decoration: none;
}

.link-card:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.link-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 13px;
  font-size: 1.45rem;
  font-weight: 800;
}

.link-copy {
  min-width: 0;
  flex: 1;
}

.link-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
}

.link-description {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.link-arrow {
  color: #7b8695;
  font-size: 1.5rem;
  line-height: 1;
}

.primary-link {
  color: white;
  background: var(--key);
  border-color: var(--key);
}

.primary-link .link-icon {
  color: var(--key);
  background: white;
}

.primary-link .link-title {
  color: white;
}

.primary-link .link-description,
.primary-link .link-arrow {
  color: rgba(255, 255, 255, 0.82);
}

.primary-link:hover {
  border-color: #000;
  box-shadow: 0 10px 26px rgba(35, 31, 32, 0.24);
}

.new-releases .link-icon {
  background: var(--cyan);
}

.foc .link-icon {
  background: var(--magenta);
}

.monthly .link-icon {
  color: var(--key);
  background: var(--yellow);
}

.section-heading {
  margin: 32px 0 14px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-link {
  padding: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.social-link:hover {
  background: #eef1f5;
  text-decoration: none;
}

.store-info {
  margin-top: 30px;
  padding-top: 26px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.store-info p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.5;
}

.store-info strong {
  color: var(--text);
}

.store-info a:not(.directions-link) {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.store-info a:not(.directions-link):hover {
  text-decoration: underline;
}

.hours-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  width: min(100%, 360px);
  margin: 24px auto 0;
  padding: 0;
  text-align: left;
}

.hours-list dt {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.hours-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.directions-link {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  padding: 14px 24px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  background: var(--navy);
  border-radius: 12px;
}

.directions-link:hover {
  background: var(--navy-light);
  text-decoration: none;
}

.site-footer {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 42px;
  }

  .page,
  .page-narrow {
    width: min(100% - 20px, 720px);
  }

  .panel {
    padding: 28px 16px 20px;
    border-radius: 18px;
  }

  .link-card {
    gap: 13px;
    min-height: 78px;
    padding: 14px;
  }

  .link-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}
