/* site.css: only what this site adds on top of core.css + cards.css */

:root {
  --max: 880px;
  /* Akira Goods placeholder art */
  --sky: #f3e9d6; --hill-far: #c9b38a; --hill: #a8875a; --peak: #6b5a43;
  --sun: #e9a23b; --art-ink: #5a4a35;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #1b2130; --hill-far: #3a3a3f; --hill: #4a4236; --peak: #2a2620;
    --sun: #d9922f; --art-ink: #f3e9d6;
  }
}
:root[data-theme="dark"] {
  --sky: #1b2130; --hill-far: #3a3a3f; --hill: #4a4236; --peak: #2a2620;
  --sun: #d9922f; --art-ink: #f3e9d6;
}

/* Light/dark toggle (top right) */
.theme-toggle {
  position: absolute; top: var(--s3); right: var(--s3);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg); color: var(--text); border: var(--border);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle[data-mode="light"] .i-sun,
.theme-toggle[data-mode="dark"] .i-moon { display: none; }

/* Footer link: full-size tap target on phones */
.site-footer .wrap { align-items: center; }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Top */
.hero { padding: 36px 0 var(--s6); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero p { font-size: 1.125rem; margin-left: auto; margin-right: auto; }
.hero .btn-row { justify-content: center; }

/* Projects: equal cards with a picture on top */
@media (min-width: 640px) { .projects { grid-template-columns: 1fr 1fr; } }
.projects .card { padding: 0; overflow: hidden; }
.thumb { aspect-ratio: 16 / 9; background: var(--surface); border-bottom: var(--border); overflow: hidden; }
.thumb img, .thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.projects .txt { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card .go { margin-top: auto; color: var(--accent); font-size: var(--size-small); font-weight: 600; }
.pill.feat { color: var(--accent); background: var(--accent-tint); }

/* Video card: picture + play button, swapped for the YouTube player on click */
.thumb.video .play { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: pointer; }
.thumb.video .play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .6); color: #fff; transition: background .15s;
}
.play-icon svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.thumb.video .play:hover .play-icon { background: var(--accent); color: var(--accent-ink); }
a.go { text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); margin: -12px 0; width: fit-content; }
a.go:hover { text-decoration: underline; }

/* Keep in touch */
.subscribe .sub-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.subscribe .sub-row input { flex: 1 1 220px; min-width: 0; }
.subscribe .sub-row .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .subscribe .sub-row .btn { flex: 1 1 100%; } }
.subscribe .btn:disabled { opacity: .7; cursor: wait; }

/* Stuff I like to talk about */
.likes {
  display: grid; gap: var(--s3); list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.likes li {
  display: flex; align-items: center; gap: var(--s3);
  border: var(--border); border-radius: var(--radius); background: var(--bg);
  padding: var(--s3) var(--s4); font-weight: 600;
}
.likes .ico { font-size: 1.5rem; line-height: 1; }
