/* ==========================================================================
   FILE:   public_html/assets/style.css
   FULL:   /home/u563555455/domains/hankbronkowski.com/public_html/assets/style.css
   DEPLOY: SFTP as normal
   ==========================================================================
   Palette sampled directly from banner.png and logo.png.
   Oswald for headings (matches the compressed caps in the logo lockup),
   Courier Prime for verse — a poet who bangs it out on a manual typewriter.
   ========================================================================== */

:root {
  --void:    #0a0807;   /* page                       */
  --pitch:   #060605;   /* deepest, behind the hero   */
  --panel:   #121009;   /* cards                      */
  --panel-2: #191510;   /* card hover                 */
  --ash:     #2a231c;   /* rules and borders          */

  --cream:   #f3e6c5;   /* headings, sampled from logo   */
  --paper:   #cabfa4;   /* body copy                     */
  --muted:   #8a7c66;   /* meta, dates                   */

  --blood:   #9f3e28;   /* brand red, sampled from logo  */
  --blood-lit: #c04d31;
  --ember:   #b16435;   /* neon sign in the banner       */
  --whiskey: #5c3523;

  --head:  "Oswald", "Arial Narrow", Impact, sans-serif;
  --verse: "Courier Prime", "Courier New", Courier, monospace;

  --good:    #6f8f4e;

  --shell: 60rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--verse);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--blood-lit); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 40;
  background: var(--blood); color: var(--cream);
  padding: .55rem .9rem; font-family: var(--head); letter-spacing: .1em;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.5rem; }

/* --- Grain. The one atmospheric effect; everything else stays flat. ------- */

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Top bar -------------------------------------------------------------- */

.topbar {
  position: relative; z-index: 3;
  background: var(--pitch);
  border-bottom: 1px solid var(--ash);
}

.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem;
}

.brand { display: block; line-height: 0; }
.brand__logo { width: auto; height: 54px; }

.nav { display: flex; gap: 1.5rem; }

.nav__link {
  font-family: var(--head); font-weight: 600;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding-bottom: .25rem; border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--cream); }
.nav__link.is-current { color: var(--blood-lit); border-bottom-color: var(--blood); }

/* --- Hero ----------------------------------------------------------------- */

.hero { position: relative; z-index: 2; background: var(--pitch); }
.hero__img { width: 100%; }

.hero__blurb {
  max-width: var(--shell); margin: 0 auto; padding: 1.25rem 1.5rem 1.5rem;
  font-family: var(--head); font-weight: 400;
  font-size: clamp(.95rem, 2.4vw, 1.15rem);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

/* --- Type helpers --------------------------------------------------------- */

.eyebrow {
  font-family: var(--head); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--blood-lit); margin: 0 0 .5rem;
}

.plainlink { font-size: .9em; }

/* A rule with the section name notched into it. */
.rule {
  position: relative; margin: 4.5rem 0 2rem; text-align: center;
  font-family: var(--head); font-weight: 600; font-size: .78rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.rule::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--ash);
}
.rule span { position: relative; background: var(--void); padding: 0 1.25rem; }

/* --- Verse: the whole reason the site exists ------------------------------ */

.verse {
  font-family: var(--verse);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--paper);
}

.verse .stanza { margin: 0 0 1.9rem; }
.verse .stanza:last-child { margin-bottom: 0; }
.verse .ln {
  display: block;
  padding-left: calc(var(--ind, 0ch) + 1.85em);
  text-indent: -1.85em;
}
.verse em { color: var(--cream); font-style: italic; }
.verse strong { color: var(--cream); font-weight: 700; }

.verse--lead { font-size: 1.12rem; }

/* Quotes get set big and loud instead of typed. */
.lead--quote .verse,
.piece--quote .verse {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--cream);
  text-transform: uppercase;
}
.lead--quote .verse .stanza,
.piece--quote .verse .stanza { margin-bottom: 1.1rem; }

/* --- Lead piece on the front page ----------------------------------------- */

.lead {
  position: relative;
  margin-top: 3.5rem;
  padding: 2.5rem 2rem 2rem;
  background: var(--panel);
  border: 1px solid var(--ash);
  border-left: 4px solid var(--blood);
}

