/* distractinglife: warm graphite, cream and a coral dot (shared with the
   Distracting app icon). Colors follow the visitor's light/dark setting. */
:root {
  --bg: #f5f2eb;
  --surface: #fffdf8;
  --text: #232522;
  --muted: #57554f;
  --border: #dcd6ca;
  --grid: #e3ddd1;
  --link: #a8381f;
  --coral: #ff8f79;
  --focus: #a8381f;
  --marker: rgba(255, 143, 121, 0.55);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b19;
    --surface: #232522;
    --text: #f5f2eb;
    --muted: #b5afa4;
    --border: #3a3c37;
    --grid: #262825;
    --link: #ffa08d;
    --focus: #ffa08d;
    --marker: rgba(255, 143, 121, 0.45);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: 0.15em; }

::selection { background: var(--coral); color: #232522; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 1;
}
.skip:focus { top: 1rem; }

.site-header, main, .site-footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--coral);
}

nav ul, .links, .cards, .highlights, .actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: lowercase;
  text-decoration: none;
}
nav a:hover { color: var(--text); text-decoration: underline; }

/* Intro */
.intro { padding: 3rem 0 1rem; display: grid; gap: 2.5rem; align-items: center; }
.intro > * { max-width: 42rem; }
@media (min-width: 56rem) {
  .intro.has-now { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* The headline's *word* marker */
.hl {
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 90%, transparent 90%);
  color: inherit;
  padding: 0 0.04em;
}

/* Now card: a small status note beside the intro */
.now {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.35rem 0.4rem;
  box-shadow: 0 12px 30px -18px rgba(35, 37, 34, 0.35);
}
@media (min-width: 56rem) {
  .now { transform: rotate(1.5deg); }
}
.now-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.now-head .meta { margin-left: auto; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pulse {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--coral);
}
.now dl { margin: 0; }
.now dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.now dd { margin: 0.1rem 0 0.9rem; }

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--coral);
}

h1 {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}

.lede { color: var(--muted); font-size: 1.2rem; margin: 0; }

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.links a, .button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.links a:hover, .button:hover { background: var(--text); color: var(--bg); }

/* Sections */
.section { margin-top: 4.5rem; }

h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--text);
}
.num {
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
}

h3 { font-size: 1.1rem; margin: 0; letter-spacing: -0.01em; }
h3 a { color: var(--text); }

/* Tech: product panels */
.products { display: grid; gap: 1.5rem; }

.product {
  --item: var(--coral);
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 8px solid var(--item);
  border-radius: 20px;
}

@media (min-width: 52rem) {
  .product:has(.product-shot) { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 2rem; }
}

.product-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.product-icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border);
}
.product-mono {
  display: grid;
  place-items: center;
  background: var(--item);
  color: #232522;
  font-weight: 800;
  font-size: 1.5rem;
}
.product h3 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }

.kind {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.6rem; }
.product p { margin: 0 0 0.75rem; }

.highlights { margin: 1rem 0 0; display: grid; gap: 0.45rem; }
.highlights li { position: relative; padding-left: 1.4rem; }
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--item);
  box-shadow: 0 0 0 1px rgba(35, 37, 34, 0.35);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: transparent; color: var(--text); }

.product-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--item);
}
.product-shot img { display: block; width: 100%; height: auto; }

/* Videos and writing */
.hint { color: var(--muted); font-size: 0.9rem; margin: -0.75rem 0 1rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}
.card p { margin: 0.35rem 0 0; }
.meta { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.note { font-size: 0.95rem; }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.85rem;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4rem;
  height: 2.8rem;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
}
.play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play, .video:focus-visible .play { background: #c4302b; }

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

/* Work */
.focus { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); counter-reset: step; }
.focus .card { padding: 1.25rem 1.3rem; counter-increment: step; }
.focus .card::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.focus p { margin-top: 0.5rem; }

