/* ============================================
   droidzero - Shared Stylesheet
   Black / White / Grey Minimal Theme
   Times New Roman
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  color-scheme: dark;
  background-color: var(--bg, #000000);
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  /* --- Dark Mode (Default) Color Tokens --- */
  --bg: #000000;
  --fg: #ffffff;
  --fg-muted: #c8c8c8;
  --fg-subtle: #b0b0b0;
  --fg-dim: #999999;
  --fg-faint: #888888;
  --fg-ghost: #666666;
  --fg-whisper: #555555;
  --fg-shadow: #444444;
  --fg-phantom: #333333;
  --heading-secondary: #d0d0d0;
  --heading-tertiary: #b0b0b0;
  --border: #1a1a1a;
  --border-hover: #333333;
  --border-accent: #555555;
  --surface: #050505;
  --surface-hover: #0a0a0a;
  --surface-raised: #0f0f0f;
  --surface-nav: #0a0a0a;
  --surface-overlay: rgba(0, 0, 0, 0.6);
  --border-subtle: #111111;
  --border-left: #1a1a1a;
  --border-left-hover: #444444;
  --social-fg: #888888;
  --social-border: #2a2a2a;
  --card-tag-fg: #777777;
  --card-tag-border: #2a2a2a;
  --card-category-fg: #555555;
  --success-border: #2a4a2a;
  --success-fg: #88aa88;
  --success-bg: #0a150a;
  --error-border: #4a2a2a;
  --error-fg: #aa8888;
  --error-bg: #150a0a;
  --liked-fg: #cc8888;
  --liked-border: #553333;
  --photo-placeholder: #333333;
  --darkroom-fg: #555555;
  --darkroom-border: #2a2a2a;
  --toggle-icon-size: 1.1rem;
  --toggle-border: #ffffff;

  /* Tool Design Tokens (JSON Formatter, Word Counter, Blueprint Parser) */
  --json-str: #6a9955;
  --json-num: #d19a66;
  --json-bool: #569cd6;
  --json-null: #c678dd;
  --json-key: #9cdcfe;
  --json-bg-hl: #ffe33a;
  --json-bg-sim: rgba(255, 255, 255, 0.2);

  background-color: var(--bg);

  color: var(--fg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* --- Light Mode Override --- */
body.light-mode,
html:has(body.light-mode) {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111111;
  --fg-muted: #333333;
  --fg-subtle: #444444;
  --fg-dim: #555555;
  --fg-faint: #666666;
  --fg-ghost: #777777;
  --fg-whisper: #999999;
  --fg-shadow: #aaaaaa;
  --fg-phantom: #bbbbbb;
  --heading-secondary: #222222;
  --heading-tertiary: #444444;
  --border: #dcdcdc;
  --border-hover: #aaaaaa;
  --border-accent: #888888;
  --surface: #f5f5f5;
  --surface-hover: #eeeeee;
  --surface-raised: #e8e8e8;
  --surface-nav: #f0f0f0;
  --surface-overlay: rgba(0, 0, 0, 0.3);
  --border-subtle: #e0e0e0;
  --border-left: #dcdcdc;
  --border-left-hover: #999999;
  --social-fg: #555555;
  --social-border: #cccccc;
  --card-tag-fg: #666666;
  --card-tag-border: #cccccc;
  --card-category-fg: #888888;
  --success-border: #6abf6a;
  --success-fg: #2d7a2d;
  --success-bg: #e8f5e8;
  --error-border: #d98888;
  --error-fg: #993333;
  --error-bg: #fce8e8;
  --liked-fg: #cc4444;
  --liked-border: #dd9999;
  --photo-placeholder: #cccccc;
  --darkroom-fg: #888888;
  --darkroom-border: #cccccc;
  --toggle-border: #000000;

  /* Tool Design Tokens (Light Mode) */
  --json-str: #22863a;
  --json-num: #e36209;
  --json-bool: #0550ae;
  --json-null: #6f42c1;
  --json-key: #005cc5;
  --json-bg-hl: #fff5b1;
  --json-bg-sim: rgba(0, 0, 0, 0.15);
}


/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition: color 0.35s ease;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.4em;
  color: var(--heading-secondary);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.3em;
  color: var(--heading-tertiary);
}

p {
  color: var(--fg-muted);
  max-width: 65ch;
  margin-bottom: 1em;
  transition: color 0.35s ease;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg-whisper);
  transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover {
  border-color: var(--fg);
  color: var(--fg-muted);
}

