/* EmyoT.Fun :: home */

/* ------------------------------------------------------------------- font */

@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/poppins-800.woff2) format('woff2'); }

/* ----------------------------------------------------------------- themes */

:root {
  --bg: #fdfcfa;
  --card: #ffffff;
  --ink: #14161a;
  --ink-soft: #5a626e;
  --ink-faint: #949ca9;
  --line: #ebe7e0;
  --yellow: #ffc933;
  --glass: #d8ecf5;
  --shot-bg: #10151a;
  --shadow: 0 2px 4px rgba(20,22,26,.05), 0 12px 26px rgba(20,22,26,.07);
  --shadow-lift: 0 4px 8px rgba(20,22,26,.06), 0 20px 40px rgba(20,22,26,.13);
  --sans: Poppins, ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #14161b;
  --card: #1c2027;
  --ink: #f2efe9;
  --ink-soft: #a7b0bd;
  --ink-faint: #737d8b;
  --line: #2a2f38;
  --glass: #2b3d49;
  --shadow: 0 2px 4px rgba(0,0,0,.3), 0 12px 26px rgba(0,0,0,.34);
  --shadow-lift: 0 4px 8px rgba(0,0,0,.34), 0 20px 40px rgba(0,0,0,.46);
}

/* System preference applies unless the visitor has chosen explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b;
    --card: #1c2027;
    --ink: #f2efe9;
    --ink-soft: #a7b0bd;
    --ink-faint: #737d8b;
    --line: #2a2f38;
    --glass: #2b3d49;
    --shadow: 0 2px 4px rgba(0,0,0,.3), 0 12px 26px rgba(0,0,0,.34);
    --shadow-lift: 0 4px 8px rgba(0,0,0,.34), 0 20px 40px rgba(0,0,0,.46);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

a { color: inherit; }

/* ----------------------------------------------------------------- topbar */

.topbar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.6px;
}
.wm-name { color: var(--ink); }
.wm-tld { color: var(--ink-faint); }

.flask { width: 30px; height: 30px; overflow: visible; }
.flask-body, .flask-lip {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.flask-fluid { fill: var(--yellow); }
.bubble { fill: var(--bg); opacity: .85; }
/* the flask quietly fizzes on hover */
.wordmark:hover .bubble { animation: rise 1.5s ease-in-out infinite; }
.wordmark:hover .b2 { animation-delay: .35s; }
.wordmark:hover .b3 { animation-delay: .7s; }
@keyframes rise {
  0%   { transform: translateY(0); opacity: .85; }
  70%  { transform: translateY(-5px); opacity: .3; }
  100% { transform: translateY(-7px); opacity: 0; }
}

.theme-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .16s, color .16s, transform .16s;
}
.theme-btn:hover { border-color: var(--ink); color: var(--ink); transform: rotate(-12deg); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root[data-theme="light"] .icon-sun { display: block; }
  :root[data-theme="light"] .icon-moon { display: none; }
}

/* ------------------------------------------------------------------ intro */

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.intro { padding: 54px 0 44px; max-width: 640px; }
.intro h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.4px;
}
.intro p { margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }

/* ------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 34px 26px;
}

.card {
  display: block;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.8,.3,1);
}
.card:hover, .card:focus-visible { transform: translateY(-5px); outline: none; }

.card-shot {
  aspect-ratio: 16 / 10;
  background: var(--shot-bg, #10151a);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}
.card:hover .card-shot { box-shadow: var(--shadow-lift); }
.card:focus-visible .card-shot { box-shadow: 0 0 0 3px var(--accent, var(--yellow)); }
.card-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.card:hover .card-shot img { transform: scale(1.04); }

.card-body { padding: 15px 3px 0; }
.card-row { display: flex; align-items: baseline; gap: 7px; }
.card-row h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.card-ext { font-size: 13px; color: var(--ink-faint); }

.card-kind {
  margin: 2px 0 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent, var(--ink-faint));
}
.card-blurb { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ------------------------------------------------------------------ about */

.about { margin: 76px auto 0; max-width: 560px; text-align: center; }
.about p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.about a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.about a:hover { background: var(--yellow); color: #14161a; }

/* ----------------------------------------------------------------- footer */

.site-foot {
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 24px 24px 48px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13.5px;
}
.site-foot a:hover { color: var(--ink); }
.foot-sep { margin: 0 8px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 620px) {
  .intro { padding: 38px 0 32px; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
}

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