/* The Beckoning Cat — resume page (extends splash tokens) */

:root {
  --washi: #fafafa;
  --washi-deep: #f5f5f5;
  --ink: #1c2430;
  --ink-soft: #3d4a5c;
  --indigo: #1e3a5f;
  --indigo-deep: #14283f;
  --vermillion: #c45c4a;
  --vermillion-soft: #d47a6a;
  --sakura: #f0c4c8;
  --sakura-deep: #e8a8b0;
  --gold: #c4a35a;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(20, 40, 63, 0.08);
  --radius: 18px;
  --font-display: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(240, 196, 200, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 50%),
    var(--washi);
  position: relative;
}

/* Subtle tiger-paw watermark — web only (not in PDF download) */
body.resume-page::before {
  content: "";
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("https://thebeckoningcat.com/wp-content/uploads/2024/09/2YGmy6-LogoMakr.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vermillion);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

/* —— Header / nav (match splash) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--indigo-deep);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--indigo);
  border-bottom-color: var(--sakura-deep);
}

.nav a.nav-live {
  color: var(--vermillion);
  font-weight: 600;
}

.nav-toggle {
  border: 1.5px solid rgba(30, 58, 95, 0.2);
  background: white;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--indigo);
  cursor: pointer;
}

.nav.open {
  display: flex;
  position: absolute;
  right: 1.25rem;
  top: 3.6rem;
  flex-direction: column;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.08);
  z-index: 60;
}

/* —— Resume hero —— */
.resume-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.25rem;
  position: relative;
  z-index: 1;
}

.resume-hero-inner {
  max-width: 48rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 0.75rem;
}

.hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}

.resume-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--indigo-deep);
  margin: 0 0 0.55rem;
}

.hero-subhead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
}

.resume-meta {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
}

.btn-primary:hover {
  background: var(--indigo-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: rgba(30, 58, 95, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--indigo-deep);
}

/* —— Main / sections —— */
.resume-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

.section {
  margin-top: 2rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--indigo-deep);
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.06);
}

.panel p {
  margin: 0;
}

.panel + .panel,
.job + .job,
.job + .additional-block {
  margin-top: 1rem;
}

.profile-label {
  display: block;
  font-family: var(--font-display);
  color: var(--indigo-deep);
  margin-bottom: 0.45rem;
}

.resume-chips {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.55rem;
}

.resume-chips li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--indigo-deep);
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.4rem;
}

.job-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--indigo-deep);
}

.job-org {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.job-meta {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.job ul,
.dense-list {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.job li,
.dense-list li {
  margin: 0.45rem 0;
  color: var(--ink);
}

.subhead {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--indigo-deep);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.35rem;
}

.tech-grid p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}

/* —— Footer —— */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--indigo);
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .resume-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  body.resume-page::before {
    width: 72px;
    height: 72px;
    opacity: 0.05;
    top: 4.25rem;
    right: 0.75rem;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 861px) and (max-width: 980px) {
  .nav a {
    font-size: 0.8rem;
  }
  .resume-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  body.resume-page::before {
    display: none;
  }
  .site-header,
  .nav-toggle,
  .hero-actions {
    display: none !important;
  }
  .panel {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
