/* dumit.me /home — Quiet Orientation Page (Editorial Watercolor Sketchbook) */

* {
  box-sizing: border-box;
}

:root {
  --font-editorial: 'Newsreader', Georgia, 'Iowan Old Style', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-stamp: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

body.theme-light {
  --bg: #f3eee3;
  --surface: rgba(255, 252, 246, 0.90);
  --surface-subtle: #ebe3d3;
  --fg: #241c14;
  --muted: #6c5b48;
  --border: rgba(154, 134, 108, 0.38);
  --accent: #9a4f38;
  --btn-bg: #2b2017;
  --btn-fg: #fcf8f0;
  --shadow: 0 10px 28px rgba(68, 52, 34, 0.08);
  --wash-cerulean: rgba(106, 170, 208, 0.14);
  --wash-saffron: rgba(229, 181, 75, 0.16);
  --wash-vermilion: rgba(212, 126, 101, 0.15);
  --wash-celadon: rgba(138, 181, 142, 0.16);
  --wash-slowburn: rgba(229, 184, 92, 0.14);
  --wash-vellum: rgba(190, 174, 150, 0.10);
}

body.theme-dark {
  --bg: #171619;
  --surface: rgba(33, 31, 36, 0.90);
  --surface-subtle: #252328;
  --fg: #f0e9de;
  --muted: #a69c8e;
  --border: rgba(218, 204, 182, 0.16);
  --accent: #de8e74;
  --btn-bg: #ece3d3;
  --btn-fg: #1b1816;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  --wash-cerulean: rgba(94, 166, 212, 0.14);
  --wash-saffron: rgba(223, 168, 68, 0.14);
  --wash-vermilion: rgba(212, 124, 100, 0.14);
  --wash-celadon: rgba(120, 179, 130, 0.14);
  --wash-slowburn: rgba(224, 178, 92, 0.13);
  --wash-vellum: rgba(214, 200, 180, 0.06);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body.theme-light {
  background-image: radial-gradient(ellipse at 25% 0%, rgba(255, 253, 246, 0.6) 0%, transparent 60%);
}

.home-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* --- Header Nav --- */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.home-brand {
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.brand-slash {
  font-family: var(--font-stamp);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.nav-cta:hover {
  opacity: 0.88;
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  font-size: 14px;
}

/* --- Hero Card --- */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

.hero-kicker {
  font-family: var(--font-stamp);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-editorial);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 0 0 16px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
}

.hero-bio {
  margin: 0 0 18px;
  font-size: 15px;
  max-width: 68ch;
  opacity: 0.92;
}

.now-box {
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border-left: 2.5px solid var(--accent);
  margin-bottom: 20px;
}

.now-label {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 4px;
}

.now-box p {
  margin: 0;
  font-size: 14px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-stamp);
  font-size: 12px;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.home-link-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* --- Sections --- */
.home-section {
  margin-bottom: 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 600;
}

.section-link {
  font-family: var(--font-stamp);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.section-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

/* --- Mind Palace Rooms Directory --- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.room-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.room-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.room-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  flex-shrink: 0;
  opacity: 0.85;
}

.dot-saffron { background: #dfa638; }
.dot-cerulean { background: #6aaad0; }
.dot-celadon { background: #78ab7d; }
.dot-vermilion { background: #d0745a; }
.dot-vellum { background: #b4a48e; }
.dot-slowburn { background: #c98f3a; }

.room-info {
  min-width: 0;
  flex: 1;
}

.room-name {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.room-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-count {
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Watercolor washes */
.wash-cerulean { background-image: radial-gradient(circle at 85% 20%, var(--wash-cerulean), transparent 65%); }
.wash-saffron { background-image: radial-gradient(circle at 85% 20%, var(--wash-saffron), transparent 65%); }
.wash-vermilion { background-image: radial-gradient(circle at 85% 20%, var(--wash-vermilion), transparent 65%); }
.wash-celadon { background-image: radial-gradient(circle at 85% 20%, var(--wash-celadon), transparent 65%); }
.wash-slowburn { background-image: radial-gradient(circle at 85% 20%, var(--wash-slowburn), transparent 65%); }
.wash-vellum { background-image: radial-gradient(circle at 85% 20%, var(--wash-vellum), transparent 65%); }

/* --- Selected Work & Slow Burns --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-plate {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.work-plate img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

body.theme-light .work-plate img {
  mix-blend-mode: multiply;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.work-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.work-card p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.work-cta {
  font-family: var(--font-stamp);
  font-size: 11.5px;
  color: var(--accent);
}

/* --- Recent Clippings & Guestbook Split --- */
.split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}

.recent-row:hover {
  border-color: var(--accent);
}

.recent-title {
  font-family: var(--font-editorial);
  font-size: 15.5px;
  font-weight: 500;
}

.recent-meta {
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--muted);
}

.guest-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-slip {
  display: block;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  background-image: radial-gradient(circle at 80% 15%, var(--wash-vermilion), transparent 70%);
  color: var(--fg);
  text-decoration: none;
}

.guest-slip p {
  margin: 0 0 6px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.48;
}

.guest-slip span {
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--muted);
}

.empty-copy {
  font-size: 13.5px;
  color: var(--muted);
}

/* --- Footer --- */
.home-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-stamp);
  font-size: 11.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-key {
  opacity: 0.5;
}

.footer-key:hover {
  opacity: 1;
}

@media (max-width: 720px) {
  .hero-card {
    padding: 20px;
  }

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