/* Cassi Kaplan — cassikaplan.com — tin can edition */
:root {
  --yellow: #F4C400;
  --blue: #356AAE;
  --orange: #E57C3D;
  --pink: #E797E9;
  --green: #A5D4A0;
  --cream: #FAF5E7;
  --navy: #1F2A55;
  --ink: #000;
  --bw: 3px;                  /* the thick black border */
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 110px) 0; }
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; text-align: center; }
h2 + .lede { margin: 0.9em auto 0; max-width: 40ch; text-align: center; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; }

/* ---------- ticker ---------- */
.ticker { background: var(--blue); color: var(--cream); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; overflow: hidden; white-space: nowrap; padding: 7px 0; }
.ticker__track { display: inline-flex; gap: 0; animation: ticker 40s linear infinite; }
.ticker span { padding: 0 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- header ---------- */
header.top { background: var(--yellow); border-bottom: var(--bw) solid var(--ink); }
header.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 1em; }
header.top .brand { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; white-space: nowrap; }
header.top .right { justify-self: end; }

/* pills */
.pill {
  display: inline-block; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.5em 1.2em; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pill:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

/* tin-can button on a cord */
.cord { position: relative; display: flex; justify-content: center; padding: 1.4em 0; }
.cord::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--bw); background: var(--ink); transform: translateY(-50%); }
.can {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: min(460px, 86vw); padding: 0.75em 2.4em 0.75em 3.2em; background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px; font-weight: 900; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.can::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 16px; border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--cream); }
.can:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { background: var(--yellow); padding-bottom: 0; }
.hero .wrap { position: relative; }
.wordmark { font-family: var(--sans); font-weight: 900; font-size: clamp(64px, 14vw, 196px); line-height: 0.82; letter-spacing: -0.05em; color: var(--blue); text-transform: uppercase; text-align: center; }
.burst { position: absolute; right: 0; top: -2%; width: clamp(120px, 15vw, 210px); aspect-ratio: 1; transform: rotate(10deg); pointer-events: none; }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 22%; font-weight: 900; font-size: clamp(13px, 1.45vw, 21px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; transform: rotate(-16deg); }
.hero .photo { margin: clamp(20px, 3vw, 40px) auto 0; max-width: 1040px; border: var(--bw) solid var(--ink); background: var(--cream); }
.hero .photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%; }
.hero .cord { margin-top: 1em; }

/* ---------- bands ---------- */
.band-orange { background: var(--orange); color: var(--cream); }
.band-blue { background: var(--blue); color: var(--cream); }
.band-blue h2 { color: var(--green); }
.band-yellow { background: var(--yellow); color: var(--ink); }
.band-cream { background: var(--cream); color: var(--ink); }
.band-pink { background: var(--pink); color: var(--ink); }
.band-yellow.ledge, .band-orange.ledge { padding-bottom: 0; }
.band-orange .cord, .band-yellow .cord, .band-pink .cord { margin-top: clamp(40px, 6vw, 80px); }

/* about */
.about .footnote { text-align: center; margin: 0.6em 0 0; font-weight: 700; font-size: clamp(14px, 1.1vw, 17px); letter-spacing: 0.02em; }
.about .bio { margin: 0.9em auto 0; max-width: 34ch; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.22; }

/* work list */
.worklist { margin-top: clamp(32px, 4vw, 56px); border-top: 2px solid rgba(250,245,231,0.5); }
.worklist .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 2em; align-items: baseline; padding: 0.7em 0; border-bottom: 2px solid rgba(250,245,231,0.5); }
.worklist .k { font-weight: 900; font-size: clamp(20px, 1.9vw, 28px); }
.worklist .k a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.worklist .v { font-size: clamp(16px, 1.3vw, 20px); }

/* experience plans */
.plans { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: clamp(32px, 4vw, 56px); max-width: 860px; margin-left: auto; margin-right: auto; }
.plan { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.2em; align-items: start; padding-bottom: clamp(20px, 3vw, 32px); border-bottom: 2px solid var(--ink); }
.plan:last-child { border-bottom: 0; }
.plan svg { width: 72px; height: 72px; display: block; }
.plan .when { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.plan h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; margin: 0.15em 0 0; }
.plan h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* testimonial cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 56px); }
.card { background: var(--yellow); border: var(--bw) solid var(--ink); padding: clamp(22px, 2.6vw, 36px); text-align: center; font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; display: flex; flex-direction: column; justify-content: center; gap: 1em; }
.card .who { font-weight: 900; }

/* thoughts grid */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 56px); }
.thought { background: var(--cream); border: var(--bw) solid var(--ink); padding: clamp(20px, 2vw, 28px); min-height: 200px; display: grid; align-content: space-between; gap: 1em; }
.thought .n { font-family: var(--serif); font-weight: 700; font-size: 28px; }
.thought p { font-weight: 700; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.3; }

/* footer */
footer { background: var(--yellow); border-top: var(--bw) solid var(--ink); padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
footer .brand { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: 1; text-align: center; }
footer .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 2em 0; }
footer .legal { text-align: center; font-size: 13px; font-weight: 700; }

/* project pages */
.project { background: var(--cream); }
.project .grid { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(24px, 3vw, 40px); }
.project .grid img { border: var(--bw) solid var(--ink); margin: 0 auto; width: 100%; max-width: 1035px; }

@media (max-width: 760px) {
  header.top .wrap { grid-template-columns: auto 1fr auto; }
  header.top .brand { text-align: center; font-size: 19px; }
  .cards { grid-template-columns: 1fr; }
  .worklist .row { grid-template-columns: 1fr; gap: 0.15em; }
  .plan { grid-template-columns: 52px minmax(0, 1fr); gap: 0.9em; }
  .plan svg { width: 52px; height: 52px; }
  .burst { width: 104px; top: -16%; right: -3%; }
  .burst span { font-size: 12px; }
  .can { min-width: 0; width: 100%; font-size: 14px; }
  .rail { grid-template-columns: 1fr; }
  .thought { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
