/* Pip Parade — bold graphic editorial/zine identity. Local fonts, no external CDNs. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #18191b;
  --paper: #fff8e9;
  --cobalt: #2445d8;
  --tomato: #e94e37;
  --lemon: #f4dc4b;
  --teal: #0d675e;
  --periwinkle: #e6e6fb;
  --rule: 3px;
  --rule-thick: 5px;
  --head-font: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono-font: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.55;
}
@media (min-width: 640px) {
  body { font-size: 18px; }
}

h1, h2, h3, h4 {
  font-family: var(--head-font);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 42em; }
a { color: var(--cobalt); text-decoration-thickness: 2px; }
a:hover { color: var(--tomato); }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lemon);
  color: var(--ink);
  padding: 0.6em 1em;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0.5em; top: 0.5em; }

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

.pp-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .pp-wrap { padding-inline: 2rem; }
}

.mono { font-family: var(--mono-font); font-size: 0.8rem; letter-spacing: 0.02em; }

/* ---------- sample notice ---------- */
.sample-notice {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.sample-notice .pp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1em;
  padding-block: 0.5em;
  align-items: center;
  justify-content: space-between;
}
.sample-notice a { color: var(--lemon); }
.sample-notice a:hover { color: var(--tomato); }

/* ---------- header ---------- */
.pp-header {
  border-bottom: var(--rule-thick) solid var(--ink);
  background: var(--paper);
}
.pp-header .pp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  position: relative;
}
.brand {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .tag {
  font-family: var(--mono-font);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.menu-toggle {
  display: none;
  font-family: var(--mono-font);
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.6em 0.9em;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.main-nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 3px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover { color: var(--tomato); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--cobalt); }

@media (max-width: 719px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--rule-thick) solid var(--ink);
    display: none;
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-bottom: 1px solid var(--periwinkle); width: 100%; }
}

/* ---------- footer ---------- */
.pp-footer {
  border-top: var(--rule-thick) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  margin-top: 3rem;
}
.pp-footer .pp-wrap { padding-block: 2rem; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}
.footer-note { font-size: 0.9rem; color: var(--periwinkle); max-width: 38em; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-family: var(--mono-font);
  font-size: 0.82rem;
}
.footer-nav a { color: var(--lemon); }
.pp-footer a { text-decoration-color: currentColor; }

