/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — change only this block to retheme the site
═══════════════════════════════════════════════════════════ */
:root {
  /* Core palette */
  --color-bg:           #f8f7f4;
  --color-surface:      #ffffff;
  --color-text:         #1c1c1e;
  --color-text-muted:   #6b7280;
  --color-accent:       #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border:       rgba(0, 0, 0, 0.08);

  /* Bento tile colors — one line each to swap a tile's look */
  --tile-hero-bg:       #2b2d31;
  --tile-hero-fg:       #f8f7f4;
  --tile-about-bg:      #fff8f0;
  --tile-about-fg:      #1c1c1e;
  --tile-resume-bg:     #f0f4ff;
  --tile-resume-fg:     #1c1c1e;
  --tile-projects-bg:   #4a6fa5;
  --tile-projects-fg:   #ffffff;

  /* Landing page background texture (set to "none" to remove) */
  --bg-pattern:      url('images/BauhausTileBWtrans.JPG');
  --bg-pattern-size: 400px;

  /* Typography */
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  /* Spacing & shape */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --max-width:  1100px;
  --gap:        1.25rem;
  --padding:    2rem;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ═══════════════════════════════════════════
   LANDING PAGE — BENTO GRID
═══════════════════════════════════════════ */

/* Bauhaus texture on the home page */
body.home {
  background-image: var(--bg-pattern);
  background-size: var(--bg-pattern-size);
  background-repeat: repeat;
}

.bento-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: minmax(240px, 1fr) minmax(200px, 1fr) minmax(130px, auto);
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
  min-height: calc(100vh - 4rem);
}

.bento-tile {
  border-radius: var(--radius-lg);
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

/* Animated arrow on clickable tiles */
.bento-tile::after {
  content: '→';
  position: absolute;
  top: var(--padding);
  right: var(--padding);
  font-size: 1.2rem;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bento-tile:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

/* ── Hero tile ── */
.bento-tile--hero {
  grid-column: 1;
  grid-row: 1 / 3;
  background-color: var(--tile-hero-bg);
  color: var(--tile-hero-fg);
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 3rem;
}

/* Hero is not a link — suppress arrow and hover lift */
.bento-tile--hero::after { display: none; }
.bento-tile--hero:hover  { transform: none; box-shadow: none; cursor: default; }

.hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.75rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.6;
  max-width: 30ch;
  line-height: 1.55;
}

.hero-current {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.hero-bullets {
  list-style: none;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-bullets li {
  font-size: 0.8rem;
  opacity: 0.65;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.hero-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.5;
}

/* ── About tile ── */
.bento-tile--about {
  grid-column: 2;
  grid-row: 1;
  background-color: var(--tile-about-bg);
  color: var(--tile-about-fg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-border);
}

/* ── Resume tile ── */
.bento-tile--resume {
  grid-column: 2;
  grid-row: 2;
  background-color: var(--tile-resume-bg);
  color: var(--tile-resume-fg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-border);
}

/* ── Projects tile ── */
.bento-tile--projects {
  grid-column: 1 / 3;
  grid-row: 3;
  background-color: var(--tile-projects-bg);
  color: var(--tile-projects-fg);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.bento-tile--projects::after {
  position: static;
  font-size: 2rem;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.bento-tile--projects:hover::after {
  opacity: 1;
  transform: translateX(6px);
}

/* Tile text elements */
.tile-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
  margin-bottom: 0.4rem;
}

.tile-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: normal;
  line-height: 1.15;
}

.tile-desc {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 0.35rem;
  max-width: 26ch;
}


/* ═══════════════════════════════════════════
   INNER PAGES — SHARED LAYOUT
═══════════════════════════════════════════ */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-text);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background-color 0.2s, gap 0.2s;
}

.explore-link:hover {
  background-color: var(--color-accent-hover);
  gap: 0.75rem;
}


/* ═══════════════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.project-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px var(--color-border);
  color: var(--color-text);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: normal;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  color: var(--color-text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 0.6rem;
}


/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.about-photo {
  width: 280px;
  height: auto;
  border-radius: var(--radius);
}

.about-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.map-section {
  margin-top: 1rem;
}

.map-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.map-container {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--color-border);
}

#map {
  height: 500px !important;
  width: 100% !important;
}


/* ═══════════════════════════════════════════
   RESUME PAGE
═══════════════════════════════════════════ */
.resume-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.resume-download:hover {
  background-color: var(--color-accent-hover);
}

.resume-embed {
  width: 100%;
  height: 1000px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}


/* ═══════════════════════════════════════════
   BOARD GAME DASHBOARD PAGE
═══════════════════════════════════════════ */
.dashboard-embed {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: block;
}


/* ═══════════════════════════════════════════
   ROCK PAPER SCISSORS PAGE
═══════════════════════════════════════════ */
.rps-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

/* Screen switching */
.rps-screen {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.rps-screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rps-prompt {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Choice buttons */
.rps-buttons {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px var(--color-border);
  min-width: 7rem;
}

.choice:hover:not(:disabled) {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.choice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.choice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-icon svg {
  width: 3.5rem;
  height: 3.5rem;
}

.choice-label {
  font-weight: 500;
}

/* Duel display */
.rps-duel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.25rem 0;
}

.duel-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.duel-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.duel-icon svg {
  width: 100%;
  height: 100%;
}

.duel-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.duel-vs {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding-bottom: 1.5rem;
}

/* Shake animation during duel */
@keyframes shake {
  0%, 100% { transform: translateY(0); }
  25%       { transform: translateY(-6px); }
  75%       { transform: translateY(6px); }
}

.is-dueling .duel-icon {
  animation: shake 0.25s ease-in-out infinite;
}

/* Result text */
.rps-result {
  font-size: 1.4rem;
  font-weight: 700;
  min-height: 1.8rem;
  margin: 0;
}

.rps-result.win  { color: #2baa7e; }
.rps-result.lose { color: #e05555; }
.rps-result.tie  { color: var(--color-text-muted); }

/* Action buttons row */
.rps-actions {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}

.rps-btn {
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rps-btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border: 1.5px solid var(--color-accent);
}

.rps-btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.rps-btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.rps-btn-secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* History */
#history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.history-summary {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 1.5rem var(--padding);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   DOCUMENTATION PAGE
═══════════════════════════════════════════ */
.doc-section {
  margin-bottom: 3.5rem;
}

.doc-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.doc-section p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 72ch;
}

.doc-pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.tech-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem var(--padding);
  box-shadow: 0 2px 8px var(--color-border);
}

.tech-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.tech-card-value {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workflow-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px var(--color-border);
}

.workflow-item code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85rem;
  background-color: var(--color-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.workflow-item p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --padding: 1.25rem;
    --gap: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }

  .bento-tile--hero    { grid-column: 1; grid-row: 1; min-height: 55vw; }
  .bento-tile--about   { grid-column: 1; grid-row: 2; }
  .bento-tile--resume  { grid-column: 1; grid-row: 3; }
  .bento-tile--projects {
    grid-column: 1;
    grid-row: 4;
    flex-direction: row;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .doc-pages-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }

  #map {
    height: 320px !important;
  }

  .resume-embed {
    height: 600px;
  }

}
