/* Wallspace's own pages: marketing and admin. Student sites never load this.
   Work pinned to a studio wall: paper ground, white cards with a red pin,
   a slight tilt here and there, lots of room. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #141414;
  --ink-2: #4a4740;   /* secondary text: 8.6:1 on paper */
  --red: #ff4a1c;
  --red-text: #c22f08; /* red for small text: 5.3:1 on paper */
  --cobalt: #2f5bff;
  --card: #ffffff;
  --line: #d9d3c6;
  --f-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --shadow: 0 1px 1px rgb(20 20 20 / 0.06), 0 10px 24px -14px rgb(20 20 20 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-body); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); line-height: 0.98; }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.15; }
.h-small { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 22px; }
.label { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 38em; color: var(--ink); }
.majors { margin-top: 14px; font: 500 13px/1.6 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); max-width: 44em; }
.small { font-size: 15px; color: var(--ink-2); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: 600 16px/1 var(--f-body); text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #2b2b2b; }
.btn-big { min-height: 56px; padding: 16px 28px; font-size: 18px; }
.btn-small { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; padding: 10px 2px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Logo and header ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.22em; font: 800 28px/1 var(--f-head); letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.logo-pin { flex-shrink: 0; width: 0.7em; height: 0.7em; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 12px 28px; min-height: 70px; flex-wrap: wrap; }
.top-nav { display: flex; gap: 22px; margin-right: auto; font-weight: 500; }
.top-nav a { text-decoration: none; padding: 8px 0; }
.top-nav a:hover, .top-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.top-cta { display: flex; align-items: center; gap: 16px; }
.signin { font-weight: 500; text-decoration: none; padding: 8px 0; }
.signin:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .top { position: static; }
  .top-in { padding-block: 10px; }
  .top-nav { order: 3; width: 100%; gap: 18px; margin: 0; font-size: 15px; }
  .top-cta { margin-left: auto; }
}

/* ---------- Pinned cards ---------- */
.pin { position: absolute; top: -9px; left: 50%; width: 24px; height: 24px; transform: translateX(-50%); z-index: 2; }
.card { position: relative; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 28px 24px 24px; transform: rotate(var(--tilt, 0deg)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
a:hover > .card, .card:has(> a:hover) { transform: rotate(0deg) translateY(-3px); box-shadow: 0 1px 1px rgb(20 20 20 / 0.06), 0 18px 34px -16px rgb(20 20 20 / 0.4); }
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero h1 { margin-bottom: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }

.hero-wall { position: relative; min-height: 520px; }
.wall-card { position: absolute; width: 62%; padding: 14px 14px 12px; }
.wall-card a { display: block; text-decoration: none; }
.wall-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.wall-shot img { width: 100%; height: 100%; object-fit: cover; }
.wall-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font: 700 16px/1.2 var(--f-head); }
.wall-cap span { font: 500 11px/1.6 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.hero-wall { min-height: 580px; }
.wall-card { width: 54%; }
.wall-1 { left: 4%; top: 0; z-index: 1; }
.wall-2 { right: 0; top: 130px; z-index: 3; }
.wall-3 { left: 0; top: 310px; z-index: 2; }
.wall-3 .wall-shot img { object-position: top; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-wall { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .wall-card { position: relative; width: auto; inset: auto; padding: 8px 8px 6px; }
  .wall-cap span { display: none; }
  .wall-cap { font-size: 13px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: 0 0 clamp(56px, 8vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { max-width: 16em; }
.section-note { max-width: 32em; color: var(--ink-2); }
.band { background: var(--paper-2); padding: clamp(56px, 8vw, 104px) 0; }
.band h2 { margin-bottom: clamp(32px, 4vw, 52px); }
.band-ink { background: var(--ink); color: #f4f1ea; }
.band-ink .label { color: #c9c3b6; }
.band-ink .lede { color: #f4f1ea; }
.band-ink .card .label { color: var(--ink-2); }
.section + .section { padding-top: 0; }
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { margin-bottom: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: none; }
.steps .card { padding: 34px 26px 28px; }
.steps h3 { margin: 14px 0 10px; }
.steps p { color: var(--ink-2); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); font: 800 20px/1 var(--f-head); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* Sample cards */
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 1180px) { .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sample { padding: 14px 14px 20px; }
.sample-link { display: block; text-decoration: none; }
.sample-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.sample-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-text { display: grid; gap: 6px; padding: 18px 6px 0; }
.sample-text .label { margin: 0; }
.sample-name { font: 700 26px/1.05 var(--f-head); letter-spacing: -0.02em; }
.sample-blurb { color: var(--ink-2); }
.sample-meta { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); margin-top: 4px; }
.swatches { display: inline-flex; }
.swatches span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-right: -5px; }
.swatches + span { margin-left: 8px; }
.sample-go { font-weight: 600; margin-top: 8px; color: var(--red-text); }
.sample-link:hover .sample-go { text-decoration: underline; }
.samples-big .sample-shot { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .samples { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .samples-big .sample-shot { aspect-ratio: 4 / 3; } }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why h2 { margin-bottom: 22px; }
.why p + p, .why .chips + p { margin-top: 18px; color: #d9d3c6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { border: 1px solid #5a564e; border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.note { color: var(--ink); padding: 34px 30px 28px; }
.note blockquote { font: 500 20px/1.45 var(--f-body); }
.note-by { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 34px 28px 28px; }
.plan .btn { margin-top: 20px; align-self: flex-start; }
.plan-pick { outline: 3px solid var(--ink); }
.plan-flag { position: absolute; top: 18px; right: 18px; font: 600 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper); padding: 6px 8px; border-radius: 999px; }
.plan-name { font-size: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.plan-amount { font: 800 48px/1 var(--f-head); letter-spacing: -0.03em; }
.plan-per { color: var(--ink-2); }
.plan-setup { font-size: 14px; color: var(--ink-2); min-height: 2.8em; }
.plan-tagline { font-weight: 600; margin-top: 4px; }
.ticks { display: grid; gap: 10px; margin-top: 16px; font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--red-text); border-bottom: 2px solid var(--red-text); transform: rotate(-45deg); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .plan-setup { min-height: 0; } }

/* Compare table */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.compare thead th { font: 700 18px/1.2 var(--f-head); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 34%; }
.compare tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border-radius: 6px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font: 700 19px/1.3 var(--f-head); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font: 500 20px/1 var(--f-body); }
.faq details[open] summary::after { content: '–'; background: var(--red); color: #fff; }
.faq-a { padding: 0 24px 22px; color: var(--ink-2); max-width: 44em; }
.faq-a a { color: var(--ink); }

/* Closing */
.closing { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 9vw, 120px); }
.closing-card { max-width: 720px; margin-inline: auto; text-align: center; padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 56px); }
.closing-card h2 { margin-bottom: 14px; }
.closing-card p { color: var(--ink-2); margin-bottom: 26px; }

/* Legal */
.legal { max-width: 760px; padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 120px); }
.legal h1 { margin-bottom: 26px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 12px; }
.legal p, .legal li { color: #2b2925; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.draft-note { display: inline-block; background: #fff3c4; border: 1px solid #e6cf6e; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin-bottom: 24px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 48px; }
.foot-brand p { margin-top: 12px; color: var(--ink-2); max-width: 26em; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; justify-content: flex-end; font-size: 15px; }
.foot-links a { text-decoration: none; padding: 4px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
@media (max-width: 720px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-links { justify-content: flex-start; } }

/* ---------- Admin ---------- */
.admin { padding: 28px 0 80px; }
.admin h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.admin h2 { font-size: 24px; margin: 44px 0 14px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.admin-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.admin-nav a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 18px 18px 16px; }
.stat b { display: block; font: 800 34px/1 var(--f-head); letter-spacing: -0.02em; margin-top: 8px; }
.stat .label { margin: 0; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.data thead th { font: 600 11px/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: #faf8f3; position: sticky; top: 0; }
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data .mono { font: 12px/1.4 var(--f-mono); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions form { margin: 0; }
.mini { font: 600 12px/1 var(--f-body); padding: 7px 10px; border-radius: 6px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.mini:hover { background: var(--ink); color: #fff; }
.mini.danger { border-color: #b3261e; color: #b3261e; }
.mini.danger:hover { background: #b3261e; color: #fff; }
.tag { display: inline-block; font: 600 11px/1 var(--f-mono); padding: 4px 6px; border-radius: 4px; background: var(--paper-2); }
.tag.published { background: #d7f0dd; } .tag.suspended { background: #f8d4cf; } .tag.flagged { background: #fff0b3; } .tag.building { background: #dce4ff; }
.flash { padding: 12px 16px; border-radius: 6px; background: #d7f0dd; margin: 14px 0; }
.flash.err { background: #f8d4cf; }
.empty { color: var(--ink-2); padding: 14px 0; }
.muted { color: var(--ink-2); }
.wall-1 .wall-cap span { visibility: hidden; }
