/* ================================
   TOKENS
================================ */
:root {
  --bg:        #F7F3EF;
  --bg-alt:    #F0EBE4;
  --bg-dark:   #141412;
  --text:      #1A1612;
  --text-inv:  #F7F3EF;
  --muted:     #8C8C84;
  --accent:    #D4622A;
  --accent-lt: #F5E0D4;
  --border:    #E2DDD6;
  --surface:   #EDE9E2;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --w:         1040px;
  --w-narrow:  660px;
  --nav-h:     60px;
  --radius:    10px;
}

/* ================================
   RESET
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
body.no-scroll { overflow: hidden; }

/* ================================
   NAV
================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 500;
  border-radius: 6px !important;
}
.nav-cta:hover { opacity: 0.88; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ================================
   LAYOUT
================================ */
.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inv); }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================================
   HERO
================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.hero-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: #4A4A42;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 40px;
}
.hero-links { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-links a:hover { color: var(--accent); border-color: var(--accent); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  filter: contrast(1.02) saturate(0.95);
}

/* ================================
   BENTO HUB
================================ */
.bento-section {
  padding: 0 0 96px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 220px 180px;
  gap: 12px;
}

/* Grid positions */
.bento-work     { grid-column: 1 / 9;  grid-row: 1; }
.bento-photo    { grid-column: 9 / 13; grid-row: 1 / 3; }
.bento-blog     { grid-column: 1 / 5;  grid-row: 2; }
.bento-reading  { grid-column: 5 / 9;  grid-row: 2; }
.bento-youtube  { grid-column: 1 / 5;  grid-row: 3; }
.bento-hobbies  { grid-column: 5 / 9;  grid-row: 3; }
.bento-now      { grid-column: 9 / 13; grid-row: 3; }

/* Base card */
.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
  text-decoration: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.bento-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.bento-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}
.bento-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.75;
}
.bento-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: auto;
  display: block;
}

/* Work card — dark */
.bento-work {
  background: var(--bg-dark);
  color: var(--text-inv);
  justify-content: space-between;
  padding-top: 32px;
}
.bento-work .bento-label { color: var(--accent); }
.bento-work h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
.bento-work .bento-cta { color: var(--accent); }

/* Photography card — image bg */
.bento-photo {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
}
.bento-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.bento-photo-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  margin-top: auto;
}
.bento-photo .bento-label { color: rgba(255,255,255,0.7); }
.bento-photo .bento-cta { color: rgba(255,255,255,0.9); margin-top: 10px; display: block; }

