/* ============================================================
   styles.css  —  shared styles for every page
   ------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED
   1. Design tokens (colors, fonts, spacing)  <-- edit colors here
   2. Base / reset
   3. Layout helpers (container, grid)
   4. Navigation bar  (shared across all pages)
   5. Profile card + status badges  (the signature element)
   6. Cards, badges, buttons
   7. Page-specific bits (business, personal, links, contact, private)
   8. Footer
   9. Animations + reduced-motion
   10. Responsive / mobile
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ----------------------------------------------------
   Almost all visual changes can be made right here.
   ============================================================ */
:root {
  /* ---- Colors (warm, modern, lightly retro) ---- */
  --paper:     #FCF3E9;   /* page background (warm peach) */
  --paper-2:   #F6E7D6;   /* inset / secondary surface  */
  --card:      #FFFBF5;   /* card background            */
  --ink:       #2B2230;   /* main text (deep plum, not black) */
  --ink-soft:  #6B5E63;   /* muted / secondary text     */
  --coral:     #FF6F59;   /* PRIMARY accent (buttons, highlights) */
  --coral-dark:#E7573F;   /* coral hover                */
  --teal:      #138A86;   /* SECONDARY accent (links)   */
  --teal-dark: #0E6F6B;   /* teal hover                 */
  --gold:      #F4B740;   /* badge / sticker accent     */
  --line:      #E6D4C0;   /* borders / dividers         */

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif; /* headings */
  --font-body:    Verdana, Geneva, Tahoma, sans-serif;  /* body — the genuine MySpace-era font */
  --font-pixel:   "Silkscreen", "Courier New", monospace; /* tiny status badges only */

  /* ---- Shape & depth ---- */
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    4px 4px 0 0 var(--ink);      /* chunky "sticker" shadow */
  --shadow-lg: 6px 6px 0 0 var(--ink);

  /* ---- Spacing rhythm ---- */
  --gap: 22px;
  --pad: clamp(18px, 4vw, 34px);
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--paper);
  /* subtle warm glow at the top + faint dotted grid = light retro texture */
  background-image:
    radial-gradient(900px 380px at 50% -120px, rgba(255,111,89,0.16), transparent 70%),
    radial-gradient(var(--line) 1px, transparent 1.5px);
  background-size: auto, 26px 26px;
  background-attachment: fixed, scroll;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

/* keyboard focus stays visible everywhere */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container { width: min(1000px, 92vw); margin-inline: auto; }

main { padding-block: clamp(28px, 6vw, 56px); }

.eyebrow { /* small label above a heading */
  font-family: var(--font-pixel);
  font-size: .7rem;
  letter-spacing: 1px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-gap { margin-top: clamp(34px, 7vw, 64px); }

/* ============================================================
   4. NAVIGATION  (identical markup on every page)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,243,233,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  width: min(1000px, 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.brand {
  font-family: var(--font-pixel);
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .dot { /* little pixel "online" dot in the logo */
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--coral); border: 2px solid var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: .9rem; font-weight: bold;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 2px solid transparent;
}
.nav-links a:hover { background: var(--paper-2); border-color: var(--line); }
.nav-links a.active { background: var(--coral); color: #fff; border-color: var(--ink); box-shadow: 2px 2px 0 0 var(--ink); }

/* mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  font: inherit; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 6px 12px; box-shadow: 2px 2px 0 0 var(--ink);
}

/* ============================================================
   5. PROFILE CARD  —  THE SIGNATURE ELEMENT
   A card dressed up like a little desktop "window".
   ============================================================ */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: var(--gap); align-items: start; }

.window {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar { /* the title bar with retro dots */
  display: flex; align-items: center; gap: 7px;
  background: var(--coral);
  border-bottom: 2px solid var(--ink);
  padding: 9px 12px;
}
.window-bar .pip { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.window-bar .pip.a { background: #fff; }
.window-bar .pip.b { background: var(--gold); }
.window-bar .pip.c { background: var(--teal); }
.window-bar .title { margin-left: auto; font-family: var(--font-pixel); font-size: .62rem; color: #fff; }
.window-body { padding: 20px; }

.avatar {
  width: 110px; height: 110px; margin: 0 auto 14px;
  border-radius: 16px; border: 3px solid var(--ink);
  background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--coral);
  box-shadow: var(--shadow);
}
.profile-name  { text-align: center; margin: 0 0 2px; }
.profile-tag   { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; }

/* pixel status badges — used sparingly, on theme */
.badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 16px; }
.badge {
  font-family: var(--font-pixel); font-size: .58rem;
  padding: 5px 8px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper-2); color: var(--ink);
}
.badge.live { background: var(--gold); }
.badge .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-right: 5px; vertical-align: middle; animation: pulse 1.6s infinite; }

