/* newhobby.org — laid out like the forum it wants to grow into. */

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --navy: #0F172A;
  --down: #6A5CFF;
  --green: #16A34A;

  --page: #DAE0E6;
  --card: #FFFFFF;
  --card-alt: #F8F9FA;
  --line: #CCCFD1;
  --line-soft: #EDEFF1;
  --ink: #1A1A1B;
  --meta: #7C7C83;
  --link: #0F172A;

  --radius: 4px;
  --gutter: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 52px;
  background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.logo:hover { text-decoration: none; }
.mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; flex: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: ember 3.1s ease-in-out infinite;
}
.logo:hover .mark { transform: scale(1.07); }
.logo:hover .mark svg { animation-duration: .9s; }
.mark svg { width: 18px; height: 18px; display: block; transform-origin: 50% 82%; animation: flicker 3.1s ease-in-out infinite; }

/* the flame never sits still */
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  15%      { transform: scale(.96, 1.07) rotate(-2.5deg); }
  32%      { transform: scale(1.04, .97) rotate(1.8deg); }
  50%      { transform: scale(.98, 1.05) rotate(-1.2deg); }
  68%      { transform: scale(1.03, .98) rotate(2.2deg); }
  84%      { transform: scale(.97, 1.03) rotate(-1.6deg); }
}
@keyframes ember {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50%      { box-shadow: 0 0 14px 1px rgba(249, 115, 22, .55); }
}

/* ---------- catchphrase ---------- */
.tagline {
  display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 0;
  font-size: clamp(16px, 2.1vw, 21px); font-weight: 700; letter-spacing: -.01em; color: #fff;
}
.tagline svg {
  width: 22px; height: 22px; fill: #fff; flex: none;
  transform-origin: 50% 82%; animation: flicker 2.7s ease-in-out infinite;
}
.motto {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important;
  font-weight: 700; color: var(--orange-dark); font-size: 14px;
}
.motto svg { width: 17px; height: 17px; fill: var(--orange); flex: none;
  transform-origin: 50% 82%; animation: flicker 3.4s ease-in-out infinite; }
.footmark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; }
.footmark .mark { width: 26px; height: 26px; }
.footmark .mark svg { width: 15px; height: 15px; }
.footmark em { font-style: normal; color: var(--meta); font-weight: 600; }
.logo b { color: var(--ink); }
.logo span { color: var(--meta); font-weight: 400; }
.searchbar {
  flex: 1 1 auto; max-width: 620px; position: relative;
}
.searchbar input {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card-alt); padding: 0 14px 0 38px; font: inherit; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.searchbar input:hover { background: var(--card); border-color: var(--meta); }
.searchbar input:focus { outline: none; background: var(--card); border-color: var(--orange); }
.searchbar svg { position: absolute; left: 13px; top: 10px; width: 16px; height: 16px; fill: var(--meta); }
.topbar .spacer { flex: 1; }
.topbar .btn { height: 32px; padding: 0 16px; font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--orange);
  background: var(--orange); color: #fff; font: 700 14px/1 var(--sans); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.hollow { background: transparent; color: var(--orange-dark); }
