/* ==========================================================================
   PRISM v3 — NEO-BRUTALIST design draft (prefixed new_*, coexists with the
   live site). Thick black borders, hard offset shadows (no blur), flat
   saturated colors, zero rounded corners, oversized type, rotated stickers.
   Every color pairing verified >= 4.5:1 (WCAG AA):
   - fills (amber/coral/mint) always paired with black text
   - fills (indigo/purple) always paired with white text
   - text-on-cream uses the darker "-ink" variant of each hue
   ========================================================================== */

:root {
  --cream: #F7F3E9;
  --ink: #111111;
  --surface: #FFFFFF;

  --text-secondary: #33322E;
  --text-tertiary: #5C5A52;

  --amber: #FFD23F;
  --coral: #FF5A5F;
  --indigo: #4361EE;
  --mint: #06D6A0;
  --purple: #8338EC;

  /* darker, text-safe variants for use as heading/link color on cream */
  --coral-ink: #E00007;
  --amber-ink: #8A6900;
  --mint-ink: #037C5D;
  --indigo-ink: #4361EE;
  --purple-ink: #8338EC;

  --font-display: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  --border-w: 3px;
  --shadow-off: 6px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

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

::selection {
  background: var(--ink);
  color: var(--amber);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: var(--cream);
  color: var(--text-secondary);
  padding-top: 76px;
}

a {
  color: var(--indigo-ink);
}

/* ==========================================================================
   Top bar — solid black, bold amber edge, no blur, no floating
   ========================================================================== */
.new-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: var(--ink);
  border-bottom: 6px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  z-index: 999;
}

.new-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--surface);
  letter-spacing: -0.02em;
}

.new-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.new-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: var(--border-w) solid var(--surface);
  background: var(--ink);
  transition: transform 0.12s ease;
}

.new-icon-link:nth-of-type(1) { background: var(--coral); }
.new-icon-link:nth-of-type(2) { background: var(--indigo); }
.new-icon-link:nth-of-type(3) { background: var(--mint); }

.new-icon-link:hover {
  transform: translate(-2px, -2px);
}

.new-icon-link img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.new-lang-select {
  margin-left: var(--space-3);
}

.new-lang-select select {
  appearance: none;
  padding: 7px 14px;
  border: var(--border-w) solid var(--surface);
  background: var(--purple);
  color: var(--surface);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.new-lang-select select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.new-main {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.new-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.new-hero-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
}

.new-hero h1,
.new-project-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.new-hero .new-tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--amber);
  display: inline-block;
  padding: 4px 10px;
}

.new-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px 8px 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.new-badge:nth-child(1) { background: var(--amber); transform: rotate(-2deg); }
.new-badge:nth-child(2) { background: var(--mint); transform: rotate(1.5deg); }
.new-badge:nth-child(3) { background: var(--coral); transform: rotate(-1deg); }
.new-badge:nth-child(4) { background: var(--amber); transform: rotate(2deg); }

.new-badge img {
  width: 24px;
  height: 24px;
  padding: 4px;
  background: var(--ink);
  box-sizing: border-box;
  filter: invert(1);
}

/* ==========================================================================
   Section anatomy — huge heading + thick colored underline
   ========================================================================== */
.new-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.new-section-heading h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-block;
  border-bottom: 8px solid var(--ink);
  padding-bottom: 4px;
}

.new-section > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 64ch;
}

.new-section-about .new-section-heading h2 { border-bottom-color: var(--indigo); }
.new-section-experience .new-section-heading h2 { border-bottom-color: var(--coral); }
.new-section-skills .new-section-heading h2 { border-bottom-color: var(--amber); }
.new-section-contact .new-section-heading h2 { border-bottom-color: var(--mint); }
.new-section-hobbies .new-section-heading h2 { border-bottom-color: var(--purple); }

/* ==========================================================================
   Bento grid — experience / education / skills / contact
   ========================================================================== */
.new-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
}

.new-bento-card {
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  background: var(--surface);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.new-bento-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.new-bento .new-bento-card:nth-child(5n+1) { border-top: 8px solid var(--indigo); }
.new-bento .new-bento-card:nth-child(5n+2) { border-top: 8px solid var(--coral); }
.new-bento .new-bento-card:nth-child(5n+3) { border-top: 8px solid var(--amber); }
.new-bento .new-bento-card:nth-child(5n+4) { border-top: 8px solid var(--mint); }
.new-bento .new-bento-card:nth-child(5n+5) { border-top: 8px solid var(--purple); }

.new-bento-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.new-timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--surface);
  background: var(--ink);
  padding: 3px 10px;
  align-self: flex-start;
}

.new-timeline-company {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 700;
}

.new-timeline-role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.new-timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Contact tiles */
.new-contact-tile {
  align-items: flex-start;
  color: var(--ink);
}

.new-contact-tile img {
  width: 34px;
  height: 34px;
  padding: 8px;
  background: var(--ink);
  box-sizing: border-box;
  filter: invert(1);
}

.new-contact-tile span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

/* ==========================================================================
   Feature cards (Food Tech teaser, personal projects)
   ========================================================================== */
.new-feature-card {
  border: var(--border-w) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.new-feature-media img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: var(--border-w) solid var(--ink);
}

.new-feature-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.new-feature-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink);
}

.new-feature-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.new-feature-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.new-feature-grid .new-feature-media img {
  height: 100%;
  object-fit: cover;
  border-bottom: none;
  border-right: var(--border-w) solid var(--ink);
}

/* ==========================================================================
   Buttons — press-down interaction (signature neubrutalist tactility)
   ========================================================================== */
.new-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  border: var(--border-w) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.new-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.new-button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.new-button img {
  width: 14px;
  height: 14px;
}

.new-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-mono);
}

.new-back-link img {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Lists / tags
   ========================================================================== */
.new-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.new-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  background-color: var(--bg-color, var(--surface));
  color: var(--text-color, var(--ink));
}

.new-plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.new-plain-list li {
  padding-left: 18px;
  position: relative;
}

.new-plain-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 900;
}

/* ==========================================================================
   Project page media
   ========================================================================== */
.new-media {
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
}

.new-media img {
  width: 100%;
  height: auto;
  display: block;
}

.new-media-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.new-media-credit a {
  color: var(--text-tertiary);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.new-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border-top: var(--border-w) solid var(--ink);
  padding-top: var(--space-6);
}

hr.new-hr {
  border: none;
  border-top: var(--border-w) solid var(--ink);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: var(--initial-transform, translateY(20px));
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .new-topbar { padding: 0 var(--space-4); }
  .new-hero h1, .new-project-title { font-size: 2.75rem; }
  .new-main { padding: var(--space-6) var(--space-4) var(--space-7); gap: var(--space-7); }
  .new-feature-grid { grid-template-columns: 1fr; }
  .new-feature-grid .new-feature-media img { border-right: none; border-bottom: var(--border-w) solid var(--ink); }
}
