/* inkpenstudio.com. Channel pages set --c-accent* inline on <html>; the hub uses the defaults. */
:root {
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --ink: #1b1a17;
  --ink-soft: #4a4740;
  --muted: #7a766c;
  --line: #d9d2c2;
  --accent: var(--c-accent, #b5321f);
  --accent-ink: var(--c-accent-ink, #8f2616);
  --card: #fffdf8;
  --shadow: 0 1px 0 rgba(27,26,23,.06), 0 10px 24px -14px rgba(27,26,23,.35);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15140f;
    --paper-2: #1d1b15;
    --ink: #efe9dc;
    --ink-soft: #cfc8b8;
    --muted: #9a9385;
    --line: #353127;
    --accent: var(--c-accent-dark, #e0553e);
    --accent-ink: var(--c-accent-ink-dark, #f0735f);
    --card: #1f1d17;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 24px -14px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --paper: #15140f; --paper-2: #1d1b15; --ink: #efe9dc; --ink-soft: #cfc8b8; --muted: #9a9385;
  --line: #353127; --accent: var(--c-accent-dark, #e0553e); --accent-ink: var(--c-accent-ink-dark, #f0735f); --card: #1f1d17;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 24px -14px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(27,26,23,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 16px; z-index: 10; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1100px; margin: 0 auto; padding: 1rem 16px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--hand); font-size: 1.7rem; font-weight: 700; }
.brand img { border-radius: 50%; border: 2px solid var(--ink); }
.brand em { font-style: normal; color: var(--accent); }
/* hand-drawn pen nib mark for the studio brand */
.nib { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; border: 2px solid var(--ink); background: var(--accent); transform: rotate(-45deg); position: relative; flex: none; }
.nib::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-color: var(--accent); color: var(--ink); }
.top nav .studio-link { font-family: var(--hand); font-size: 1.15rem; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 3rem; }
section { padding: 2.5rem 0; border-top: 1px dashed var(--line); }
section:first-child { border-top: 0; }

.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; padding-top: 2rem; }
.kicker { font-family: var(--hand); font-size: 1.35rem; color: var(--accent); margin: 0 0 .3rem; }
.kicker a { color: var(--accent); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
.ink { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: 1.15em; white-space: nowrap; position: relative; }
.ink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em;
  background: var(--accent); opacity: .25; border-radius: 999px; transform: rotate(-1.2deg);
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.lede.small { font-size: 1rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .7rem 1.2rem; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; background: var(--card); box-shadow: var(--shadow);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.hero-art { margin: 0; text-align: center; }
.hero-art img {
  width: min(320px, 70vw); height: auto; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--ink); box-shadow: var(--shadow); transform: rotate(-2deg);
}
.hero-art figcaption { font-family: var(--hand); font-size: 1.35rem; color: var(--ink-soft); margin-top: 1rem; }
/* hub: the channel avatars fanned out like a stack of sketches */
.hero-art.stack { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; }
.hero-art.stack img { width: min(200px, 40vw); margin: 0 -1.2rem; }
.hero-art.stack img:nth-child(odd) { transform: rotate(-5deg); }
.hero-art.stack img:nth-child(even) { transform: rotate(4deg) translateY(1.2rem); }
.hero-art.stack figcaption { flex-basis: 100%; margin-top: 1.8rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.section-head:first-child { margin-top: 0; }
.more { font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin: 1rem 0 0; }
.grid.shorts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
}
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--paper-2); }
.shorts .card img { aspect-ratio: 9/14; object-position: center; }
.card h3 { padding: .75rem .9rem 0; font-size: 1rem; }
.card time { padding: .3rem .9rem .85rem; font-size: .85rem; color: var(--muted); margin-top: auto; }
.card .tag { position: absolute; top: .6rem; left: .6rem; background: var(--ink); color: var(--paper); font-family: var(--hand); font-size: 1rem; line-height: 1; padding: .3rem .6rem; border-radius: 999px; }
.card:hover { border-color: var(--accent); }
.card:hover h3 { color: var(--accent-ink); }

.cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cards li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 0; box-shadow: var(--shadow); }
.cards li > a, .cards li > div { display: block; padding: 1rem 1.1rem; color: inherit; text-decoration: none; height: 100%; }
.cards li:hover { border-color: var(--accent); }
.cards li:hover h3 { color: var(--accent-ink); }
.cards li.placeholder:hover { border-color: var(--line); border-left-color: var(--accent); }
.cards li.placeholder:hover h3 { color: inherit; }
.cards h3 { font-family: var(--hand); font-size: 1.5rem; font-weight: 700; margin-bottom: .2rem; }
.cards p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.cards .count { display: block; margin-top: .5rem; font-size: .82rem; color: var(--muted); }

/* hub channel cards: avatar + copy, then a strip of that channel's three newest videos */
.channel-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.channel-cards li > a { display: flex; gap: 1rem; align-items: flex-start; height: auto; }
.channel-cards li > a img { border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.channel-cards h3 { font-size: 1.8rem; }
.grid.mini { grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: 0 1.1rem 1.1rem; margin: 0; }
.grid.mini .card h3 { font-size: .85rem; padding: .5rem .6rem 0; line-height: 1.3; }
.grid.mini .card time { font-size: .75rem; padding: .2rem .6rem .6rem; }
.grid.mini .muted { grid-column: 1 / -1; margin: 0; font-size: .95rem; }

.about p, .contact p { max-width: 68ch; }
.disclaimer { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--line); padding-left: .9rem; }

footer { border-top: 1px solid var(--line); padding: 1.5rem 16px 2.5rem; text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }
footer .fine { margin-top: .5rem; font-size: .85rem; }
footer .fine a { color: var(--muted); }

.series-hero { padding-top: 2rem; border-top: 0; }
.series-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .hero-art.stack img { width: 120px; }
  .top { flex-direction: column; align-items: flex-start; }
  .grid.mini { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