.lead__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
  margin: 0 0 1.5rem; color: var(--cream);
}
.lead__title a { color: inherit; text-decoration: none; }
.lead__title a:hover { color: var(--blood-lit); }

.lead__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--ash);
}

.stamp {
  font-family: var(--head); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-right: .5rem;
}

/* --- Card stack ----------------------------------------------------------- */

.stack { list-style: none; margin: 0; padding: 0; }

.card {
  border-bottom: 1px solid var(--ash);
  transition: background .18s ease;
}
.card:first-child { border-top: 1px solid var(--ash); }
.card:hover { background: var(--panel); }

.card__hit {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.6rem 1.25rem .9rem;
  text-decoration: none; color: inherit;
}
.card__text { display: block; flex: 1 1 auto; }
.card__thumb {
  flex: 0 0 auto; width: 7.5rem; aspect-ratio: 4 / 3;
  object-fit: cover; border: 1px solid var(--ash);
}

.card__title {
  font-family: var(--head); font-weight: 600;
  font-size: 1.5rem; line-height: 1.08; text-transform: uppercase;
  margin: 0 0 .5rem; color: var(--cream);
}
.card:hover .card__title { color: var(--blood-lit); }

.card__lines { display: block; margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }

.card__date {
  display: block;
  font-family: var(--head); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--whiskey);
}

.card__tags { margin: 0 0 1.1rem; padding-inline: 1.25rem; }

.card--quote .card__lines {
  font-family: var(--head); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--paper);
}

/* --- Tags ----------------------------------------------------------------- */

.tag {
  display: inline-block; margin-right: .35rem;
  font-family: var(--head); font-size: .68rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); border: 1px solid var(--ash);
  padding: .18rem .55rem;
}
.tag:hover { color: var(--cream); border-color: var(--blood); background: var(--blood); }

/* --- Single piece --------------------------------------------------------- */

.piece { max-width: 40rem; margin: 3.5rem auto 0; }

.piece__head { margin-bottom: 2.25rem; }

.piece__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.02; text-transform: uppercase;
  color: var(--cream); margin: 0 0 .6rem;
}

/* The brand's brush bar, rebuilt in CSS under the title. */
.piece__head::after {
  content: ""; display: block; width: 7rem; height: 6px;
  margin-top: 1.1rem; background: var(--blood);
  clip-path: polygon(0 22%, 12% 6%, 34% 30%, 58% 4%, 79% 26%, 100% 10%,
                     100% 78%, 82% 96%, 55% 70%, 30% 100%, 9% 74%, 0 92%);
}

.piece__meta {
  font-family: var(--head); font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}

.piece__foot {
  margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--ash);
}

/* --- Prose (About, notes) ------------------------------------------------- */

.prose { font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4rem; }
.prose strong { color: var(--cream); }
.prose em { color: var(--cream); }

.prose h2, .prose h3 {
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  line-height: 1.06; color: var(--cream); margin: 2.6rem 0 .9rem;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; color: var(--ember); }

.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }

.prose blockquote {
  margin: 1.9rem 0; padding-left: 1.4rem;
  border-left: 3px solid var(--blood); font-style: italic; color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--ash); margin: 2.6rem 0; }

.prose code {
  font-family: var(--verse); font-size: .9em;
  background: var(--panel); color: var(--ember); padding: .1em .35em;
}

/* --- Prev / next ---------------------------------------------------------- */

.adjacent {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between;
  max-width: 40rem; margin: 3.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--ash);
}
.adjacent__link { flex: 1 1 13rem; text-decoration: none; color: var(--paper); }
.adjacent__link--right { text-align: right; }

.adjacent__dir {
  display: block; font-family: var(--head); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--whiskey);
  margin-bottom: .3rem;
}
.adjacent__title {
  display: block; font-family: var(--head); font-weight: 600;
  font-size: 1.1rem; line-height: 1.1; text-transform: uppercase; color: var(--cream);
}
.adjacent__link:hover .adjacent__title { color: var(--blood-lit); }

/* --- Intro (tag pages) ---------------------------------------------------- */

.intro { padding-top: 3.5rem; }
.intro__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  text-transform: uppercase; color: var(--cream); margin: 0 0 .5rem;
}
.intro__meta { margin: 0; color: var(--muted); font-size: .9rem; }

