/* ===========================
   GANG BOX – THEME
   =========================== */

/* Self-hosted pixel font (Press Start 2P as placeholder)
   Place these in /fonts:

   /fonts/PressStart2P-Regular.woff2
   /fonts/PressStart2P-Regular.woff
   /fonts/PressStart2P-Regular.ttf
*/
@font-face {
  font-family: "Press Start 2P";
  src: url("PressStart2P-Regular.woff2") format("woff2"),
       url("PressStart2P-Regular.woff") format("woff"),
       url("PressStart2P-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* COLOR PALETTE */
:root {
  --gb-orange: #E97824;  /* primary gang box orange */
  --gb-rust:   #B84416;  /* deep rust / emphasis */
  --gb-black:  #1B1B1B;  /* outlines / text */
  --gb-steel:  #6F7C65;  /* steel blue-gray accent */
  --gb-bg:     #F4EFE8;  /* parchment background */

  --gb-border: var(--gb-black);
  --gb-link:   var(--gb-steel);
  --gb-link-hover: var(--gb-orange);
}

/* GLOBAL RESET-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--gb-bg);
  color: var(--gb-black);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
  line-height: 1.5;
}

/* PAGE LAYOUT */
.page {
  min-height: 100vh;
  display: flex;
  border-top: 8px solid var(--gb-black);
  border-bottom: 8px solid var(--gb-black);
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  border-right: 2px solid var(--gb-border);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: var(--gb-bg);
}

.sidebar-header {
  display: flex;
  justify-content: flex-start;
}

.sidebar-logo {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Sidebar nav links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--gb-link);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.sidebar-link:hover {
  color: var(--gb-link-hover);
  border-bottom-color: var(--gb-link-hover);
}

/* Sidebar footer / counter */
.sidebar-footer {
  margin-top: auto;
  font-size: 0.65rem;
  color: var(--gb-steel);
}

.sidebar-divider {
  border-top: 1px solid var(--gb-steel);
  margin-bottom: 0.5rem;
}

.sidebar-counter-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-counter-value {
  margin: 0.15rem 0 0;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 0.7rem;
}

/* MAIN CONTENT */
.content {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===========================
   FLW / SHAKER CARD
   =========================== */

.gb-card {
  max-width: 540px;
  width: 100%;
  background-color: var(--gb-bg);
  border: 2px solid var(--gb-border);
  display: flex;
  flex-direction: column;
}

/* Top orange beam */
.gb-card-accent {
  height: 18px;
  background-color: var(--gb-orange);
  border-bottom: 2px solid var(--gb-border);
}

/* Inner content */
.gb-card-inner {
  padding: 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-card-label {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gb-steel);
}

/* Title: sturdy but simple */
.gb-card-title {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--gb-black);
  margin: 0;
}

/* Body copy: plainspoken & readable */
.gb-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Button: tool-like, not flashy */
.gb-card-button {
  margin-top: 1.1rem;
  align-self: flex-start;
  padding: 0.6rem 1.6rem;
  border-radius: 0;
  border: 2px solid var(--gb-border);
  background-color: var(--gb-rust);
  color: var(--gb-bg);
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.gb-card-button:hover {
  background-color: var(--gb-orange);
}

/* Bottom “rule” – subtle structure reference */
.gb-card-footline {
  height: 18px;
  border-top: 2px solid var(--gb-border);
  border-bottom: 2px solid var(--gb-border);
  background-image: linear-gradient(
    to right,
    transparent 0,
    transparent 4px,
    var(--gb-steel) 4px,
    var(--gb-steel) 5px
  );
  background-size: 8px 2px;
  background-repeat: repeat-x;
}

/* Simple, un-fussy lists inside cards */
.gb-link-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.gb-link-list li + li {
  margin-top: 0.35rem;
}

.gb-link-list a {
  color: var(--gb-link);
  text-decoration: none;
}

.gb-link-list a:hover {
  color: var(--gb-link-hover);
  text-decoration: underline;
}

/* Back link inside long Field Notes entries */
.gb-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gb-link);
  text-decoration: none;
}

.gb-back-link:hover {
  color: var(--gb-link-hover);
  text-decoration: underline;
}

.sidebar-counter-badge {
  display: block;
  margin-top: 0.35rem;
  border: 2px solid var(--gb-black);
  background-color: var(--gb-bg);
  padding: 4px;
  width: 130px;       /* adjust until it feels right */
  height: auto;
}