/* Blog card — warm cream */
.bento-blog {
  background: #EDE0CC;
  color: var(--text);
  justify-content: space-between;
  padding-top: 28px;
}
.bento-blog .bento-label { color: #8B6A3E; }
.bento-blog h2 { font-style: italic; color: #4A3420; }
.bento-blog p { color: #6B5240; }
.bento-blog .bento-cta { color: #8B6A3E; }

/* Reading card — light, book list */
.bento-reading {
  background: var(--surface);
  color: var(--text);
  justify-content: flex-start;
  padding-top: 28px;
  gap: 0;
}
.bento-reading .bento-label { color: var(--muted); margin-bottom: 16px; }
.bento-booklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-booklist li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.bento-booklist li:last-child { border-bottom: none; padding-bottom: 0; }

/* YouTube card — dark with play */
.bento-youtube {
  background: #1A0A0A;
  color: #fff;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 28px;
}
.bento-youtube .bento-label { color: rgba(255,255,255,0.5); }
.bento-play {
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin: auto 0;
}
.bento-youtube .bento-cta { color: var(--accent); }

/* Hobbies card */
.bento-hobbies {
  background: var(--bg-alt);
  color: var(--text);
  justify-content: space-between;
  padding-top: 28px;
}
.bento-hobbies .bento-label { color: var(--muted); }
.hobby-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.hobby-tags span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Now card */
.bento-now {
  background: var(--accent);
  color: #fff;
  justify-content: space-between;
  padding-top: 24px;
}
.bento-now .bento-label { color: rgba(255,255,255,0.75); }
.bento-now h2 { color: #fff; font-size: 1.1rem; }
.now-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.now-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ================================
   PROJECTS
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.project-card {
  padding: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(212,98,42,0.09);
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.project-top h3 {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}
.project-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.65; }
.project-card > p {
  font-size: 0.875rem;
  color: #555550;
  line-height: 1.75;
  margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
}
.cv-row { text-align: center; }
.btn-cv {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 32px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cv:hover { border-color: var(--accent); color: var(--accent); }

/* ================================
   JOURNEY
================================ */
.journey-list { display: flex; flex-direction: column; }
.journey-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 44px;
}
.journey-item:last-child { padding-bottom: 0; }
.journey-item::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.journey-item:last-child::after { display: none; }
.journey-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  margin-top: 3px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.journey-dot--now {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-lt);
}
.journey-content h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.muted { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.journey-content p { font-size: 0.9rem; color: #555550; line-height: 1.75; }

/* ================================
   READING
================================ */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.book-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.book-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}
.book-author {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.book-note {
  font-size: 0.875rem;
  color: #555550;
  line-height: 1.7;
}

/* ================================
   HOBBIES
================================ */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hobby-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.hobby-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hobby-icon { font-size: 1.8rem; margin-bottom: 16px; }
.hobby-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.hobby-card p { font-size: 0.875rem; color: #555550; line-height: 1.7; }

/* ================================
   NOW
================================ */
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.now-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  padding-right: 48px;
}
.now-item:nth-child(even) { padding-right: 0; padding-left: 48px; border-left: 1px solid var(--border); }
.now-item:nth-last-child(-n+2) { border-bottom: none; }
.now-category {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.now-item p { font-size: 0.9rem; color: #4A4A42; line-height: 1.7; }
.now-live-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
}
.now-dot-sm {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
  display: inline-block;
}

/* ================================
   PING
================================ */
.ping-heading {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-inv);
}
.ping-sub { font-size: 0.95rem; color: #666660; line-height: 1.7; margin-bottom: 48px; }
.ping-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.ping-form textarea,
.ping-form input[type="email"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-inv);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 16px 18px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  width: 100%;
}
.ping-form textarea::placeholder,
.ping-form input::placeholder { color: #444440; }
.ping-form textarea:focus,
.ping-form input:focus { border-color: rgba(212,98,42,0.55); }
.ping-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.ping-form button:hover { opacity: 0.88; transform: translateY(-1px); }
.contact-also { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 32px; }
.contact-also-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #444440; margin-bottom: 16px; }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-links a { font-size: 0.875rem; color: #666660; transition: color 0.2s; }
.contact-links a:hover { color: var(--text-inv); }

/* ================================
   FOOTER
================================ */
.footer { background: var(--bg-dark); padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer p { font-size: 0.78rem; color: #333330; text-align: center; }

/* ================================
   FLOATING BUTTON
================================ */
.ping-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,98,42,0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ping-float:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,98,42,0.48); }

/* ================================
   MOBILE
================================ */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 10px;
  }
  .bento-work    { grid-column: 1 / 3; grid-row: auto; min-height: 200px; }
  .bento-photo   { grid-column: 1 / 3; grid-row: auto; min-height: 240px; }
  .bento-blog    { grid-column: 1 / 2; grid-row: auto; min-height: 160px; }
  .bento-reading { grid-column: 2 / 3; grid-row: auto; min-height: 160px; }
  .bento-youtube { grid-column: 1 / 2; grid-row: auto; min-height: 140px; }
  .bento-hobbies { grid-column: 2 / 3; grid-row: auto; min-height: 140px; }
  .bento-now     { grid-column: 1 / 3; grid-row: auto; min-height: 120px; }

  .projects-grid { grid-template-columns: 1fr; }
  .reading-grid { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .now-item:nth-child(even) { padding-left: 0; border-left: none; }
  .now-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .now-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .hero { min-height: auto; padding: 56px 0 68px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 1/1; max-width: 200px; border-radius: 50%; margin: 0 auto; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 8px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; width: 100%; padding: 12px 16px; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-work, .bento-photo, .bento-blog, .bento-reading,
  .bento-youtube, .bento-hobbies, .bento-now {
    grid-column: 1 / 2;
    grid-row: auto;
    min-height: 160px;
  }
  .bento-photo { min-height: 220px; }
  .ping-float { bottom: 20px; right: 20px; }
}
