/* Self-hosted fonts */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/courier-prime-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/courier-prime-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/courier-prime-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/permanent-marker-regular.woff2') format('woff2');
}

/* Why The Hype? — single stylesheet
 * Photocopier cut-and-paste aesthetic.
 * No frameworks. No JavaScript. Fonts self-hosted.
 */

:root {
  --bg: #f4efe6;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --accent: #a8321f;
  --rule: #1a1a1a;
  --paper-edge: #e6dfd0;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(17, 17, 17, 0.012) 0,
    rgba(17, 17, 17, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  text-decoration: none;
  font-family: "Courier Prime", monospace;
  z-index: 100;
  border: 2px dashed var(--accent);
}

.skip-link:focus {
  top: 8px;
}

/* Focus rings */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Permanent Marker", "Courier Prime", cursive;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin: 1.6em 0 0.6em;
}

h1 {
  font-size: 2.2rem;
  margin-top: 0.4em;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(17, 17, 17, 0.15);
  transition: color 0.1s linear;
}

a:hover {
  color: var(--accent);
  text-shadow: 1px 1px 0 rgba(168, 50, 31, 0.2);
}

code,
pre,
.mono {
  font-family: "JetBrains Mono", "Courier Prime", monospace;
  font-size: 0.9em;
}

code {
  background: rgba(17, 17, 17, 0.05);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1em;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.08);
}

hr,
.divider {
  border: none;
  height: 24px;
  margin: 32px 0;
  background: transparent;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

/* External link glyph */
.ext-glyph {
  margin-left: 2px;
  font-size: 0.85em;
  color: var(--ink-soft);
}

/* Layout containers */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px 32px;
}

main {
  margin-top: 16px;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 8px;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: "Permanent Marker", cursive;
  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: none;
  text-shadow: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wordmark .dot {
  color: var(--accent);
}

.header-event {
  text-align: right;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.header-event p {
  margin: 0;
}

.header-event-title {
  font-family: "Courier Prime", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.header-event-subtitle {
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.9rem;
}

.site-nav a {
  font-weight: 400;
  text-decoration: none;
  text-shadow: none;
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-nav a.current {
  color: var(--accent);
  text-decoration: underline;
}

/* Bottom nav */
.site-bottom-nav {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 24px 0;
}

.site-bottom-nav .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding: 32px 0 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer a {
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer ul li {
  margin: 0;
}

.site-footer ul li::after {
  content: "·";
  margin-left: 12px;
  color: var(--ink-soft);
}

.site-footer ul li:last-child::after {
  content: "";
  margin: 0;
}

/* Sections */
section {
  margin: 48px 0;
}

section:first-of-type {
  margin-top: 24px;
}

section.hero {
  margin-top: 8px;
}

/* Hero (landing) */
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.05;
  margin: 0 0 8px;
}

.hero .standfirst {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 38ch;
}

/* Manifesto blocks */
.manifesto block {
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.manifesto block p {
  margin: 0;
}

/* Linkmap */
.linkmap {
  margin: 32px 0;
}

.linkmap-item {
  margin: 0 0 20px;
  padding: 0;
}

.linkmap-item a {
  font-family: "Permanent Marker", cursive;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

.linkmap-item .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Flyer box */
.flyer {
  border: 2px solid var(--ink);
  padding: 24px 20px;
  margin: 32px 0;
  background: var(--bg);
  position: relative;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.12);
}

.flyer h2 {
  margin-top: 0;
}

.flyer .small-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Zine block */
.zine-block {
  border: 2px solid var(--ink);
  padding: 24px 20px;
  margin: 16px 0;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.12);
}

.zine-block .issue-title {
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
}

.zine-block .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Inline doodle figures */
figure.doodle {
  margin: 24px auto;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.08);
}

figure.doodle svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

figure.doodle figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 8px;
}

/* Doodle variant: left-aligned (default is centered) */
figure.doodle.doodle-left {
  margin: 24px 0;
}

/* Doodle layout (hero) */
.hero-with-doodle {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hero-header {
  width: 100%;
}

.intro-with-doodle {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-with-doodle {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .hero-with-doodle .doodle-wrap {
    flex: 0 0 auto;
  }
}

/* Tables */
table {
  width: 100%;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}

th {
  border-bottom: 1px solid var(--ink);
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
}

tbody tr {
  border-bottom: 1px dashed var(--ink-soft);
}

tbody tr:last-child {
  border-bottom: none;
}

td:nth-child(2),
td:nth-child(3) {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

/* Definition list for radios */
dl.feed-list {
  margin: 24px 0;
}

dl.feed-list dt {
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
  margin-top: 16px;
}

dl.feed-list dt:first-child {
  margin-top: 0;
}

dl.feed-list dd {
  margin: 4px 0 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Back link */
.back-link {
  margin-top: 48px;
}

/* Verify badge */
.verify {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--accent);
  color: var(--bg);
  padding: 1px 6px;
  margin-left: 4px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  text-decoration: none;
}

/* Footnote sup */
sup.cite {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  margin-left: 1px;
}

sup.cite a {
  text-decoration: none;
}

/* Coming soon pill */
.soon {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--ink);
  color: var(--bg);
  padding: 1px 8px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* Subtle paper grain (CSS-only, very low contrast) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  html {
    font-size: 18px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .page {
    padding: 16px 14px 48px;
  }
  section {
    margin: 16px 0;
  }
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-event {
    text-align: left;
  }
}

/* Tablet/desktop */
@media (min-width: 768px) {
  html {
    font-size: 19px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  body {
    line-height: 1.6;
  }
  section {
    margin: 32px 0;
  }
}

/* Microformats — hidden structured data */
.microformat {
  display: none;
}

/* === SHARE BUTTON === */

.share-widget {
  position: relative;
  display: inline-block;
}

/* No-JS fallback */
.share-noscript {
  margin: 16px 0;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  background: var(--bg);
  font-size: 0.9rem;
  word-break: break-all;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.12);
}

.share-noscript p {
  margin: 0;
}

/* Trigger button */
.share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.15);
  text-transform: lowercase;
  transition: transform 0.1s, box-shadow 0.1s;
}

.share-trigger:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.2);
}

.share-trigger:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.share-trigger.is-open {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.2);
}

.share-icon {
  flex-shrink: 0;
}

/* Panel */
.share-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 260px;
  background: var(--bg);
  border: 2px solid var(--ink);
  padding: 12px;
  box-shadow: 3px 4px 0 rgba(17, 17, 17, 0.12);
}

/* Format tabs */
.share-formats {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 12px;
}

.share-format-btn {
  flex: 1;
  padding: 6px 10px;
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-transform: lowercase;
  transition: color 0.1s, border-color 0.1s;
  margin-bottom: -2px;
}

.share-format-btn:hover {
  color: var(--ink);
}

.share-format-btn.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Action buttons */
.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.15);
  text-transform: lowercase;
  transition: transform 0.1s, box-shadow 0.1s;
}

.share-action-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.2);
}

.share-action-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.share-action-btn[hidden] {
  display: none;
}

/* Toast notification */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(17, 17, 17, 0.2);
  text-transform: lowercase;
}

.share-toast[hidden] {
  display: none;
}

/* Mobile: full-width panel */
@media (max-width: 480px) {
  .share-panel {
    left: -12px;
    right: -12px;
    min-width: 0;
    width: calc(100% + 24px);
  }
}

/* Print: hide share widget */
@media print {
  .share-widget,
  .share-noscript {
    display: none;
  }
}

/* Print */
@media print {
  body {
    background: white;
    color: black;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .nav-skip {
    display: none;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}
