/* ===== MARK PRICE | markrprice.com ========================= */

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

:root {
  --paper:     #f2ece0;
  --paper-2:   #e4ddd0;
  --ink:       #0e0800;
  --ink-mid:   #4a3c28;
  --ink-light: #7a6a52;
  --ink-rule:  #c4baaa;
  --red:       #c42a00;
  --yellow:    #e8c200;
  --serif:     Georgia, "Times New Roman", serif;
  --mono:      'Courier New', Courier, monospace;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Grain - mimeograph texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== SITE HEADER ========================================= */

.site-header {
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}

.site-header-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

/* Site name: serif, bold — the publication title */
.site-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-name:hover { color: var(--red); }

/* Nav: typewritten — Maciunas typed his manifestos */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-light);
  padding: 2px 9px;
  transition: color 0.1s;
  position: relative;
  letter-spacing: 0.03em;
}
.site-nav a + a::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--ink-rule);
  pointer-events: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active {
  color: var(--ink);
  font-weight: bold;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0;
}

/* ===== MAIN CONTENT ======================================== */

.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 32px 100px;
}

/* ===== PAGE HERO =========================================== */

.page-hero {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-rule);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-hero p {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  color: var(--ink-mid);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.page-hero p + p { margin-top: 6px; }

/* ===== SECTION LABELS — rubber stamp marks ================ */
/*
   Tinguely stamped everything. Beuys marked his surfaces.
   Maciunas printed instructional headers. Every section
   marker on this site is a stamp impression.
*/

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 20px;
  opacity: 0.82;
}

/* ===== HOMEPAGE MASTHEAD — Beuys yellow field ============= */
/*
   Beuys worked in ochre and black.
   The field precedes everything.
*/

.home-masthead {
  background: var(--yellow);
  margin: -56px -32px 40px;
  padding: 56px 32px 16px;
  border-bottom: 3px solid var(--ink);
}

.home-masthead-tagline {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 38px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}

.home-masthead-sub { display: none; }

.home-masthead-above {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  opacity: 0.7;
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
}

.home-masthead-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  margin-top: 8px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  display: block;
}

/* ===== HOMEPAGE FEEDS ====================================== */

.feed-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 52px;
  align-items: start;
}

/* Feed panel titles: typewritten headings */
.feed-panel-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 0;
  opacity: 0.82;
}

.feed-item {
  border-bottom: 1px solid var(--ink-rule);
  padding: 14px 0;
}
.feed-item:last-child { border-bottom: none; }

.feed-item a {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: normal;
  color: var(--ink);
  line-height: 1.45;
  display: block;
  transition: color 0.1s;
}
.feed-item a:hover { color: var(--red); }

.feed-item-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.feed-loading {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-light);
  padding: 16px 0;
  letter-spacing: 0.05em;
}

/* ===== PROJECTS =========================================== */

.card-grid { display: flex; flex-direction: column; }

.card {
  border-bottom: 1px solid var(--ink-rule);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card:first-child { border-top: 1px solid var(--ink-rule); }

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
}
.card-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}
.card-desc {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-top: 6px;
}

/* Card tags: red stamp impressions */
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 2px 6px;
  border: 1.5px solid var(--red);
  color: var(--red);
  opacity: 0.8;
}

.empty-state {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-light);
  padding: 20px 0;
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
  letter-spacing: 0.03em;
}

/* Projects section dividers: stamps with spacing */
.projects-section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 8px;
  display: inline-block;
  opacity: 0.82;
  margin: 60px 0 20px;
  scroll-margin-top: 20px;
}

/* ===== NEWS =============================================== */

.news-intro {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 52px;
  font-style: italic;
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

.news-category { margin-bottom: 44px; }

/* News category titles: yellow field — Beuys used chalk on yellow */
.news-category-title {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  margin-bottom: 8px;
}

.news-source { border-bottom: 1px solid var(--ink-rule); padding: 16px 0; }
.news-source:last-child { border-bottom: none; }
.news-source-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.news-source-name a { color: inherit; }
.news-source-name a:hover { color: var(--red); }
.news-source-why { font-size: 14px; color: var(--ink-mid); line-height: 1.65; }

/* ===== ABOUT ============================================== */

.about-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}