.btn.hollow:hover { background: rgba(249,115,22,.1); color: var(--orange-dark); }
.btn.grey { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.grey:hover { background: var(--card-alt); border-color: var(--meta); color: var(--ink); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- layout ---------- */
.shell {
  max-width: 1040px; margin: 20px auto 40px; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start;
}
.side { display: grid; gap: 16px; position: sticky; top: 68px; }

/* ---------- hero ---------- */
.hero { background: var(--orange); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 24px, transparent 24px 48px);
}
.hero__inner { max-width: 1040px; margin: 0 auto; padding: 46px 16px 52px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; color: #fff; max-width: 17ch; }
.hero p { color: rgba(255,255,255,.94); font-size: clamp(15px, 1.7vw, 18px); max-width: 54ch; margin: 14px 0 0; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn { height: 40px; padding: 0 22px; background: #fff; color: var(--orange-dark); border-color: #fff; }
.hero .btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero .btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.hero .kicker i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blip 2.4s var(--ease) infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- content cards ---------- */
.card { transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.feed .card { margin-bottom: 16px; }
.feed .card:hover { border-color: var(--meta); }
.card__head {
  display: flex; align-items: center; gap: 10px;
}
.card__head .n {
  font-size: 12px; font-weight: 700; opacity: .8; letter-spacing: .04em;
}
.card__head .tag {
  margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; opacity: .75;
}
.card__body h3 { font-size: 17px; margin: 0 0 10px; }
.card__body > p:last-child, .card__body > ul:last-child, .card__body > ol:last-child { margin-bottom: 0; }
.card__body ul, .card__body ol { margin: 0 0 12px; padding-left: 20px; }
.card__body li { margin-bottom: 7px; }
.card__body li:last-child { margin-bottom: 0; }
.card__body hr { border: none; border-top: 1px solid var(--line-soft); margin: 14px 0; }
.card__body em { color: var(--meta); font-style: normal; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); margin: 0;
  transition: transform .2s var(--ease);
}
.steps li:last-child { border-bottom: none; }
.steps li:hover { transform: translateX(3px); }
.steps li::before {
  content: counter(s); font-size: 11px; font-weight: 700; color: #fff; background: var(--orange);
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
}

blockquote {
  margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--orange);
  background: var(--card-alt); color: #3F4247; border-radius: 0 var(--radius) var(--radius) 0;
}

/* code / tree block */
pre.tree {
  background: var(--card-alt); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  margin: 0 0 12px;
}
pre.tree .lvl { color: var(--meta); }
pre.tree mark { background: rgba(249,115,22,.28); color: inherit; padding: 1px 4px; border-radius: 2px; }

/* two column inside a card */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.split > div { padding: 14px 16px; }
.split > div:first-child { border-right: 1px solid var(--line-soft); background: var(--card-alt); }
.split h4 { font-size: 13px; margin-bottom: 8px; }
.split ul, .split ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: #3F4247; }
.split li { margin-bottom: 5px; }

/* chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.chips li {
  font-size: 12px; font-weight: 600; color: #4B5563; background: var(--card-alt);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px; margin: 0;
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.chips li:hover { border-color: var(--orange); color: var(--orange-dark); transform: translateY(-1px); }

/* ---------- roll widget ---------- */
.roll {
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.roll__head { background: var(--card-alt); padding: 8px 14px; font-size: 12px; font-weight: 700; color: var(--meta); border-bottom: 1px solid var(--line-soft); }
.roll__body { padding: 18px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.roll__pick { flex: 1 1 260px; min-width: 0; }
.roll__cat { font-size: 11px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .06em; }
.roll__name { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 3px 0 4px; }
.roll__line { color: var(--meta); font-size: 13.5px; }
.roll.landed .roll__name { animation: land .45s var(--ease); }
@keyframes land { 0% { opacity: .35; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }

/* ---------- sidebar cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card__head { background: var(--orange); color: #fff; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.card__head.plain { background: var(--card-alt); color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.card__body { padding: 14px; font-size: 13.5px; }
.card__body p { margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.stats b { display: block; font-size: 16px; }
.stats span { color: var(--meta); font-size: 12px; }
.metaline { display: flex; align-items: center; gap: 8px; color: var(--meta); font-size: 12.5px; margin-bottom: 12px; }
.metaline svg { width: 16px; height: 16px; fill: var(--meta); flex: none; }

ol.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
ol.rules li { counter-increment: r; border-bottom: 1px solid var(--line-soft); }
ol.rules li:last-child { border-bottom: none; }
ol.rules details summary {
  list-style: none; cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  display: flex; gap: 8px; transition: background .15s var(--ease);
}
ol.rules details summary::-webkit-details-marker { display: none; }
ol.rules details summary::before { content: counter(r) "."; color: var(--meta); font-weight: 700; flex: none; }
ol.rules details summary::after { content: "+"; margin-left: auto; color: var(--meta); font-weight: 400; }
ol.rules details[open] summary::after { content: "–"; }
ol.rules details summary:hover { background: var(--card-alt); }
ol.rules details p { margin: 0; padding: 0 14px 12px 32px; color: var(--meta); font-size: 13px; }

.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line-soft); }
.linklist li:last-child { border-bottom: none; }
.linklist a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; transition: background .15s var(--ease); }
.linklist a:hover { background: var(--card-alt); text-decoration: none; }
.linklist .badge { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); flex: none; }
.linklist small { margin-left: auto; color: var(--meta); font-weight: 400; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--meta); margin-bottom: 5px; }
input[type=email], input[type=text], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; appearance: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--meta); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
textarea { min-height: 92px; resize: vertical; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--meta) 50%), linear-gradient(135deg, var(--meta) 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; padding-right: 34px;
}
.check { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 16px; }
.check input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.check span { font-size: 13px; color: var(--meta); }
.formnote { font-size: 12.5px; color: var(--meta); margin: 12px 0 0; }

/* ---------- short hero (list page) ---------- */
.hero--short .hero__inner { padding-top: 38px; padding-bottom: 42px; }

/* ---------- view bar ---------- */
.viewbar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; display: flex; gap: 10px; align-items: center; margin-bottom: 16px;
  flex-wrap: wrap;
}
.viewtabs { display: flex; gap: 4px; }
.viewtabs button {
  border: none; background: transparent; border-radius: 999px; padding: 8px 16px;
  font: 700 13px/1 var(--sans); color: var(--meta); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.viewtabs button:hover { background: var(--card-alt); color: var(--ink); }
.viewtabs button[aria-selected="true"] { background: var(--orange); color: #fff; }
.filterbox { position: relative; flex: 1 1 180px; min-width: 140px; }
.filterbox svg { position: absolute; left: 11px; top: 9px; width: 15px; height: 15px; fill: var(--meta); }
.filterbox input {
  width: 100%; height: 34px; padding: 0 12px 0 33px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-alt); font: inherit; font-size: 13.5px;
}
.filterbox input:focus { outline: none; border-color: var(--orange); background: var(--card); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.viewbar__count { margin-left: auto; color: var(--meta); font-size: 12px; font-weight: 600; }

/* ---------- A–Z ---------- */
.letter-card .card__head { align-items: baseline; }
.letter { font-size: 17px; font-weight: 700; color: var(--orange-dark); }
.rows { padding: 2px 0; }
.hrow {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft); transition: background .15s var(--ease), padding-left .18s var(--ease);
}
.hrow:last-child { border-bottom: none; }
.hrow:hover { background: var(--card-alt); padding-left: 18px; }
.hrow b { font-size: 14.5px; }
.hrow__line { color: var(--meta); font-size: 13.5px; margin-left: 10px; }
.hrow__cat {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--orange-dark);
  background: rgba(249,115,22,.12); border-radius: 2px; padding: 3px 8px; white-space: nowrap;
}

/* ---------- tree view ---------- */
.treeview { padding: 4px 0 6px; }
details.node { border-bottom: 1px solid var(--line-soft); }
details.node:last-child { border-bottom: none; }
details.node > summary {
  list-style: none; cursor: pointer; padding: 10px 14px; display: flex; align-items: baseline; gap: 10px;
  transition: background .15s var(--ease);
}
details.node > summary::-webkit-details-marker { display: none; }
details.node > summary::before {
  content: "▸"; color: var(--orange); font-size: 10px; flex: none;
  transition: transform .2s var(--ease);
}
details.node[open] > summary::before { transform: rotate(90deg); }
details.node > summary:hover { background: var(--card-alt); }
.node__line { color: var(--meta); font-size: 13px; }
.node__count {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--meta);
  background: var(--card-alt); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 2px 9px; flex: none;
}
.leaves { margin: 0 0 12px; padding: 0 14px 0 46px; list-style: none; }
.leaves li {
  position: relative; padding: 5px 0; font-size: 13.5px; color: #3F4247;
  border-left: 2px solid var(--line-soft); padding-left: 14px; margin: 0;
}
.leaves li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px;
  background: var(--line-soft);
}
.leaves li:hover { border-left-color: var(--orange); color: var(--ink); }

/* ---------- forms ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field small.hint { display: block; margin-top: 5px; font-size: 12px; color: var(--meta); font-weight: 400; }
.formnote.bad { color: #B91C1C; font-weight: 600; }
.mini-signup .field { margin-bottom: 10px; }
.mini-signup .btn { margin-top: 2px; }
.wide-signup .btn { width: auto; }
.card__body form hr { border: none; border-top: 1px solid var(--line-soft); margin: 18px 0; }

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hrow { flex-wrap: wrap; gap: 4px; }
  .hrow__line { margin-left: 0; width: 100%; }
  .hrow__cat { margin-left: 0; }
  .viewbar__count { margin-left: 0; width: 100%; }
}

/* ---------- footer ---------- */
footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 40px; }
footer .inner { max-width: 1040px; margin: 0 auto; padding: 26px 16px 34px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 20px; }
footer h4 { font-size: 12px; color: var(--meta); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
footer a { display: block; padding: 3px 0; font-size: 13.5px; }
footer .fine { color: var(--meta); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line-soft); padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .1s !important; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .searchbar { display: none; }
}
@media (max-width: 620px) {
  .split { grid-template-columns: 1fr; }
  .split > div:first-child { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .community__inner { padding-bottom: 12px; }
  .community .actions { margin-left: 0; width: 100%; }
  .community .actions .btn { flex: 1; }
  .post h2 { font-size: 17px; }
}