/* --- Shop ----------------------------------------------------------------- */

.goods {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2.5rem 1.75rem;
}
.good { display: flex; flex-direction: column; align-items: flex-start; }

.good__frame {
  align-self: stretch; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--panel); border: 1px solid var(--ash); margin-bottom: 1rem;
}
.good__img { width: 100%; height: 100%; object-fit: cover; }

.good__name {
  font-family: var(--head); font-weight: 600; font-size: 1.15rem;
  line-height: 1.1; text-transform: uppercase; color: var(--cream); margin: 0 0 .4rem;
}
.good__blurb { flex: 1 1 auto; margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); }
.good__price {
  font-family: var(--head); font-size: .9rem; letter-spacing: .1em;
  color: var(--ember); margin: 0 0 .9rem;
}

.buy {
  display: inline-block; font-family: var(--head); font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: .65rem 1.3rem;
  background: var(--blood); color: var(--cream);
}
.buy:hover { background: var(--blood-lit); color: var(--cream); }
.buy--off {
  background: none; color: var(--muted); border: 1px dashed var(--ash);
}

/* --- Pager, empty --------------------------------------------------------- */

.pager {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding-block: 3rem; font-family: var(--head); font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.pager__count { color: var(--muted); }
.pager__link { color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--blood); }
.pager__link:hover { color: var(--blood-lit); }

.empty { max-width: 34rem; padding-block: 5rem; }
.empty__title {
  font-family: var(--head); font-weight: 600; font-size: 1.8rem;
  text-transform: uppercase; color: var(--cream); margin: 0 0 .6rem;
}

/* --- Colophon ------------------------------------------------------------- */

.colophon {
  margin-top: 6rem; background: var(--pitch);
  border-top: 1px solid var(--ash);
}
.colophon__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem; padding-block: 3rem;
}
.colophon__heading {
  font-family: var(--head); font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--blood-lit);
  margin: 0 0 .9rem;
}
.taglist { margin: 0; line-height: 2.2; }
.linklist {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--head); font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.linklist li { margin-bottom: .5rem; }
.linklist a { color: var(--muted); text-decoration: none; }
.linklist a:hover { color: var(--cream); }

.colophon__legal {
  grid-column: 1 / -1; font-size: .78rem; line-height: 1.8; color: var(--whiskey);
  margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--ash);
}

/* --- Images on posts ------------------------------------------------------ */

.shot { display: block; margin: 0 0 1.9rem; border: 1px solid var(--ash); }
.shot--full { margin: 0 0 2.25rem; }
.shot__img { width: 100%; }

/* --- Share ---------------------------------------------------------------- */

.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--ash);
}

/* The lead already draws a rule above its meta line; don't stack a second. */
.lead__foot + .share { border-top: 0; padding-top: 0; margin-top: .9rem; }

.share__label {
  font-family: var(--head); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--whiskey); margin-right: .35rem;
}

.share__link {
  font-family: var(--head); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted); background: none;
  border: 1px solid var(--ash); padding: .28rem .7rem;
  cursor: pointer; font-weight: 400; line-height: inherit;
}
.share__link:hover { color: var(--cream); background: var(--blood); border-color: var(--blood); }
.share__copy.is-done { color: var(--cream); border-color: var(--ember); }

/* --- Backstage door ------------------------------------------------------- */

.backstage {
  grid-column: 1 / -1; display: block; width: max-content;
  margin-top: .5rem; opacity: .22; transition: opacity .2s ease;
}
.backstage:hover, .backstage:focus-visible { opacity: 1; }
.backstage__mark { width: auto; height: 34px; }

/* --- Narrow --------------------------------------------------------------- */