/* --- Layout --- */
.site-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 0 1.25rem 0;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

/* Pseudo element to cover scroll bounce / top notch area above 0px */
.site-header::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--bg);
  z-index: -1;
  transition: background-color 0.35s ease;
}

.site-header .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border-bottom: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.site-title:hover {
  color: var(--fg-muted);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--fg-faint);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1003;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--fg);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mobile Navigation --- */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--surface-nav);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.35s ease;
    z-index: 1002;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    font-size: 1.1rem;
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  transition: border-color 0.35s ease;
}

.site-footer .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--fg-whisper);
  letter-spacing: 0.04em;
  transition: color 0.35s ease;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--fg-ghost);
  border-bottom: none;
  letter-spacing: 0.04em;
  transition: color 0.35s ease;
}

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

/* --- Page Content --- */
.page-content {
  padding: 4rem 0;
  flex: 1;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--fg-ghost);
  font-style: italic;
  margin-top: 0.5rem;
  transition: color 0.35s ease;
}

/* --- Section Dividers --- */
.section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.35s ease;
}

.section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- About Me / Bio --- */
.bio-area {
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: var(--surface);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.bio-area p {
  font-size: 1.05rem;
  color: var(--fg-subtle);
  line-height: 1.8;
  max-width: none; /* override default p max-width: 65ch */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-column h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--heading-secondary);
  transition: border-color 0.35s ease;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--border-left);
  transition: border-color 0.3s ease;
}

.detail-item:hover {
  border-color: var(--border-left-hover);
}

.detail-label {
  font-size: 0.95rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.2rem;
  transition: color 0.35s ease;
}

.detail-sub {
  font-size: 0.8rem;
  color: var(--fg-ghost);
  display: block;
  transition: color 0.35s ease;
}

/* --- Link Lists --- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-item {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.link-item:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-hover);
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-link {
  font-size: 0.85rem;
  color: var(--social-fg);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  border-bottom: 1px solid var(--social-border);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* --- Contact Box --- */
.contact-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  background-color: var(--surface);
  max-width: 600px;
  margin: 0 auto;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.contact-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: lowercase;
  transition: color 0.35s ease;
}

.form-label .required {
  color: #cc3333;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background-color 0.35s ease, color 0.35s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--fg-shadow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: transparent;
  border: 1px solid var(--border-hover);
  color: var(--fg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.35s ease;
}

.form-submit:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-accent);
}

.form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.8rem;
  color: var(--fg-shadow);
  font-style: italic;
  margin-top: 0.75rem;
}

.form-message {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  border: 1px solid var(--success-border);
  color: var(--success-fg);
  background-color: var(--success-bg);
}

.form-message.error {
  border: 1px solid var(--error-border);
  color: var(--error-fg);
  background-color: var(--error-bg);
}

.form-message.validation {
  border: 1px solid var(--error-border);
  color: var(--error-fg);
  background-color: var(--error-bg);
}


/* --- Cards (Blog / Artifacts) --- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  display: block;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-whisper);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  transition: color 0.35s ease;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
  transition: color 0.35s ease;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.6;
  transition: color 0.35s ease;
}

.card-tags {
  margin-top: 0.75rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--card-tag-fg);
  border: 1px solid var(--card-tag-border);
  padding: 0.2rem 0.6rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.card-category {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--card-category-fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  transition: color 0.35s ease;
}

.card.hidden {
  display: none;
}

/* --- Blog Post Detail --- */
.post-container {
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.post-container .page-header {
  text-align: center;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--fg-ghost);
  font-size: 0.95rem;
}

.post-body {
  color: var(--fg);
}

.post-body p {
  max-width: none;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
}

.post-body h1 { font-size: 1.8rem; }
.post-body h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.4rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body h4 { font-size: 1.1rem; }

