/* omzsi.com — shared styles for every page */
:root {
  --paper: #fdfcfa;
  --ink: #141414;
  --muted: #6f6f6f;
  --rule: #e8e8e6;
  --tape: rgba(255, 226, 110, 0.72);
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
p { margin: 0 0 1rem; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* Handwriting */
.hand { font-family: var(--hand); font-weight: 500; }
.handle {
  font: 500 1.5rem/1 var(--hand);
  color: var(--muted);
  margin: 0 0 0.5rem;
}
h1 {
  margin: 0 0 1.25rem;
  font: 800 clamp(3rem, 9vw, 5.25rem)/0.95 var(--sans);
  letter-spacing: -0.04em;
}
h2 {
  margin: 0 0 2.5rem;
  font: 500 clamp(2rem, 5vw, 2.75rem)/1 var(--hand);
  letter-spacing: 0.01em;
}
h2 .arrow { display: inline-block; margin-left: 0.25rem; transform: rotate(10deg); }
h3 {
  margin: 0 0 0.25rem;
  font: 700 1.5rem/1.2 var(--sans);
  letter-spacing: -0.02em;
}
h3 a { text-decoration-thickness: 2px; text-underline-offset: 0.15em; text-decoration-color: var(--rule); }
h3 a:hover { text-decoration-color: currentColor; }
.lede { font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.01em; }
.meta {
  font: 500 1.25rem/1.2 var(--hand);
  color: var(--muted);
  margin-bottom: 0.875rem;
}
.copy p:last-child { margin-bottom: 0; }
.copy p a { text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; text-decoration-color: var(--rule); }
.copy p a:hover { text-decoration-color: currentColor; }

/* Polaroids */
.polaroid {
  --tilt: 0deg;
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 17rem;
  background: #fff;
  padding: 0.75rem 0.75rem 2.75rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 14px 30px -12px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 24px 44px -14px rgba(0, 0, 0, 0.4);
}
.polaroid::before {
  /* tape */
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 50%;
  width: 5.5rem;
  height: 1.7rem;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(-2.5deg);
}
.photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.photo svg {
  width: 52%;
  height: 52%;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}
.photo.ink { --a: #2a2a2a; --b: #0f0f0f; }
.photo.sunset { --a: #f6b26b; --b: #d9542b; }
.photo.sage { --a: #a7cdb0; --b: #4f8a67; }
.photo.mustard { --a: #ffd96a; --b: #d39b12; }
.photo.sky { --a: #9cc3ec; --b: #3f6fb3; }
.photo.print { aspect-ratio: auto; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.photo.print img { display: block; width: 100%; height: auto; }
figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font: 500 1.75rem/1 var(--hand);
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 3rem 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.hero .polaroid { --tilt: 4deg; justify-self: end; margin-top: 1rem; }
.hero-text p { max-width: 34rem; }

/* Wall */
.wall { padding-top: 1rem; }
.row {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  padding: 2.5rem 0;
}
.row + .row { border-top: 1px dashed var(--rule); }
.row .copy p { max-width: 36rem; }
.row:nth-of-type(odd) > .polaroid { --tilt: -3deg; }
.row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 17rem; }
.row:nth-of-type(even) > .polaroid { --tilt: 2.5deg; order: 2; justify-self: end; }

/* A cluster of prints for the flagship */
.row.cluster-row { grid-template-columns: 28rem minmax(0, 1fr); gap: 2.5rem 3rem; }
.row.cluster-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 28rem; }
.row:nth-of-type(even) .cluster { order: 2; }
.cluster { padding: 0.75rem 0.5rem 0; }
.prints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.25rem;
  align-items: start;
}
.cluster .polaroid { max-width: none; padding: 0.5rem 0.5rem 2rem; }
.cluster .polaroid::before { width: 4rem; height: 1.3rem; top: -0.65rem; }
.cluster figcaption { font-size: 1.2rem; margin-top: 0.7rem; }
.cluster .polaroid:nth-child(3) { margin-top: -0.75rem; }
.cluster .polaroid:nth-child(4) { margin-top: 0.5rem; }
.note {
  margin: 1.75rem 0 0;
  text-align: center;
  font: 500 1.2rem/1.2 var(--hand);
  color: var(--muted);
}

/* A pinned card */
.pinned {
  position: relative;
  max-width: 32rem;
  margin: 4rem auto 0;
  padding: 1.75rem 2rem;
  background: #fffdf4;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 14px 30px -12px rgba(0, 0, 0, 0.3);
  transform: rotate(-1.2deg);
}
.pinned::before {
  /* the pin */
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7b6b, #b5261a 70%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}
.pinned h3 {
  margin: 0 0 0.75rem;
  font: 500 1.9rem/1 var(--hand);
  letter-spacing: 0.01em;
}
.pinned p { margin-bottom: 0.75rem; }
.pinned p:last-child { margin-bottom: 0; }
.pinned a { text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; text-decoration-color: var(--rule); }
.pinned a:hover { text-decoration-color: currentColor; }

.more { margin-top: 0.75rem; font: 500 1.35rem/1 var(--hand); }
.more a { text-decoration-color: var(--rule); }
.more a:hover { text-decoration-color: currentColor; }

/* Find me */
.find { margin-top: 5rem; padding-top: 3rem; border-top: 1px dashed var(--rule); }
.find h2 { margin-bottom: 0.5rem; }
.find > p { color: var(--muted); margin-bottom: 1.75rem; }
.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stickers a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 2px 0 var(--ink);
  transform: rotate(var(--tilt));
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.stickers li:nth-child(1) a { --tilt: -2deg; }
.stickers li:nth-child(2) a { --tilt: 1.5deg; }
.stickers li:nth-child(3) a { --tilt: -1deg; }
.stickers li:nth-child(4) a { --tilt: 2deg; }
.stickers li:nth-child(5) a { --tilt: -1.5deg; }
.stickers a:hover { background: var(--ink); color: #fff; transform: rotate(0deg) translateY(-2px); }

footer {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  font: 500 1.25rem/1 var(--hand);
  color: var(--muted);
}

@media (max-width: 44rem) {
  main { padding-top: 3rem; }
  .hero, .row, .row:nth-of-type(even), .row.cluster-row, .row.cluster-row:nth-of-type(even) { grid-template-columns: 1fr; }
  .cluster, .row:nth-of-type(even) .cluster { order: 0; justify-self: center; width: 100%; max-width: 24rem; }
  .prints { gap: 1.75rem 1rem; }
  .cluster figcaption { font-size: 1.15rem; }
  .hero .polaroid, .row .polaroid, .row:nth-of-type(even) .polaroid { justify-self: center; order: 0; margin-top: 1.5rem; }
  .hero { margin-bottom: 3.5rem; }
  .row { padding: 2rem 0; }
  .pinned { margin-top: 3rem; padding: 1.5rem 1.25rem; }
  .hero .polaroid { --tilt: 3deg; }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid, .stickers a { transition: none; }
  .polaroid:hover { transform: rotate(var(--tilt)); }
}

/* Print tilts (inline styles are blocked by the CSP) */
.tilt-n40 { --tilt: -4deg; }
.tilt-n30 { --tilt: -3deg; }
.tilt-n25 { --tilt: -2.5deg; }
.tilt-n20 { --tilt: -2deg; }
.tilt-p20 { --tilt: 2deg; }
.tilt-p25 { --tilt: 2.5deg; }
.tilt-p30 { --tilt: 3deg; }
.tilt-p35 { --tilt: 3.5deg; }

/* Project page */
/* Project page extras */
.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font: 500 1.4rem/1 var(--hand);
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.hero h1 { margin-bottom: 0.5rem; }
.tagline {
  margin: 0 0 1.25rem;
  font: 500 clamp(1.6rem, 4vw, 2.1rem)/1.1 var(--hand);
  color: var(--muted);
}
.hero .polaroid { --tilt: 3deg; }
.steps .row { padding: 3rem 0; }
.step-no {
  display: block;
  margin-bottom: 0.25rem;
  font: 500 1.4rem/1 var(--hand);
  color: var(--muted);
}
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; align-items: start; }
.duo .polaroid { max-width: none; padding: 0.5rem 0.5rem 2rem; }
.duo .polaroid::before { width: 4rem; height: 1.3rem; top: -0.65rem; }
.duo figcaption { font-size: 1.2rem; margin-top: 0.7rem; }
.duo .polaroid:nth-child(2) { margin-top: 1.5rem; }
/* an odd print out sits centred under the pair */
.duo .polaroid:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.625rem); margin-top: -0.5rem; }
.row.duo-row { grid-template-columns: 26rem minmax(0, 1fr); gap: 2.5rem 3rem; }
.row.duo-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 26rem; }
.row:nth-of-type(even) .duo { order: 2; }
.pinned.wide { max-width: 36rem; transform: rotate(0.8deg); }
.pinned ul { margin: 0; padding-left: 1.1rem; }
.pinned li { margin-bottom: 0.35rem; }
.cta { margin-top: 1.5rem; }
@media (max-width: 44rem) {
  .row.duo-row, .row.duo-row:nth-of-type(even) { grid-template-columns: 1fr; }
  .duo, .row:nth-of-type(even) .duo { order: 0; justify-self: center; width: 100%; max-width: 24rem; }
  .steps .row { padding: 2.25rem 0; }
}

/* 404 */
.page-404 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.page-404 .polaroid { --tilt: -3deg; }
.photo.blank { background: #ececec; font: 800 5rem/1 var(--sans); color: #c4c4c4; letter-spacing: -0.04em; }
.page-404 p { margin: 0.5rem 0 0; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.mt-5 { margin-top: 5rem; }
