/* ============ ESOREOS ============
   Same family as 7pej.com: same darks, small header, pill links.
   Ethan's color is the accent. Cadre Club bits stay orange. */

/* ============ COLORS AND FONTS ============ */
:root {
  /* Same darks as 7pej.com */
  --bg: #0e0d0d;          /* page background */
  --card: #161515;        /* link buttons, a step lighter */
  --panel: #141313;       /* Cadre Club box */
  --raised: #1c1b1a;      /* hovered links and banner box */
  --line: #2a2826;        /* thin outlines */
  --text: #f2eee8;
  --soft: #c8c2bb;
  --muted: #a29c96;
  --faint: #89847e;       /* footer text */

  --accent: #AB3670;        /* Ethan's color: icon circles, banner frame */
  --accent-light: #E874AB;  /* lighter version for words on black */
  --accent-line: #6E2348;   /* darker version for hover outlines */

  --orange: #FF4300;      /* Cadre Club darker orange */
  --amber: #FF9400;       /* Cadre Club lighter orange */

  --name-font: "Bricolage Grotesque", system-ui, sans-serif;   /* Ethan's own font for his name */
  --body-font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* A faint glow of Ethan's pink rising from the bottom of the page.
   Raise the 14% for a stronger glow, lower it for a subtler one. */
body {
  min-height: 100vh;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 14%, transparent) 0%, color-mix(in srgb, var(--accent) 5%, transparent) 30%, transparent 60%) var(--bg);
}
body { font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.page { min-height: 100vh; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 28px; max-width: 1200px; margin: 0 auto; }

/* ============ HEADER ============ */
header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.site-name { font-family: var(--name-font); font-size: 22px; font-weight: 700; color: var(--accent-light); }
.home-link { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); transition: color .18s ease; }
.home-link:hover, .home-link:focus-visible { color: var(--orange); }

/* ============ TWO COLUMNS (stack on phones) ============ */
.cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.col { min-width: 0; }
.col-main { flex: 5 1 420px; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 12px; }
.col-side { flex: 4 1 320px; display: flex; flex-direction: column; }

/* ============ LEFT: banner, name, links ============ */
.intro { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.banner { width: 100%; max-width: 560px; aspect-ratio: 1560 / 540; border-radius: 20px; overflow: hidden; background: var(--raised); border: 1px solid var(--accent-line); }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* The banner is a button (it plays the slideshow) */
.banner-btn { display: block; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.banner-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.banner-btn.is-cooling { cursor: default; transform: none; border-color: var(--accent-line); }

/* ============ BANNER SLIDESHOW POP-UP ============ */
.burst {
  width: min(520px, 82vw, 78vh);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 3px solid var(--accent);
  border-radius: 20px;
  background: #050505;
  overflow: visible;
}
.burst::backdrop { background: rgba(0, 0, 0, .8); }
.burst[open] { animation: pop .14s ease-out; }
.burst.is-leaving { transition: opacity .16s ease; opacity: 0; }
.burst-frame { position: relative; width: 100%; height: 100%; border-radius: 17px; overflow: hidden; }
.burst-pic {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  visibility: hidden;
}
.burst-pic.is-on { visibility: visible; }
/* Small spinner while the pictures finish loading (usually not seen) */
.burst.is-loading .burst-frame::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  border: 3px solid var(--accent-line); border-top-color: var(--accent-light); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.burst-x {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 36px; height: 36px; border: 2px solid var(--accent); border-radius: 50%;
  background: #0b0b0b; color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.burst-x:hover, .burst-x:focus-visible { background: var(--accent); }
h1 { margin: 6px 0 0; font-family: var(--name-font); font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: .01em; }
.real-name { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin-top: -2px; }
.bio { margin: 0; font-size: 16px; color: var(--soft); max-width: 560px; line-height: 1.55; }

.links { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.lnk { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.lnk:hover, .lnk:focus-visible { transform: translateY(-2px); border-color: var(--accent-line); background: var(--raised); }
.lnk-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.lnk-icon svg { width: 22px; height: 22px; }
.lnk-icon .lnk-logo { width: 26px; height: auto; }   /* picture logos (like Supercell) sized to match the drawn icons */
.lnk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lnk-name { font-size: 17px; font-weight: 600; }
.lnk-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk-arrow { margin-left: auto; flex: none; color: var(--muted); }
/* Accounts he doesn't have yet: a little dimmer, so they read as "not yet" */
.lnk.is-missing .lnk-icon { background: transparent; border: 1.5px dashed var(--accent); color: var(--accent-light); }
.lnk.is-missing .lnk-name { color: var(--soft); }
.foot { margin: 0; font-size: 12px; color: var(--faint); }

/* ============ RIGHT: Cadre Club box ============ */
.panel { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 28px; text-align: center; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.panel-img { flex: 1 1 auto; display: block; min-height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid #3a2414; }   /* grows to fill the box */
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
/* "Cadre Club" in the same sign font as the cadreclub.com logo */
.panel h2 { margin: 0; font-family: "Bungee", "Arial Black", sans-serif; font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--amber); text-shadow: 2px 2px 0 var(--orange); }
.panel p { margin: 0; font-size: 15px; color: var(--soft); line-height: 1.5; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; transition: border-color .18s ease, background-color .18s ease; }
.chip svg { width: 16px; height: 16px; color: var(--amber); }
.chip:hover, .chip:focus-visible { border-color: #6b3a12; background: var(--raised); }
.btn { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid var(--amber); color: var(--text); transition: background-color .18s ease; }
.btn:hover, .btn:focus-visible { background: rgba(255, 148, 0, .12); }

/* ============ THE "SORRY" POP-UP ============ */
.sorry {
  width: min(420px, calc(100vw - 32px));
  padding: 36px 28px 30px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: #0b0b0b;
  color: var(--text);
  text-align: center;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .6), 0 20px 60px rgba(0, 0, 0, .8);
}
.sorry::backdrop { background: rgba(0, 0, 0, .7); }
.sorry h2 { margin: 0 0 10px; font-family: var(--name-font); font-weight: 700; font-size: 26px; color: var(--accent-light); }
.sorry p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft); }
.sorry-x {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.sorry-x:hover, .sorry-x:focus-visible { background: var(--raised); color: var(--text); }
.sorry[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

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

/* ============ PHONES AND SMALL TABLETS ============ */
@media (max-width: 900px) {
  .page { padding: 20px 16px 32px; gap: 24px; }
  .cols > .col { flex-basis: 100%; }
  h1 { font-size: 48px; }
  .panel-img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .lnk, .chip, .btn, .banner-btn { transition: none; } .sorry[open], .burst[open] { animation: none; } }
