/* =========================================================
   Personal website — minimalist, text-first design
   Plain CSS, no build step. Edit the variables below to
   change the whole look at once.
   ========================================================= */

:root {
  /* Colors (light mode) */
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --link: #1a1a1a;
  --link-underline: #c9c9c9;
  --rule: #e6e6e6;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  /* Layout */
  --measure: 40rem;        /* max content width */
  --space: clamp(1.75rem, 4vw, 3rem); /* vertical rhythm between sections */
}

/* Optional dark mode — follows the visitor's system setting.
   Delete this block if you want pure black-on-white always. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededed;
    --muted: #9a9a9a;
    --link: #ededed;
    --link-underline: #4a4a4a;
    --rule: #2a2a2a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film-grain overlay — matches onehumanpod.com (200px tile, 5% opacity) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("noise.png");
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 50;
}

/* ----------------------------- Layout ---------------------------- */
.container {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(3rem, 6vw, 5rem);
}

.section {
  margin: 0;
}

/* --------------------------- Typography -------------------------- */
.name {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.05em;
  font-style: italic;
  margin: 0;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ----------------------------- Links ----------------------------- */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  border-bottom-color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------- Dividers ---------------------------- */
.divider {
  text-align: center;
  color: var(--muted);
  margin: var(--space) 0;
  font-size: 0.9rem;
  user-select: none;
}

/* --------------------------- Writing ----------------------------- */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  margin-bottom: 1.25rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-link {
  font-weight: 500;
}

.entry-note {
  display: block;
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 0.15rem;
}

/* ------------------------- Inspirations -------------------------- */
.inspo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.inspo-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.inspo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.inspo-list li {
  margin-bottom: 0.35rem;
  font-size: 0.95em;
}

/* ----------------------------- Footer ---------------------------- */
.site-footer {
  text-align: center;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.social a {
  border-bottom: none;
  color: var(--muted);
  font-size: 0.95em;
}

.social a:hover {
  color: var(--text);
}

.location {
  color: var(--muted);
  font-size: 0.85em;
  margin: 0;
}

/* ------------------------ Photography page ----------------------- */
.container.wide {
  max-width: 60rem;
}

.back {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.back a {
  border-bottom: none;
  color: var(--muted);
}

.back a:hover {
  color: var(--text);
}

.photo-grid {
  columns: 3 240px;
  column-gap: 1rem;
}

.photo {
  margin: 0 0 1rem;
  break-inside: avoid;
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.photo-empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 0;
}

/* --------------------------- Responsive -------------------------- */
@media (max-width: 30rem) {
  .inspo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
