/* outbeforetwo.com. Warm cream, ink outlines, chunky soft serif headlines, taxi yellow, subway
   tile and a little skyline: a New York family collector shop. */
:root {
  --cream: #FBF3E4;
  --paper: #FFFDF8;
  --ink: #1F1A3D;
  --muted: #4A4566;
  --sky: #BFDFF7;
  --pink: #F7C6D3;
  --taxi: #FFC93C;
  --tomato: #E8462A;
  --green: #1F9D55;
  --blue: #2459C9;
  --line: 2.5px solid var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
h1, h2, h3, .brand-name, .foot-name, .print-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
}
a { color: inherit; }

/* ---- top ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 46px; height: 46px; flex: none; }
.brand-name { font-weight: 900; font-size: 1.35rem; line-height: 1; }
.top-tag { font-size: 0.85rem; font-weight: 700; border: var(--line); border-radius: 999px; padding: 4px 12px; background: var(--paper); white-space: nowrap; }
@media (max-width: 520px) { .top-tag { display: none; } }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 6px 16px 0; padding: 28px 22px 100px;
  display: grid; gap: 28px;
  background: var(--sky); border: var(--line); border-radius: 28px;
}
@media (min-width: 1112px) { .hero { margin-inline: auto; } }
@media (min-width: 760px) { .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 48px 52px 116px; } }
.burst {
  display: inline-grid; place-items: center; width: 108px; height: 108px; margin: 0 0 4px;
  border-radius: 50%; background: var(--taxi); border: var(--line);
  outline: 2px dashed var(--ink); outline-offset: -11px;
  font-weight: 800; font-size: 0.92rem; line-height: 1.1; text-align: center; transform: rotate(-10deg);
}
.burst span { display: block; max-width: 70px; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 4.4rem); line-height: 1.02; font-weight: 900; margin: 0.15em 0 0.3em; }
.hero h1 em { font-style: italic; color: var(--tomato); }
.lede { font-size: 1.14rem; max-width: 34ch; margin: 0; }

.print {
  position: relative; z-index: 1; margin: 0; justify-self: center; width: min(260px, 72vw);
  background: var(--paper); border: var(--line); border-radius: 16px; padding: 12px 12px 14px;
  box-shadow: 8px 8px 0 var(--ink); transform: rotate(3deg);
}
.print img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; background: var(--cream); }
.print figcaption { font-weight: 700; text-align: center; margin-top: 10px; font-size: 0.95rem; }
.print-art {
  aspect-ratio: 5 / 7; border-radius: 8px; padding: 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--pink); border: 2px solid var(--ink);
}
.print-star { font-size: 2.2rem; color: var(--tomato); line-height: 1; }
.print-title { font-weight: 900; font-size: 1.7rem; line-height: 1.05; overflow-wrap: anywhere; }
.print-sub { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 72px; }

/* ---- band ---- */
.band { overflow: hidden; margin: 34px -10px 0; background: var(--tomato); border-block: var(--line); transform: rotate(-1.5deg); }
.band p { margin: 0; padding: 10px 0; white-space: nowrap; color: var(--cream); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; }
.band span { color: var(--taxi); margin: 0 6px; }
@media (prefers-reduced-motion: no-preference) {
  .band p { display: inline-block; animation: drift 38s linear infinite; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* ---- sections ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main h2 { font-size: clamp(1.85rem, 5vw, 2.7rem); font-weight: 900; line-height: 1.08; margin: 0 0 0.45em; }

.about { padding: 56px 4px 24px; text-align: center; }
.about-lede { max-width: 46ch; margin: 0 auto 32px; font-size: 1.1rem; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillars li:last-child { grid-column: 1 / -1; } }
@media (min-width: 980px) { .pillars { grid-template-columns: repeat(5, 1fr); gap: 14px; } .pillars li:last-child { grid-column: auto; } .pillars li { padding: 20px 14px 22px; } }
.pillars li { background: var(--paper); border: var(--line); border-radius: 22px; padding: 22px 20px 24px; }
.pillar-icon svg { width: 66px; height: 66px; }
.pillars h3 { font-size: 1.4rem; font-weight: 800; margin: 0.25em 0 0.15em; }
.pillars p { margin: 0; color: var(--muted); }

/* Subway tile, with the station-sign heading. */
.care {
  margin: 44px 0; border: var(--line); border-radius: 28px; overflow: hidden;
  background-color: #fff;
  background-image: linear-gradient(#ddd6c6 2px, transparent 2px), linear-gradient(90deg, #ddd6c6 2px, transparent 2px);
  background-size: 48px 24px;
}
.care-inner { padding: 40px 18px 44px; text-align: center; }
.care h2 {
  display: inline-block; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 8px 22px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7.5px var(--ink);
}
.tips { list-style: none; margin: 26px auto 0; padding: 0; max-width: 720px; display: grid; gap: 12px; text-align: left; }
.tips li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: var(--line); border-radius: 18px; padding: 16px 18px; }
.dot { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.15rem; }
.dot-green { background: var(--green); }
.dot-red { background: var(--tomato); }
.dot-blue { background: var(--blue); }
.tips h3 { margin: 0 0 2px; font-size: 1.2rem; font-weight: 800; }
.tips p { margin: 0; color: var(--muted); }

.closing { text-align: center; max-width: 640px; margin: 0 auto; padding: 16px 4px 60px; }
.closing p { font-size: 1.1rem; margin: 0; }
.pill {
  display: inline-block; background: var(--taxi); color: var(--ink); font-weight: 800; text-decoration: none;
  border: var(--line); border-radius: 999px; padding: 12px 26px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.pill:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.pill:focus-visible, .brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---- footer ---- */
.checker { height: 22px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--taxi) 0 50%) 0 0 / 22px 22px; border-block: var(--line); }
.foot { text-align: center; padding: 0 0 40px; }
.foot .checker { margin-bottom: 28px; }
.foot-name { font-weight: 900; font-size: 1.6rem; margin: 0; }
.foot p { margin: 0.3em 16px; }
.foot-small { font-size: 0.8rem; color: var(--muted); }

.missing { text-align: center; padding: 80px 16px 100px; }
.missing h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; margin: 0 0 0.3em; }