/* the rotating "currently" ticker inside the profile card */
.currently {
  border-top: 2px dashed var(--line);
  margin-top: 14px; padding-top: 14px;
}
.currently .row { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 6px; }
.currently .k { font-weight: bold; color: var(--teal); min-width: 86px; }

/* ============================================================
   6. CARDS, BADGES, BUTTONS  (reusable everywhere)
   ============================================================ */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform .14s ease, box-shadow .14s ease;
}
/* hover "lift" — the chunky shadow grows */
.card.hoverable:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

.grid { display: grid; gap: var(--gap); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.auto   { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* navigation cards on the homepage */
.nav-card { text-decoration: none; color: inherit; display: block; }
.nav-card .ico { font-size: 1.6rem; margin-bottom: 8px; }
.nav-card h3 { margin-bottom: 4px; }
.nav-card p { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.nav-card .go { color: var(--coral); font-weight: bold; font-size: .85rem; margin-top: 10px; display: inline-block; }

/* pill tags / chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chip {
  font-size: .8rem; font-weight: bold;
  padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper-2);
}
.chip.coral { background: var(--coral); color: #fff; }
.chip.teal  { background: var(--teal);  color: #fff; }
.chip.gold  { background: var(--gold); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: bold; cursor: pointer;
  text-decoration: none;
  padding: 11px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 0 var(--ink); }
.btn.primary   { background: var(--coral); color: #fff; }
.btn.secondary { background: var(--card);  color: var(--ink); }

/* a callout box used for "this area is private" notes */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper-2);
  border: 2px solid var(--ink); border-left-width: 8px; border-left-color: var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .9rem;
}
.note .ico { font-size: 1.3rem; line-height: 1.2; }
.note strong { font-family: var(--font-display); }

/* a banner shown at the top of protected pages */
.protected-banner {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; margin-bottom: var(--gap);
}
.protected-banner .lock { font-size: 1.1rem; }

/* ============================================================
   7. PAGE-SPECIFIC BITS
   ============================================================ */
/* generic page header used on inner pages */
.page-head { margin-bottom: clamp(24px, 5vw, 40px); }
.page-head p.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }

/* business: focus areas */
.focus h3 { display: flex; align-items: center; gap: 8px; }
.focus .num { font-family: var(--font-pixel); font-size: .7rem; color: var(--coral); }

/* personal page leans warmer / softer */
.personal-hero { background: linear-gradient(135deg, var(--gold), var(--coral)); color: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--pad); }
.personal-hero h1 { color: #fff; }

/* photo gallery placeholders */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.photo {
  aspect-ratio: 1 / 1; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--paper-2);
  display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); font-size: .8rem; padding: 8px;
}

/* links page rows */
.link-row {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  padding: 14px 16px;
}
.link-row .ico { font-size: 1.4rem; width: 34px; text-align: center; }
.link-row .meta { flex: 1; }
.link-row .meta b { display: block; }
.link-row .meta span { color: var(--ink-soft); font-size: .82rem; }
.link-row .arrow { color: var(--coral); font-weight: bold; }

/* private dashboard tiles */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--gap); }
.dash .card h3 { color: var(--teal); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.checklist li::before { content: "▢ "; color: var(--coral); }

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  border-top: 2px solid var(--ink);
  margin-top: clamp(40px, 8vw, 80px);
  padding: 26px 0;
  font-size: .82rem; color: var(--ink-soft);
}
.footer-inner { width: min(1000px, 92vw); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-soft); }
.footer .counter { font-family: var(--font-pixel); font-size: .62rem; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 5px; }

/* ============================================================
   9. ANIMATIONS  (all disabled under reduced-motion)
   ============================================================ */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: translateY(0);} }

.reveal { animation: riseIn .5s ease both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   10. RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 820px) {
  .profile-layout { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  /* collapse the nav into a toggle menu */
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 12px 4vw;
  }
  .nav-links.open { display: flex; }
  .nav { position: sticky; }

  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}