/* Photo placeholder: yellow field with mark — Beuys would approve */
.about-photo-placeholder {
  width: 180px;
  height: 180px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-photo { width: 180px; height: 180px; object-fit: cover; border: 2px solid var(--ink); }

.about-text h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 520px;
}

.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  border: 1.5px solid var(--ink-rule);
  padding: 4px 10px;
  transition: border-color 0.15s, color 0.15s;
}
.social-link:hover { border-color: var(--ink); color: var(--ink); }

.social-link--quiet {
  border-color: transparent;
  color: var(--ink-rule);
  font-size: 9px;
}
.social-link--quiet:hover { border-color: var(--ink-rule); color: var(--ink-light); }

.inline-link { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--ink); }

/* ===== ZINES ============================================== */

.zine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }

.zine-card { border: 2px solid var(--ink-rule); overflow: hidden; transition: border-color 0.15s; }
.zine-card:hover { border-color: var(--ink); }
.zine-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--paper-2); }
.zine-cover-placeholder {
  width: 100%; aspect-ratio: 3/4; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-rule);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.zine-info { padding: 12px 14px; border-top: 2px solid var(--ink-rule); }
.zine-title { font-size: 15px; font-weight: 700; font-style: italic; color: var(--ink); margin-bottom: 3px; }
.zine-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-light); letter-spacing: 0.04em; }

/* ===== MARGIN NOTES ======================================= */

.post-list { display: flex; flex-direction: column; }
.post-item { padding: 28px 0; border-bottom: 1px solid var(--ink-rule); }
.post-item:first-child { border-top: 1px solid var(--ink-rule); }

.post-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--red); }
.post-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-light); margin-bottom: 10px; letter-spacing: 0.04em; }
.post-excerpt { font-size: 15px; color: var(--ink-mid); line-height: 1.75; }
.post-read-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  opacity: 0.85;
}

/* ===== FOOTER — colophon =================================== */

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 18px 32px;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  transition: color 0.1s;
}
.footer-social a:hover { color: var(--ink); }

.footer-quiet {
  font-family: var(--mono);
  font-size: 9px;
  color: transparent;
  transition: color 0.3s;
}
.footer-quiet:hover { color: var(--ink-rule); }

/* ===== PAGE PERSONALITIES =================================
   Each page has its own register. The nav is consistent;
   what you find inside is not.
   ========================================================= */

/* NOTES — private notebook, not a blog.
   Left border like a margin annotation. Smaller, closer.
   Beuys kept blackboard notes. These are those notes. */
.page--notes .page-hero {
  border-bottom: none;
  border-left: 3px solid var(--red);
  padding-left: 24px;
  padding-bottom: 0;
  margin-bottom: 44px;
}
.page--notes .page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}
.page--notes .page-hero p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mid);
}
.page--notes .post-item {
  padding: 32px 0;
}
.page--notes .empty-state {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  border: none;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--ink-rule);
}

/* PROJECTS — workshop manifest. Direct. Things being built.
   Tinguely kept lists of parts. Card titles are names, not poems. */
.page--projects .card-title {
  font-style: normal;
  letter-spacing: -0.01em;
}
.page--projects .page-hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
}

/* ZINES — finished objects. Small press. Catalog.
   The title stamped in yellow — these exist, they are real. */
.page--zines .page-hero {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 36px;
}
.page--zines .page-hero h1 {
  display: inline;
  background: var(--yellow);
  padding: 2px 8px 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-size: clamp(44px, 6.5vw, 80px);
}

/* NEWS — editorial. Structured. A reading list you trust.
   Heavier rule, newspaper weight on the header. */
.page--news .page-hero {
  border-bottom: 3px solid var(--ink);
}
.page--news .page-hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  letter-spacing: -0.02em;
}

/* ===== RESPONSIVE ========================================= */

@media (max-width: 640px) {
  .site-header-inner { padding: 14px 20px; gap: 16px; }
  .site-name { font-size: 18px; }
  .site-nav a { padding: 2px 6px; font-size: 10px; }
  .page { padding: 36px 20px 80px; }
  .feed-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-layout { grid-template-columns: 1fr; }
  .site-footer { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .home-masthead {
    margin: -36px -20px 40px;
    padding: 36px 20px 14px;
  }
  .home-masthead-tagline { font-size: clamp(20px, 6vw, 30px); }
}