/* ---------- rule / index numbers ---------- */
.rule {
  border: none;
  border-top: var(--rule) solid var(--ink);
  margin: 2.5rem 0;
}
.index-no {
  font-family: var(--mono-font);
  font-size: 0.78rem;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 0.3em;
}
.tile {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tile.tomato { background: var(--tomato); color: var(--paper); }
.tile.lemon { background: var(--lemon); color: var(--ink); }
.tile.teal { background: var(--teal); color: var(--paper); }
.tile.cobalt { background: var(--cobalt); color: var(--paper); }
.offset-tab {
  display: inline-block;
  transform: translateY(-0.4em);
  background: var(--lemon);
  padding: 0.1em 0.5em;
  font-family: var(--mono-font);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------- masthead / hero ---------- */
.masthead {
  border-bottom: var(--rule-thick) solid var(--ink);
  padding-block: 2.5rem;
  background: var(--periwinkle);
}
.masthead h1 {
  margin: 0;
}
.masthead h1 span {
  display: block;
}
.masthead .eyebrow {
  font-family: var(--mono-font);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.6em;
  color: var(--teal);
}
.masthead p.lede { max-width: 32em; font-size: 1.1rem; }

.lead-feature {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
}
@media (min-width: 860px) {
  .lead-feature { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.lead-feature figure { margin: 0; border: var(--rule) solid var(--ink); }
.lead-feature .lead-caption {
  font-family: var(--mono-font);
  font-size: 0.82rem;
  padding: 0.6em 0;
  color: var(--teal);
}

/* ---------- section heads ---------- */
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { border-bottom: var(--rule) solid var(--ink); display: inline-block; padding-bottom: 0.1em; }

/* ---------- editorial grid (alternating spans) ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 1.25rem;
}
.proj-card {
  grid-column: span 6;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.proj-card:nth-child(odd) { grid-column: span 6; }
@media (min-width: 720px) {
  .proj-grid { grid-template-columns: repeat(6, 1fr); }
  .proj-card:nth-child(4n+1) { grid-column: span 4; }
  .proj-card:nth-child(4n+2) { grid-column: span 2; }
  .proj-card:nth-child(4n+3) { grid-column: span 2; }
  .proj-card:nth-child(4n+4) { grid-column: span 4; }
}
.proj-card figure { margin: 0; border: var(--rule) solid var(--ink); overflow: hidden; background: var(--periwinkle); }
.proj-card img { width: 100%; height: auto; }
.proj-card h3 { margin: 0.6em 0 0.1em; }
.proj-card .meta { font-family: var(--mono-font); font-size: 0.78rem; color: var(--teal); margin: 0; }
.proj-card:hover h3 { text-decoration: underline wavy; }

/* square crop utility for even grids */
.square figure { aspect-ratio: 1 / 1; }
.square img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- practice / path links ---------- */
.path-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.path-card {
  border: var(--rule) solid var(--ink);
  padding: 1.25rem;
  background: var(--paper);
}
.path-card h3 a { text-decoration: none; color: var(--ink); }
.path-card h3 a:hover { color: var(--tomato); }

/* ---------- split CTA ---------- */
.split-cta {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .split-cta { grid-template-columns: 1fr 1fr; }
}
.split-cta > div {
  border: var(--rule-thick) solid var(--ink);
  padding: 1.5rem;
}
.split-cta > div:first-child { background: var(--lemon); }
.split-cta > div:last-child { background: var(--periwinkle); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.75em 1.2em;
  min-height: 44px;
  border: var(--rule) solid var(--ink);
}
.btn:hover { background: var(--tomato); border-color: var(--tomato); color: var(--paper); }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary:hover { background: var(--lemon); border-color: var(--ink); color: var(--ink); }
.text-link { font-weight: 700; }

/* ---------- filters (work page) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  border: var(--rule) solid var(--ink);
  padding: 1rem;
  background: var(--periwinkle);
  margin-bottom: 1.25rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.3em; }
.filter-group label { font-family: var(--mono-font); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
select, input[type="text"], input[type="email"], textarea {
  font-family: var(--body-font);
  font-size: 1rem;
  padding: 0.6em 0.7em;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
}
textarea { min-height: 7em; width: 100%; max-width: 42em; resize: vertical; }
.result-count { font-family: var(--mono-font); font-size: 0.85rem; }
.empty-state { border: var(--rule) dashed var(--ink); padding: 1.25rem; }

/* ---------- project detail ---------- */
.proj-detail {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .proj-detail { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.proj-detail figure { margin: 0; border: var(--rule-thick) solid var(--ink); background: var(--periwinkle); }
.zoom-trigger { border: 0; background: none; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.zoom-hint { font-family: var(--mono-font); font-size: 0.78rem; color: var(--teal); }
.meta-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.meta-table th, .meta-table td { text-align: left; padding: 0.5em 0.6em; border-bottom: 1px solid var(--periwinkle); font-size: 0.95rem; }
.meta-table th { font-family: var(--mono-font); font-weight: 700; width: 40%; }
.invented-note { font-size: 0.85rem; color: var(--teal); }
.proj-nav { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; margin-top: 2rem; flex-wrap: wrap; }
.proj-related { margin-top: 1rem; }

dialog#zoom-dialog {
  border: var(--rule-thick) solid var(--ink);
  padding: 0;
  max-width: 94vw;
  max-height: 90vh;
  background: var(--paper);
}
dialog#zoom-dialog::backdrop { background: rgba(24, 25, 27, 0.75); }
.zoom-inner { position: relative; }
.zoom-inner img { max-width: calc(94vw - 10px); max-height: 86vh; width: auto; height: auto; }
.zoom-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.zoom-close:hover { background: var(--tomato); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.3em; max-width: 42em; }
.field label { font-family: var(--mono-font); font-weight: 700; font-size: 0.85rem; }
.hint { font-weight: 400; color: var(--teal); text-transform: none; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--tomato); }
.error-msg { color: var(--tomato); font-size: 0.85rem; margin: 0; font-weight: 700; }
fieldset { border: var(--rule) solid var(--ink); padding: 1rem; margin: 0 0 1rem; }
fieldset legend { font-family: var(--mono-font); font-weight: 700; padding: 0 0.4em; }
fieldset.error { border-color: var(--tomato); }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.radio-row label { font-family: var(--body-font); font-weight: 400; display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; }
.demo-fields[disabled] { opacity: 0.6; }
.field-errors { border: var(--rule-thick) solid var(--tomato); background: var(--paper); padding: 1rem; margin-bottom: 1rem; font-weight: 700; }
.result { border: var(--rule-thick) solid var(--teal); background: var(--paper); padding: 1.25rem; margin-top: 1.25rem; }
.summary-box {
  font-family: var(--mono-font);
  font-size: 0.85rem;
  white-space: pre-wrap;
  background: var(--periwinkle);
  border: 1px solid var(--ink);
  padding: 1rem;
  overflow-x: auto;
}
.action-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.copy-status { font-size: 0.85rem; min-height: 1.2em; }
.project-context, .reroute-notice {
  border: var(--rule) solid var(--teal);
  background: var(--periwinkle);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--periwinkle); padding: 0.75rem 0; }
summary { font-weight: 700; cursor: pointer; font-family: var(--head-font); }

/* ---------- utility ---------- */
.page-hero { padding-block: 2rem 1.5rem; }
.page-hero h1 { border-bottom: var(--rule) solid var(--ink); display: inline-block; padding-bottom: 0.1em; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 380px) {
  .btn, .main-nav a { font-size: 0.8rem; }
}

/* Verified finishing */
:root{--tomato-ink:#b33122}
a:hover,.main-nav a:hover,.path-card h3 a:hover{color:var(--tomato-ink)}
.sample-notice a:hover{color:var(--tomato)}
.tile.tomato,.btn:hover,.zoom-close:hover{color:var(--ink)}
.error-msg{color:var(--tomato-ink)}
.summary-box{overflow-wrap:anywhere}
.masthead{background:var(--cobalt);color:var(--paper)}
.masthead h1{font-size:clamp(2.6rem,7vw,6.1rem);letter-spacing:-.04em}
.masthead .eyebrow{color:var(--lemon)}
.masthead .btn{background:var(--lemon);color:var(--ink)}
.masthead .btn:hover{background:var(--tomato)}
.pp-footer a{color:var(--lemon)}
.pp-footer a:hover{color:var(--paper)}
.masthead :focus-visible,.sample-notice :focus-visible,.pp-footer :focus-visible,.zoom-close:focus-visible{outline-color:var(--lemon)}
@media(max-width:860px){
  html:not(.js) .menu-toggle{display:none}
  html:not(.js) .pp-header .pp-wrap{flex-wrap:wrap}
  html:not(.js) .main-nav{display:flex;position:static;width:100%;border:0;padding:0;gap:.25rem;flex-direction:column}
}
