/* The Hook Club developer site. White on black, serif body, monospace headings. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #f0f0f0;
  --black: #0a0a0a;
  --dim: #8a8a8a;
  --rule: #222;
  }

html { font-size: 18px; }

body {
  background: #000;
  color: var(--white);
  font-family: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typing effect (shared by / and /laptop) ---- */

.typed {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #fff; text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
  display: inline-flex; align-items: baseline; line-height: 1.2; min-height: 1.2em;
}
.typed .star { display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.08em; transform: translateY(0.02em); }
.typed .star svg { display: block; width: 100%; height: 100%; fill: #fff; }
.typed .cursor { display: inline-block; width: 0.55em; height: 1.05em; background: #fff; margin-left: 0.08em; transform: translateY(0.15em); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typed .cursor { animation: none; } }

body.home { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; }
body.home .typed { font-size: clamp(1.4rem, 5vw, 4rem); }
.typed-heading { font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* ---- Content pages (e.g. /laptop) ---- */

.page { max-width: 680px; margin: 0 auto; padding: 6rem 2rem; }
.page h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.page h2 { font-weight: 400; font-size: 1.4rem; margin: 3rem 0 1rem; }
.page h2:first-of-type { margin-top: 2.5rem; }
.page .lead { color: var(--dim); font-style: italic; font-size: 1.2rem; margin-bottom: 2.5rem; }
.page p { margin-bottom: 1.25rem; line-height: 1.7; }
.page .note { color: var(--dim); font-size: 0.95rem; }
.page ul { list-style: none; margin-bottom: 1.5rem; }
.page ul li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); color: var(--dim); }
.page ul li strong { color: var(--white); font-weight: 400; }
.page ol { padding-left: 1.3rem; margin-bottom: 1.5rem; }
.page ol li { padding: 0.3rem 0; line-height: 1.6; }
.page a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: #141414; border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; overflow-x: auto; }
pre code { color: var(--white); font-size: 0.85rem; white-space: pre; }

.cmd { position: relative; }
.cmd pre { padding-right: 5rem; }
.copy {
  position: absolute; top: 0.55rem; right: 0.55rem;
  background: #242424; border: 1px solid #333; border-radius: 3px; color: var(--white);
  font-family: inherit; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.copy:hover { background: #2e2e2e; border-color: #555; }
.copy.copied { background: #2e2e2e; border-color: var(--white); }

/* ---- Install table (/laptop) ---- */

.installs { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; }
.installs th { text-align: left; font-weight: 400; color: var(--dim); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 0.75rem 0.5rem 0; border-bottom: 1px solid #333; }
.installs td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
.installs td:first-child { white-space: nowrap; }
.installs td:nth-child(2) { color: var(--dim); }
.installs td:last-child { padding-right: 0; text-align: right; }
.tag { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); border: 1px solid #333; border-radius: 3px; padding: 0.1rem 0.4rem; }
@media (max-width: 600px) { .installs th:last-child, .installs td:last-child { display: none; } }