@media (max-width: 46rem) {
  .card__thumb { width: 5rem; }
  .verse { font-size: .95rem; line-height: 1.78; }
  .verse--lead { font-size: 1rem; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .brand__logo { height: 42px; }
  .nav { gap: 1.1rem; flex-wrap: wrap; }
  .lead { padding: 1.75rem 1.25rem 1.5rem; }
  .adjacent__link--right { text-align: left; }
}

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

/* ==========================================================================
   BACKSTAGE
   Only loaded pages under /backstage use these. Kept here rather than in a
   second stylesheet so the site is one CSS file.
   ========================================================================== */

.is-admin { font-family: var(--verse); }

/* --- Bar ------------------------------------------------------------------ */

.adminbar { background: #060605; border-bottom: 1px solid var(--ash); }

.adminbar__inner {
  max-width: 56rem; margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}

.adminbar__brand {
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
}

.adminbar__nav { display: flex; gap: 1.25rem; }
.adminbar__nav a {
  font-family: var(--head); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.adminbar__nav a:hover { color: var(--cream); }

/* --- Shell ---------------------------------------------------------------- */

.admin { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.admin__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem; margin-bottom: 2rem;
}

.admin__h1 {
  font-family: var(--head); font-weight: 600; font-size: 1.7rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--cream);
  margin: 0;
}

.admin__empty { color: var(--muted); }
.linkish { font-family: var(--head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* --- Flash ---------------------------------------------------------------- */

.flash {
  padding: .8rem 1.1rem; margin: 0 0 1.75rem;
  border-left: 3px solid var(--ash); background: var(--panel);
}
.flash--bad  { border-left-color: var(--blood); color: var(--blood-lit); }
.flash--good { border-left-color: var(--good);  color: var(--good); }

/* --- Table ---------------------------------------------------------------- */

.rows { width: 100%; border-collapse: collapse; }

.rows th {
  text-align: left; font-family: var(--head); font-weight: 400;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: 0 .75rem .6rem 0;
  border-bottom: 1px solid var(--ash);
}

.rows td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--ash); vertical-align: top; }
.rows tr:hover td { background: var(--panel); }

.rows__title {
  font-family: var(--head); font-size: 1.05rem; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
}
.rows__title:hover { color: var(--blood-lit); }

.rows__meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.rows__act { white-space: nowrap; text-align: right; }
.rows__act a {
  font-family: var(--head); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; margin-left: .9rem;
}

.pill {
  display: inline-block; margin-left: .5rem; padding: .05rem .45rem;
  font-family: var(--head); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--void); background: var(--ember);
}

/* --- Forms ---------------------------------------------------------------- */

.form { max-width: 44rem; }
.signin { max-width: 22rem; margin: 3rem auto; }

.field { display: block; margin-bottom: 1.6rem; border: 0; padding: 0; }
.field--sub { margin: 1.1rem 0 0; }

.field-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.field-row .field { flex: 1 1 12rem; }

.field__label {
  display: block; font-family: var(--head); font-weight: 600;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); margin-bottom: .4rem; padding: 0;
}

.field__hint { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }

.field__input {
  width: 100%; padding: .65rem .75rem;
  background: var(--panel); color: var(--cream);
  border: 1px solid var(--ash); border-radius: 0;
  font-family: var(--verse); font-size: .95rem; line-height: 1.6;
}
.field__input:focus { border-color: var(--ember); outline: none; }

/* Verse is written here. pre-wrap keeps your line breaks and leading
   indents exactly as typed, but wraps anything wider than the box so there
   is never a horizontal scrollbar. */
.field__input--tall {
  min-height: 22rem; resize: vertical; line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  overflow-x: hidden;
}

.field__file { display: block; margin: .5rem 0; color: var(--muted); font-size: .85rem; }

.current { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.current__img { width: 8rem; height: auto; border: 1px solid var(--ash); display: block; }

.check { font-size: .85rem; color: var(--muted); }

/* --- Buttons -------------------------------------------------------------- */

.form__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.btn {
  display: inline-block; padding: .7rem 1.5rem; border: 0; cursor: pointer;
  background: var(--blood); color: var(--cream);
  font-family: var(--head); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.btn:hover { background: var(--blood-lit); color: var(--cream); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn--danger { background: none; color: var(--muted); border: 1px solid var(--ash); }
.btn--danger:hover { background: var(--blood); color: var(--cream); border-color: var(--blood); }

@media (max-width: 40rem) {
  .rows th:nth-child(3), .rows td:nth-child(3),
  .rows th:nth-child(4), .rows td:nth-child(4) { display: none; }
  .rows__act a { margin-left: .6rem; }
}

.hashout {
  background: var(--panel); border-left: 3px solid var(--blood);
  padding: 1rem; overflow-x: auto; color: var(--cream);
  font-family: var(--verse); font-size: .82rem; word-break: break-all;
}