/* ZenRec — a sheet of labels on backing paper */
:root {
  --liner: #e9eef2;      /* backing paper the labels sit on */
  --label: #ffffff;      /* label stock */
  --ink: #1d2b44;        /* print ink */
  --slate: #56677d;      /* secondary text */
  --signal: #ffc93c;     /* highlight stock */
  --rule: #c9d3dc;       /* die-cut lines */

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --measure: 66ch;
  --radius-label: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--liner);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 1.25rem;
}
.site-header .mark {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.site-header nav { display: flex; gap: 1.5rem; font-size: 0.975rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

/* Hero: one big die-cut label */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }

.hero-label {
  position: relative;
  background: var(--label);
  border-radius: var(--radius-label);
  padding: clamp(1.75rem, 5vw, 3.75rem);
  max-width: 900px;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(29, 43, 68, 0.45);
  animation: apply 900ms cubic-bezier(.2,.8,.2,1) both;
}
/* inset die-cut line */
.hero-label::before {
  content: ""; position: absolute; inset: 12px;
  border: 1.5px dashed var(--rule); border-radius: calc(var(--radius-label) - 10px);
  pointer-events: none;
}
/* peeled corner */
.hero-label::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--label) 0 50%, var(--liner) 50% 100%);
  border-bottom-right-radius: var(--radius-label);
  box-shadow: -4px -4px 8px -6px rgba(29, 43, 68, 0.35) inset;
}

@keyframes apply {
  from { transform: rotate(-7deg) translateY(-24px); opacity: 0; }
  to   { transform: rotate(-1.5deg) translateY(0); opacity: 1; }
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
}
.hero-label p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0;
}
.hero-meta {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  color: var(--slate); font-size: 0.95rem;
}

/* Section headings */
.section { padding-block: 1rem 4rem; }
.section > h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 0.5rem;
}
.section > .lede { color: var(--slate); max-width: var(--measure); margin: 0 0 2rem; }

/* App labels on the sheet */
.sheet {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.app {
  grid-column: span 3;
  background: var(--label);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.app::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed var(--rule); border-radius: 10px; pointer-events: none;
}
.app.feature { grid-column: span 6; padding: 2.25rem; }
.app.small { grid-column: span 2; }
.group-title {
  grid-column: 1 / -1;
  font-family: var(--display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.01em;
  margin: 1.25rem 0 -0.25rem;
}

.app h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.015em; line-height: 1.1; margin: 0;
}
.app.feature h3 { font-size: clamp(2rem, 4.5vw, 3rem); }
.app p { margin: 0; max-width: 58ch; }
.app .links { margin-top: auto; padding-top: 0.75rem; position: relative; }

.status {
  align-self: flex-start;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--liner); color: var(--ink);
}
.status.live { background: var(--signal); }

/* About + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.split h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  letter-spacing: -0.02em; margin: 0 0 0.75rem;
}
.split p { margin: 0 0 1rem; max-width: 52ch; }
.email {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em;
}

.site-footer {
  border-top: 1.5px dashed var(--rule);
  padding-block: 1.5rem 2.5rem; color: var(--slate); font-size: 0.925rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.site-footer a { color: var(--slate); }

/* Long-form pages (privacy) */
.doc {
  background: var(--label); border-radius: var(--radius-label);
  padding: clamp(1.5rem, 5vw, 3.5rem); margin-block: 1rem 4rem;
}
.doc h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 0.5rem;
}
.doc h2 { font-family: var(--display); font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc .updated { color: var(--slate); margin-bottom: 2rem; }

@media (max-width: 760px) {
  .app, .app.small, .app.feature { grid-column: span 6; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-label { transform: rotate(-1deg); }
  .site-header nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-label { animation: none; }
}

/* Link rows, callout, sub-headings */
.links, .footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.doc h3 { font-family: var(--display); font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
.doc .note {
  background: var(--liner); border-left: 6px solid var(--signal);
  border-radius: 12px; padding: 1rem 1.25rem; margin-block: 1.5rem; max-width: var(--measure);
}
.doc .note p { margin: 0; }
