/* mariasnotes. Layout idea: a clean white page where the real note pages are the
   pictures. Red is used only for actions and the price. */
:root {
  --red: #c8102e;
  --red-dark: #9d0b23;
  --ink: #1d1416;
  --muted: #6f6467;
  --line: #ece4e5;
  --paper: #ffffff;
  --soft: #f8f5f5;
  --hl: #ffe66b;
  --n-blue: #2f6fd0;
  --n-orange: #e8792b;
  --n-green: #3aa55a;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --radius: 16px;
  --shadow:
    0 18px 40px -20px rgba(60, 12, 20, 0.35), 0 2px 6px rgba(60, 12, 20, 0.07);
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 800;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--n-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main > section {
  padding-block: clamp(52px, 7vw, 88px);
}
.head {
  display: grid;
  gap: 8px;
  max-width: 36rem;
  margin-bottom: 28px;
}
.head p {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  padding: 17px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  padding: 11px 18px;
  font-size: 0.94rem;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-white {
  background: #fff;
  color: var(--red-dark);
}
.btn-line {
  border-color: var(--red);
  color: var(--red);
  background: var(--paper);
  min-width: 76px;
}
.btn-line:hover {
  background: var(--red);
  color: #fff;
}
.btn-line-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-line-light:hover {
  border-color: #fff;
}

/* Header: key points + nav */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.keys {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 34px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 9px var(--gutter);
}
.keys li,
.ticks li,
.creds li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.keys li::before,
.ticks li::before,
.creds li::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.keys li::before {
  color: var(--hl);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}
.logo {
  font: 800 1.35rem/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.96rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--ink);
}

/* Hero */
main > .hero {
  padding-block: clamp(36px, 6vw, 72px);
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 800;
}
h1 mark {
  background: linear-gradient(
    transparent 58%,
    var(--hl) 58%,
    var(--hl) 92%,
    transparent 92%
  );
  color: inherit;
  padding-inline: 0.08em;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 0.95;
  max-width: 100%;
}
.paper {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.paper-back {
  width: 56%;
  right: 2%;
  top: 0;
  transform: rotate(5deg);
}
.paper-front {
  width: 86%;
  left: 0;
  top: 25%;
  transform: rotate(-3deg);
}
.polaroid {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33%;
  margin: 0;
  padding: 8px 8px 4px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}
.polaroid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% 20%;
  border-radius: 3px;
  width: 100%;
}
.polaroid figcaption {
  font: 600 1.15rem/1.5 var(--hand);
  text-align: center;
}

/* What you get */
main > .shop {
  background: var(--soft);
}
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}
.catalog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 24px;
  min-width: 0;
}
.cat-head,
.subject,
.cat-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px 84px;
  column-gap: 12px;
  align-items: center;
}
.cat-head {
  padding-block: 14px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-head span:nth-child(2),
.cat-head span:nth-child(3),
.num,
.cat-total span:nth-child(2),
.cat-total span:nth-child(3) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.subject {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.subject h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subject-info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 3px;
}
.num {
  font: 600 1.15rem/1 var(--display);
}
.subject .btn {
  justify-self: end;
}
.topics {
  grid-column: 1 / -1;
  margin-top: 10px;
}
.topics summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  list-style: none;
  display: inline-block;
}
.topics summary::-webkit-details-marker {
  display: none;
}
.topics summary::after {
  content: " +";
}
.topics[open] summary::after {
  content: " –";
}
.topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.topics li {
  font-size: 0.84rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--soft);
}
.cat-total {
  padding-block: 16px;
  border-top: 2px solid var(--ink);
  font-weight: 600;
}
.cat-total span:nth-child(2),
.cat-total span:nth-child(3) {
  font: 800 1.15rem/1 var(--display);
}

.bundle {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 16px;
  background: var(--red);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
}
.badge {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--hl);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
}
.bundle h3 {
  font-size: 1.6rem;
  font-weight: 800;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price s {
  font-size: 1.2rem;
  opacity: 0.7;
}
.price b {
  font: 800 4rem/1 var(--display);
  letter-spacing: -0.03em;
}
.ticks {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Sample pages */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.c-blue {
  background: var(--n-blue);
}
.c-orange {
  background: var(--n-orange);
}
.c-green {
  background: var(--n-green);
}
.c-red {
  background: var(--red);
}
.samples {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.sample {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
}
.sample img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.sample:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cap {
  display: grid;
  line-height: 1.25;
}
.cap b {
  font-size: 0.92rem;
  font-weight: 600;
}
.cap small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Maria */
main > .maria {
  background: var(--soft);
}
.maria-in {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1.05;
}
.ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.ph-a {
  grid-row: 1 / 3;
  object-position: 50% 30%;
}
.ph-c {
  object-position: 50% 15%;
}
.bio {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.bio > p {
  color: var(--muted);
  max-width: 30rem;
}
blockquote {
  margin: 0;
  font: 600 1.5rem/1.25 var(--display);
  letter-spacing: -0.01em;
  padding-left: 18px;
  border-left: 4px solid var(--red);
}
.creds {
  display: grid;
  gap: 9px;
  font-weight: 500;
}
.creds li::before {
  color: var(--red);
}

/* FAQ */
.faq-in {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1;
}
.qa details[open] summary::after {
  content: "–";
}
.qa details p {
  color: var(--muted);
  padding-bottom: 16px;
  max-width: 34rem;
}

/* Footer */
.foot {
  background: var(--ink);
  color: #fff;
  padding-block: 56px 28px;
}
.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--red);
  border-radius: 22px;
  padding: 30px 34px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 36px;
  padding-block: 44px 36px;
}
.foot .logo {
  color: #fff;
}
.foot-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}
.foot-brand p,
.foot-contact p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.foot-links {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 0.95rem;
}
.foot-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}
.foot-links a:hover {
  color: #fff;
}
.foot-contact {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
}
.foot-contact h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Sticky buy bar (phones only) */
.buybar {
  display: none;
}