.post-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.post-body a:hover {
  opacity: 0.8;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.post-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 3px solid var(--border-accent);
  padding: 0.6rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
  background-color: var(--surface);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body code {
  font-family: monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9rem;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
  display: block;
}

.post-body iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* --- Photos Full Screen Width Layout --- */
.photos-header-wrapper {
  padding-top: 4rem;
}

.photos-container {
  width: 100%;
  max-width: 100%;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.photos-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photos-toolbar .filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.photos-toolbar .darkroom-collections-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

@media (max-width: 960px) {
  .photos-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .photos-container {
    padding: 0 1rem;
  }
}

/* --- Photo Grid (Flex Column Tracks for Row-by-Row Order) --- */
.photo-grid {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  align-items: flex-start;
}

.photo-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.photo-item {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.35s ease;
  content-visibility: auto;
  contain-intrinsic-size: 300px 420px;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.photo-item.hidden {
  display: none !important;
}

.photo-image-area {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-hover);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.35s ease, aspect-ratio 0.25s ease;
}

.photo-image-area a {
  display: block;
  width: 100%;
  height: auto;
  text-decoration: none;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.photo-item:hover img {
  opacity: 0.92;
}

.photo-info {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.photo-description {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
  transition: color 0.35s ease;
}

.photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --- Back Link --- */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* --- Photo Detail View --- */
.photo-detail-container {
  max-width: 900px;
  margin: 1.5rem auto;
}

.photo-display {
  width: 100%;
  max-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  background: var(--surface-hover);
}

.photo-display img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.photo-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photo-meta-header .photo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  margin: 0;
}

.photo-detail-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .photo-display {
    max-height: 55vh;
  }

  .photo-display img {
    max-height: 55vh;
  }

  .photo-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .photo-meta-header .photo-actions {
    margin-top: 0.25rem;
  }
}



.like-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-ghost);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.like-btn:hover {
  color: var(--fg-muted);
  border-color: var(--border-hover);
}

.like-btn.liked {
  color: var(--liked-fg);
  border-color: var(--liked-border);
}

.like-heart {
  font-size: 0.85rem;
  line-height: 1;
}

.like-count {
  font-size: 0.8rem;
}

.darkroom-link {
  font-size: 0.8rem;
  color: var(--darkroom-fg);
  border-bottom: 1px solid var(--darkroom-border);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.darkroom-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* --- Artifact / Tool Preview --- */
.artifact-preview {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background-color: var(--surface);
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, background-color 0.35s ease;
}

.artifact-preview:hover {
  border-color: var(--border-hover);
}

.artifact-preview h3 {
  color: var(--fg);
}

.artifact-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.artifact-meta span {
  font-size: 0.8rem;
  color: var(--fg-whisper);
  transition: color 0.35s ease;
}

.artifact-embed {
  width: 100%;
  min-height: 200px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--photo-placeholder);
  font-style: italic;
  font-size: 0.9rem;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.artifact-status {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--fg-whisper);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  transition: color 0.35s ease, border-color 0.35s ease;
}

/* --- Placeholder Content --- */
.placeholder-text {
  color: var(--photo-placeholder);
  font-style: italic;
  border: 1px dashed var(--border);
  padding: 1rem;
  margin: 0.5rem 0;
  transition: color 0.35s ease, border-color 0.35s ease;
}

/* --- Dark Mode Toggle (Boolean Slider) --- */
.theme-toggle {
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--toggle-border, #ffffff);
  border-radius: 12px;
  width: 36px;
  height: 20px;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--toggle-border, #ffffff);
  opacity: 0.85;
}

.theme-toggle-slider {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--fg);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  transform: translateX(0);
}

body.light-mode .theme-toggle-slider {
  transform: translateX(16px);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .page-content {
    padding: 2.5rem 0;
  }

  .photos-header-wrapper {
    padding-top: 2.5rem;
  }

  .photo-grid {
    gap: 0.75rem;
  }

  .photo-column {
    gap: 0.75rem;
  }

  .photo-item {
    border-radius: 6px;
  }

  .photo-item img {
    border-radius: 6px;
  }

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

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

  .site-footer .site-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .bio-area {
    padding: 1.5rem;
  }

  .contact-box {
    padding: 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  .filter-bar {
    gap: 0.4rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .photo-grid {
    gap: 1rem;
  }

  .photo-column {
    gap: 1rem;
  }
}

/* --- Tools Showcase Grid (iPhone App Grid on Mobile / Desktop File Finder on Desktop) --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tool-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.tool-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background-color: var(--surface-hover);
  color: var(--fg);
}

.tool-icon-wrapper {
  width: 54px;
  height: 54px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tool-card-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  margin-top: auto;
}

/* Mobile iPhone App Grid Layout */
@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    padding: 0.5rem 0;
  }

  .tool-card {
    background: transparent;
    border: none;
    padding: 0;
    align-items: center;
    text-align: center;
    box-shadow: none;
  }

  .tool-card:hover {
    transform: scale(1.05);
    background: transparent;
  }

  .tool-icon-wrapper {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(145deg, var(--surface-raised), var(--surface));
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tool-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    color: var(--fg);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .tool-card-desc,
  .tool-card-badge {
    display: none;
  }
}

/* --- Filter & Sort Bar (Slideout Design) --- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-ghost);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.filter-btn.active {
  color: var(--fg);
  border-color: var(--border-accent);
  background-color: var(--surface-raised);
}

/* Slideout Panel (expands below selected button) */
.filter-slideout {
  background-color: var(--surface-nav);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  animation: slideDown 0.2s ease;
}

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

.slideout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.slideout-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.slideout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.picklist-sort-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picklist-sort-toggle:hover {
  color: var(--fg);
  border-color: var(--border-accent);
}

.picklist-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.picklist-option:hover {
  background-color: var(--surface-hover);
  color: var(--fg);
}

.picklist-option input[type="checkbox"] {
  accent-color: var(--fg);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Active Filter Chips & Clear Action */
.active-filters-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.chip-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 0.85rem;
}

.chip-remove:hover {
  opacity: 1;
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--fg-ghost);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.2rem 0.4rem;
}

