/* Project pages (/guard, /mandates): built only from the tokens and type in styles.css. */

.p-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.p-hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .p-hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; } }
.p-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.p-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -0.035em; text-wrap: balance; }
.p-sub { font-family: var(--serif); font-weight: 350; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.015em; max-width: 30ch; }
.p-hero-will { justify-self: center; width: min(320px, 60vw); height: auto; }
.p-badge {
  display: inline-block; max-width: 100%;
  padding: 7px 12px; border: 1px solid var(--line);
  font: 500 11px/1.4 var(--sans); font-stretch: 125%; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-600); overflow-wrap: anywhere;
}
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* A link that isn't published yet: same footprint as the link, clearly inert. */
.is-soon { cursor: default; opacity: .55; }
.btn.is-soon:hover { background: inherit; color: inherit; }
.is-soon::after { content: " · Coming soon"; font-size: .9em; }
.btn.is-soon::after { content: "· Soon"; }

.p-section { padding-block: clamp(64px, 9vw, 128px); }
.p-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 60ch; }
.p-head h2 { font-size: clamp(30px, 4vw, 52px); }
.p-prose { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; font-size: 17px; color: var(--ink); }
.dark .p-prose { color: var(--paper); }
.p-prose a, .p-cards a:not(.btn), .p-list a { text-underline-offset: 3px; }

.p-quote {
  margin-top: 32px; padding-left: 24px; border-left: 3px solid var(--world);
  font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em;
}

.p-cards { display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .p-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .p-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-cards > li, .p-card { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid currentColor; min-width: 0; }
.p-cards > li:last-child.reaches { border-top: 3px solid var(--world); padding-top: 22px; }
.p-cards h3 { font-size: clamp(22px, 2vw, 26px); }
.p-cards p:not(.label) { color: var(--gray-600); }
.dark .p-cards p:not(.label) { color: var(--muted-ink); }

.p-stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-stats > li { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; background: var(--paper); min-width: 0; }
.p-stat { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.p-stats p:not(.p-stat):not(.label) { color: var(--gray-600); font-size: 15px; }

.p-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.p-strip li { padding: 8px 14px; border: 1px solid var(--line); font-size: 14px; }
.dark .p-strip li { border-color: var(--line-ink); }

.p-list { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.p-list li { padding-left: 20px; position: relative; }
.p-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: currentColor; }

.p-code { position: relative; max-width: 720px; background: var(--ink); color: var(--paper); }
.p-code pre { margin: 0; padding: 24px; overflow-x: auto; font: 400 14px/1.7 var(--mono); }
.p-code .btn { position: absolute; top: 12px; right: 12px; }

/* Submission checklist */
.p-check { border: 1px solid var(--ink); padding: clamp(20px, 3vw, 36px); background: var(--paper); }
.p-check ul { display: flex; flex-direction: column; }
.p-check li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.p-check li::before { content: "○"; color: var(--gray-600); }
.p-check li.is-done::before { content: "✓"; color: var(--world); font-weight: 600; }
.check-state { font: 500 11px/1.4 var(--sans); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-600); }
.p-check li.is-done .check-state { color: var(--world); }

/* Step flow diagram (stacks on phones) */
.p-flow { display: grid; gap: 8px; counter-reset: step; }
@media (min-width: 1040px) { .p-flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.p-flow li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.p-flow li::before { content: counter(step, decimal-leading-zero); font: 500 11px/1 var(--mono); color: var(--gray-600); }
.p-flow li.reaches { border-color: var(--world); }

details.p-details { border-top: 1px solid var(--line); padding-block: 16px; max-width: 72ch; }
details.p-details summary { cursor: pointer; font-weight: 500; }
details.p-details[open] summary { margin-bottom: 12px; }
.p-mono { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* Home: HackYeah 2026 cards */
.hy-cards { display: grid; gap: 24px; }
@media (min-width: 760px) { .hy-cards { grid-template-columns: 1fr 1fr; } }
.hy-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--ink); text-decoration: none; background: var(--paper); transition: border-color .2s var(--ease); }
.hy-card:hover { border-color: var(--world); }
.hy-card h3 { font-size: clamp(28px, 3vw, 40px); }
.hy-card p:not(.label) { color: var(--gray-600); }
.hy-card .link-arrow { margin-top: auto; }