/* Lightbox + toast */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1100px);
  max-height: 94vh;
  overflow: auto;
  border-radius: 12px;
}
.lightbox::backdrop {
  background: rgba(29, 20, 22, 0.82);
}
.lightbox img {
  width: 100%;
  background: #fff;
}
.lb-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 500;
  z-index: 40;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
}
[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }
  html {
    scroll-padding-top: 96px;
  }
  .nav-links,
  .nav .btn {
    display: none;
  }
  .nav {
    height: 52px;
  }
  .keys {
    gap: 2px 14px;
    font-size: 0.74rem;
    padding-block: 7px;
  }
  .keys li {
    gap: 5px;
  }
  .keys li::before {
    width: 12px;
    height: 12px;
  }
  .hero-in,
  .shop-grid,
  .maria-in,
  .faq-in {
    grid-template-columns: 1fr;
  }
  .hero-in {
    gap: 30px;
  }
  .hero-art {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
  .bundle {
    position: static;
    order: -1;
  }
  .catalog {
    padding-inline: 16px;
  }
  .cat-head,
  .subject,
  .cat-total {
    grid-template-columns: minmax(0, 1fr) 46px 46px 70px;
    column-gap: 8px;
  }
  .btn-line {
    min-width: 66px;
    padding-inline: 12px;
  }
  .samples {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 6px;
  }
  .sample {
    scroll-snap-align: start;
  }
  .maria-in {
    gap: 28px;
  }
  .foot {
    padding-bottom: 100px;
  }
  .foot-cta {
    padding: 26px 22px;
    justify-content: center;
    text-align: center;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .buybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .buybar b {
    font: 800 1.3rem/1 var(--display);
    color: var(--red);
    margin-right: 4px;
  }
  .buybar span {
    font-size: 0.9rem;
    color: var(--muted);
  }
}
@media (max-width: 420px) {
  .cta-row .btn {
    width: 100%;
  }
  .price b {
    font-size: 3.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .sample img {
    transition: none;
  }
}

/* Add-on: call with Maria */
.addon { display: flex; align-items: center; gap: 16px; margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 16px 24px 16px 16px; }
.addon img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: 60% 22%; }
.addon-text { flex: 1; min-width: 0; }
.addon h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.addon p { font-size: .9rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 900px) { .addon { padding: 14px 16px; gap: 12px; } .addon img { width: 48px; height: 48px; } }

/* ---------- Phone layout (overrides) ---------- */
.keys .short, .subject-info .meta { display: none; }
@media (max-width: 900px) {
  html { scroll-padding-top: 66px; }
  main > section { padding-block: 44px; }
  main > .hero { padding-block: 28px 40px; }

  /* Header: the key-point strip scrolls away, only the logo row stays */
  .top { top: -30px; }
  .keys { flex-wrap: nowrap; justify-content: center; gap: 0; height: 30px; padding: 0 12px; font-size: .72rem; align-items: center; white-space: nowrap; }
  .keys .full { display: none; }
  .keys .short { display: inline; }
  .keys li::before { display: none; }
  .keys li + li::before { display: inline-block; content: "·"; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; color: var(--hl); margin-inline: 9px; font-weight: 800; }
  .nav { height: 54px; gap: 12px; }
  .nav-links { display: flex; gap: 18px; font-size: .88rem; }
  .nav-links a:first-child { display: none; }

  h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .lead { font-size: 1.08rem; }
  .hero-art { aspect-ratio: 1 / .9; }

  /* What you get: simple rows, no table columns */
  .bundle { padding: 24px; gap: 14px; }
  .cat-head, .subject .num, .cat-total { display: none; }
  .catalog { padding: 2px 16px; border-radius: 18px; }
  .subject { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding-block: 14px; }
  .subject:first-child { border-top: 0; }
  .subject h3 { font-size: 1.12rem; }
  .subject-info p { font-size: .86rem; }
  .subject-info .meta { display: block; color: var(--ink); font-weight: 600; }
  .addon { border-radius: 18px; }
  .addon h3 { font-size: 1.05rem; }
  .addon p { font-size: .84rem; }

  .samples { grid-auto-columns: 58%; gap: 12px; }
  .photos { aspect-ratio: 1 / .78; }
  blockquote { font-size: 1.3rem; }
  .foot { padding-top: 36px; }
  .foot-cta h2 { font-size: 1.7rem; }
  .foot-cta .btn { width: 100%; }
}