.clear-filters-btn:hover {
  color: var(--fg);
}

/* --- Centered Explore Section --- */
.section-centered {
  text-align: center;
}

.explore-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.explore-grid .link-item {
  min-width: 140px;
}

/* --- Homepage Showcase Cards --- */
.home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.featured-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.featured-blog-card:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-raised);
  transform: translateY(-2px);
}

.blog-meta-badge {
  font-size: 0.75rem;
  color: var(--fg-ghost);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.featured-blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.featured-blog-excerpt {
  font-size: 0.92rem;
  color: var(--fg-subtle);
  line-height: 1.6;
  margin-bottom: 0;
}

.read-more-link {
  font-size: 0.85rem;
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.read-more-link:hover {
  border-color: var(--fg);
}

/* Photo Cards for Homepage Top 3 */
.home-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.home-photo-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.home-photo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.home-photo-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #111;
}

.home-photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-photo-card:hover .home-photo-img-wrap img {
  transform: scale(1.04);
}

.home-photo-info {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-photo-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}

.home-photo-votes {
  font-size: 0.8rem;
  color: var(--fg-ghost);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.home-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.home-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-app-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.home-app-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.home-app-desc {
  font-size: 0.82rem;
  color: var(--fg-ghost);
  line-height: 1.4;
}

/* --- About Page Balanced Layout --- */
.skills-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .skills-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-card.ai-highlight {
    grid-column: 1 / -1;
  }
}

.skill-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s ease;
}

.skill-card.ai-highlight {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.skill-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--fg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.skill-card-badge {
  font-size: 0.65rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--fg-subtle);
}

/* Timeline Layout for Experience */
.experience-timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-left);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--fg);
  border: 2px solid var(--bg);
}

.timeline-header {
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--fg-subtle);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--fg-ghost);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: block;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--fg-subtle);
  line-height: 1.65;
}

/* --- Darkroom Store & Collections Bar --- */
.darkroom-collections-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem 0;
  align-items: center;
}

.darkroom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--surface, rgba(255, 255, 255, 0.03));
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.darkroom-btn:hover {
  border-color: var(--border-accent);
  background-color: var(--surface-hover, rgba(255, 255, 255, 0.07));
  color: var(--fg);
  transform: translateY(-1px);
}

/* --- Blog Subscribe Card --- */
.subscribe-card {
  margin: 1.5rem 0 2rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface-raised, rgba(255, 255, 255, 0.02));
  font-family: "Times New Roman", "Times", Georgia, serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.subscribe-card:hover {
  border-color: var(--border-accent);
}

.subscribe-header {
  margin-bottom: 1rem;
}

.subscribe-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscribe-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  font-family: "Times New Roman", "Times", Georgia, serif;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.subscribe-input {
  flex: 1;
  min-width: 240px;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, #222);
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.subscribe-input::placeholder {
  font-family: "Times New Roman", "Times", Georgia, serif;
  opacity: 0.7;
}

.subscribe-input:focus {
  border-color: var(--border-accent);
}

.subscribe-btn {
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  border: 1px solid var(--fg);
  background-color: var(--fg);
  color: var(--bg);
  font-family: "Times New Roman", "Times", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.15s ease;
}

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

.subscribe-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.subscribe-msg {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-family: "Times New Roman", "Times", Georgia, serif;
  display: none;
}

.subscribe-msg.success {
  display: block;
  color: var(--success-fg, #88aa88);
}

.subscribe-msg.error {
  display: block;
  color: var(--error-fg, #aa8888);
}





