/*
  Terry Heath — styles.css
  Personal hub page. Same design DNA as Gone Goat:
  warm dark palette, Barlow type, orange accents.
*/


/* =============================================================
   DESIGN TOKENS — matches Gone Goat palette exactly
============================================================= */

:root {
  --bg:          #0f0e0d;
  --bg-alt:      #141210;
  --bg-card:     #1c1a17;
  --bg-card-hover: #222018;

  --accent:      #f97316;
  --accent-warm: #fbbf24;
  --accent-glow: rgba(249, 115, 22, 0.18);

  --text:        #f5f1eb;
  --text-muted:  #87817a;
  --text-on-accent: #0f0e0d;

  --border:      #2c2822;
  --border-hover: #4a4035;

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --max-width:   680px;
  --ease:        180ms ease;
  --ease-out:    260ms cubic-bezier(0.0, 0, 0.2, 1);
}


/* =============================================================
   RESET + BASE
============================================================= */

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /*
    Full-page subtle radial glow — warm centre matching the
    orange fire backdrop in the game artwork.
  */
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(249, 115, 22, 0.07) 0%, transparent 60%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--ease);
}

a:hover { opacity: 0.82; }

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

:focus:not(:focus-visible) { outline: none; }


/* =============================================================
   LAYOUT
============================================================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}


/* =============================================================
   HERO
============================================================= */

.hero {
  padding-block: 4rem 3rem;
  text-align: center;
}

/* Circular avatar — the orange radial in the illustration
   blends naturally into the page glow */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: 1.5rem;

  /* Subtle warm ring that picks up the orange bg in the image */
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--border),
    0 0 32px rgba(249, 115, 22, 0.20);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent-warm);
  text-shadow:
    0 0 40px rgba(251, 191, 36, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 38ch;
  margin-inline: auto;
}

/* Social pill links */
.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition:
    border-color var(--ease),
    background-color var(--ease),
    color var(--ease);
}

.social-link svg {
  flex-shrink: 0;
  color: var(--accent);
  transition: color var(--ease);
}

.social-link:hover {
  border-color: var(--accent);
  background-color: var(--bg-card-hover);
  color: var(--accent);
  opacity: 1;
}

.social-link:hover svg {
  color: var(--accent);
}


/* =============================================================
   PROJECTS
============================================================= */

.projects {
  padding-block: 1rem 5rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* --- Base card --- */
.project-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--bg-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--ease-out),
    background-color var(--ease-out),
    transform var(--ease-out),
    box-shadow var(--ease-out);
  margin-bottom: 1rem;
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

/* --- Featured card (Gone Goat) --- */
.project-card--featured {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-color: rgba(249, 115, 22, 0.3);
  background: linear-gradient(135deg, #1e1a14 0%, var(--bg-card) 60%);
}

.project-card--featured:hover {
  border-color: var(--accent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(249, 115, 22, 0.2);
}

.project-thumb {
  overflow: hidden;
  /* Slight crop from top so we show the fire/logo portion of the poster */
  aspect-ratio: 140 / 210;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 400ms ease;
}

.project-card--featured:hover .project-thumb img {
  transform: scale(1.04);
}

.project-info {
  padding: 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.project-type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-warm);
  letter-spacing: 0.01em;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38ch;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
  transition: gap var(--ease);
}

.project-card:hover .project-cta {
  gap: 0.6rem;
}

/* --- Secondary card (Webtoons) --- */
.project-card--secondary {
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.project-card--secondary .project-info {
  flex: 1;
  padding: 1.5rem;
}

.project-card--secondary .project-title {
  font-size: 1.5rem;
  color: var(--text);
}

.project-card--secondary .project-type {
  color: var(--text-muted);
}

.project-card--secondary .project-cta {
  color: var(--accent);
}

/* Decorative right-side accent bar */
.project-accent {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent-warm));
  opacity: 0.5;
  transition: opacity var(--ease);
}

.project-card--secondary:hover .project-accent {
  opacity: 1;
}


/* =============================================================
   FOOTER
============================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  background-color: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-social a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.footer-social a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* =============================================================
   RESPONSIVE
============================================================= */

/* Very small screens — stack featured card vertically */
@media (max-width: 480px) {
  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    aspect-ratio: 3 / 2;
  }

  .project-thumb img {
    object-position: center 20%;
  }
}

/* Larger screens */
@media (min-width: 640px) {
  .avatar {
    width: 160px;
    height: 160px;
  }

  .project-card--featured {
    grid-template-columns: 160px 1fr;
  }

  .project-thumb {
    aspect-ratio: 160 / 240;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 720px;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }
}