.chips {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chips li {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.78rem;
}


/* Stats strip under the intro */
.stats {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem 2rem;
  border-top: 1.5px dashed var(--border);
  border-bottom: 1.5px dashed var(--border);
}
.stats li { display: flex; align-items: baseline; gap: 0.6rem; }
.stat-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-label { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }

/* Places: one passport stamp per country */
.stamps {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1rem;
}
.stamp {
  --tone: var(--coral);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 7.5rem;
  max-width: 15rem;
  padding: 0.9rem 1.1rem;
  text-align: center;
  border: 2.5px solid var(--tone);
  border-radius: 12px;
  outline: 1.5px dashed var(--tone);
  outline-offset: -7px;
  background: var(--surface);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}
.stamp:nth-child(5n + 2) { --tone: #e0a526; transform: rotate(2.5deg); }
.stamp:nth-child(5n + 3) { --tone: #3fae6a; transform: rotate(-1.5deg); }
.stamp:nth-child(5n + 4) { --tone: #4c8dff; transform: rotate(4deg); }
.stamp:nth-child(5n + 5) { --tone: #a77bf3; transform: rotate(-4.5deg); }
.stamp-country { font-weight: 700; font-size: 0.9rem; }
.stamp-visits { color: var(--link); }
.stamp-cities, .stamp-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.stamp-note { color: var(--text); font-style: italic; }
.stamp-favorite { border-width: 3.5px; }
.stamp-flag {
  position: absolute;
  top: -0.7rem;
  right: -0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--coral);
  color: #232522;
  font-size: 0.65rem;
  font-weight: 700;
  transform: rotate(6deg);
}

/* Thoughts: short notes in a serif, like a notebook */
.thoughts { list-style: none; margin: 0; padding: 0; columns: 18rem; column-gap: 1rem; }
.thought {
  break-inside: avoid;
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
  border-radius: 6px 14px 14px 6px;
}
.thought blockquote { margin: 0; }
.thought blockquote p {
  margin: 0 0 0.6rem;
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
}
.thought .meta { margin: 0; }

/* Experiments log and things I use */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0 0 0.6rem;
}
.card h3 + p { margin-top: 0.5rem; }

.label {
  margin-right: 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Badges: text stays in the body color; the colored dot carries the state. */
.badge {
  --tone: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tone);
}
.status-running { --tone: var(--coral); }
.status-planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status-done, .verdict-love { --tone: #3fae6a; }
.verdict-complicated { --tone: #e0a526; }
.verdict-regret { --tone: #e5484d; }
.verdict-testing::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* About */
.prose { max-width: 42rem; font-size: 1.1rem; }
.prose p { margin: 0 0 1rem; }
.prose p:first-child {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Footer */
.site-footer p { margin: 0.25rem 0; }

.site-footer {
  margin-top: 5rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .links a, .button, .play { transition: background-color 0.15s, color 0.15s; }

  /* The brand dot wanders off and snaps back: once on load, and on hover. */
  .dot { animation: wander 1.1s 1.2s both; }
  .brand:hover .dot, .brand:focus-visible .dot { animation: wander-again 1.1s; }
  .pulse { animation: pulse 2.4s ease-out infinite; }
  .stamp { transition: transform 0.2s; }
  .stamp:hover { transform: rotate(0) scale(1.06); }
}

@keyframes wander {
  0%, 100% { transform: none; }
  30% { transform: translate(0.8em, -0.6em); }
  50% { transform: translate(1.2em, -0.3em); }
  80% { transform: translate(-0.1em, 0.05em); }
}
@keyframes wander-again {
  0%, 100% { transform: none; }
  30% { transform: translate(0.8em, -0.6em); }
  50% { transform: translate(1.2em, -0.3em); }
  80% { transform: translate(-0.1em, 0.05em); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 143, 121, 0.6); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(255, 143, 121, 0); }
}

/* Standalone article pages (/getset) */
.doc { max-width: 46rem; padding: 3rem 0 1rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.byline { margin: 0 0 1rem; }
.doc-shot { margin: 2.5rem 0; }
.doc section { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.doc h2 { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 0.75rem; }
.doc h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.doc p { margin: 0 0 0.9rem; }
.answer { font-size: 1.15rem; border-left: 4px solid var(--coral); padding-left: 1rem; }
.toc { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 1.1rem 1.3rem; }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.steps { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.demo { display: block; width: 100%; height: auto; margin-top: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.doc pre {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.doc code { font-family: var(--mono); font-size: 0.9em; }
.doc :not(pre) > code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 0.05em 0.35em; }
.doc-cta { border-top: 1px solid var(--border); padding-top: 2rem; }

/* Generated from content files */
.product-getset { --item: #f7f95f; }
.product-maya { --item: #a77bf3; }
