/* Rent-a-Virgo: graph paper, a sharpened pencil, and one red pen */
@font-face { font-family: "Kalam"; src: url("fonts/kalam-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #ffffff;
  --grid: #e3eef8;
  --ink: #22303c;
  --muted: #53636f;
  --pen: #d93a73;        /* the red pen */
  --pen-dark: #b62a5d;
  --blue: #1d6fb8;       /* the logo's blue pencil */
  --check: #1f9d55;
  --surface: #f3f8fd;
  --line: #cfe3f3;
  --note: #fff6c9;       /* sticky note */
  --footer: #22303c;
  --hand: "Kalam", "Comic Sans MS", cursive;
  --body: "Montserrat", system-ui, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: #fff; padding: .5rem 1rem; }
.skip:focus { left: .5rem; }

/* header */
.site-header { background: #fff; border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { display: block; line-height: 0; }
.brand img { width: min(270px, 64vw); height: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: .96rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--pen); }

/* the red pen */
.pen { font-family: var(--hand); font-weight: 700; color: var(--pen); }
del.struck { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; color: inherit; }
ins.fix { text-decoration: none; font-family: var(--hand); font-weight: 700; color: var(--pen); display: inline-block; transform: rotate(-3deg) translateY(-.35em); margin-left: .15em; }

/* hero */
.hero { padding-block: clamp(2.6rem, 7vw, 5rem) clamp(2.4rem, 6vw, 4.2rem); }
.hero .kicker { font-family: var(--hand); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 .5rem; }
.hero h1, .page-title {
  font-family: var(--hand); font-weight: 700; line-height: 1.04;
  font-size: clamp(2.5rem, 7vw, 4.6rem); margin: 0 0 1.2rem; max-width: 16ch; text-wrap: balance;
}
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 20ch; }
.lede { font-size: 1.18rem; max-width: 38rem; margin: 0 0 1.6rem; }
.lede:last-child { margin-bottom: 0; }

.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checks li { position: relative; padding-left: 2.1rem; margin-bottom: .55rem; }
.checks li::before { content: "\2713"; position: absolute; left: .1rem; top: -.15rem; font-family: var(--hand); font-weight: 700; font-size: 1.4rem; color: var(--check); }
.checks.boxes li::before { content: ""; top: .3rem; width: 1.15rem; height: 1.15rem; border: 2px solid var(--ink); border-radius: 3px; background: #fff; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; border-radius: 6px; border: 2px solid var(--pen); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--pen); color: #fff; }
.btn.primary:hover { background: var(--pen-dark); border-color: var(--pen-dark); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }

/* sections */
.section { padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.section.alt { background: rgba(243, 248, 253, .94); border-block: 2px solid var(--line); }
.section h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; max-width: 24ch; text-wrap: balance; }
.section h3 { font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4rem; }
.prose > * { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul:not(.checks) { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.aside-note { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; color: var(--pen); display: inline-block; transform: rotate(-1.5deg); }

/* forms */
.formcard { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: clamp(1.2rem, 3vw, 1.8rem); max-width: 40rem; box-shadow: 6px 6px 0 var(--line); }
.field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--muted); }
.formcard input[type=text], .formcard input[type=email], .formcard input[type=number], .formcard select, .formcard textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink);
  padding: .75rem .85rem; border: 2px solid var(--line); border-radius: 6px; background: #fff;
}
.formcard textarea { min-height: 7rem; resize: vertical; }
.formcard input:focus, .formcard textarea:focus, .formcard select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 111, 184, .2); }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; }
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem .8rem; margin-top: .3rem; }
.traits label { display: flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 2.2rem; cursor: pointer; }
.traits input { width: 1.25rem; height: 1.25rem; accent-color: var(--pen); }
.parody { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }

/* confirmation slip */
.slip { position: relative; background: var(--note); border: 2px solid var(--ink); border-radius: 10px; padding: 1.5rem 1.5rem 1.4rem; max-width: 40rem; box-shadow: 6px 6px 0 rgba(34, 48, 60, .18); transform: rotate(-.6deg); animation: slip-in .45s cubic-bezier(.2, 1.4, .4, 1); }
.slip h3 { font-family: var(--hand); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.1; margin: 0 .2rem .6rem 0; padding-right: 6rem; }
.slip ul { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.slip li { margin-bottom: .35rem; }
.slip .stamp { position: absolute; top: 1rem; right: 1rem; padding: .25rem .6rem; border: 3px solid var(--pen); border-radius: 6px; color: var(--pen); font: 700 1rem/1 var(--body); letter-spacing: .06em; transform: rotate(9deg); background: rgba(255,255,255,.6); }
@keyframes slip-in { from { transform: translateY(16px) rotate(2deg); opacity: 0; } to { transform: rotate(-.6deg); opacity: 1; } }

/* exam 1: the window scene */
.scene { position: relative; width: 100%; max-width: 62rem; aspect-ratio: 1242 / 873; margin: 0 auto; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #333 url("images/scene.webp") center / 100% 100% no-repeat; touch-action: manipulation; }
.scene::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(6px) brightness(.62) grayscale(.8) sepia(.3); -webkit-backdrop-filter: blur(6px) brightness(.62) grayscale(.8) sepia(.3); transition: opacity .6s ease; pointer-events: none; z-index: 2; }
.scene.lit::after { opacity: 0; }
.blind {
  position: absolute; z-index: 1; padding: 0; margin: 0; cursor: pointer;
  width: 16.35%; height: 28.4%;
  border: 0; border-bottom: .55vw solid #262701; border-bottom-width: clamp(3px, .6vw, 8px);
  background: linear-gradient(45deg, #dca 12%, transparent 0, transparent 88%, #dca 0), linear-gradient(135deg, transparent 37%, #a85 0, #a85 63%, transparent 0), linear-gradient(45deg, transparent 37%, #dca 0, #dca 63%, transparent 0) #753;
  background-size: 5px 5px;
  transform-origin: top; transition: transform .45s ease-in;
}
.blind.up { transform: scaleY(.06); }
@media (hover: hover) { .blind:hover { transform: scaleY(.06); } }
.blind:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.scene-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; max-width: 62rem; margin: .8rem auto 0; font-weight: 600; }
.scene-status .pen { font-size: 1.2rem; }

.witness { display: grid; gap: .6rem; max-width: 40rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.witness button { width: 100%; text-align: left; font: 600 1rem/1.35 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: .85rem 1rem; cursor: pointer; }
.witness button:hover { border-color: var(--blue); }
.witness button.picked { border-color: var(--pen); background: #fff0f5; }
.verdict { min-height: 1.6em; max-width: 40rem; margin: 1rem 0 0; font-weight: 600; }

.hintbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; max-width: 46rem; margin-top: 2rem; }
.hintbox p { margin: 0; padding: 1rem 1.2rem; border: 2px solid var(--pen); border-radius: 8px; background: #fff; }
.arrow-btn { border: 0; background: none; padding: .5rem; cursor: pointer; }
.arrow-btn img { display: block; width: clamp(9rem, 24vw, 14rem); transition: transform .45s ease-in, filter .45s ease; }
.arrow-btn[aria-pressed="true"] img { transform: rotate(-80deg) translate(40%, 10%); filter: drop-shadow(1px 1px 8px rgb(183, 243, 255)); }
@media (hover: hover) { .arrow-btn:hover img { transform: rotate(-80deg) translate(40%, 10%); filter: drop-shadow(1px 1px 8px rgb(183, 243, 255)); } }

/* exam 2: proofreading */
.proof { font-size: 1.12rem; line-height: 2.15; background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 1.1rem 1.4rem; max-width: 46rem; }
.proof .w { cursor: pointer; border-radius: 3px; padding: .05em 1px; }
.proof .w:hover, .proof .w:focus-visible { background: #fff3c4; }
.proof .w.found { text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; background: none; cursor: default; }
.proof .fix { font-family: var(--hand); color: var(--pen); font-weight: 700; }
.proof .w.nope { background: #ffe1e1; }
.status { font-weight: 600; min-height: 1.6em; }

/* services table: a table on desktop, cards on phones */
.rates { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.rates th, .rates td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.rates thead th { font-family: var(--hand); font-size: 1.15rem; border-bottom: 2px solid var(--ink); background: var(--surface); }
.rates tbody th { font-weight: 700; white-space: nowrap; }
.rates td:last-child { color: var(--muted); white-space: nowrap; }
.rates tr:last-child > * { border-bottom: 0; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.review { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; }
.review .stars { color: #e0a100; letter-spacing: .1em; font-size: 1.15rem; }
.review blockquote { margin: .4rem 0 .6rem; font-size: 1.05rem; }
.review cite { font-style: normal; color: var(--muted); font-size: .95rem; }
.review.marked { background: var(--note); border-color: var(--ink); transform: rotate(-.5deg); }
.reply { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--muted); font-size: .95rem; }

/* the franchise */
.signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.signs li { border-left: 3px solid var(--pen); padding-left: .9rem; }
.signs b { display: block; font-family: var(--hand); font-size: 1.2rem; line-height: 1.2; }

/* terms */
.legal { counter-reset: v; list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 46rem; }
.legal li { counter-increment: v; margin-bottom: .8rem; padding-left: 3rem; position: relative; }
.legal li::before { content: "\00a7 " counter(v) "."; position: absolute; left: 0; font-weight: 700; color: var(--blue); }

/* footer */
.site-footer { background: var(--footer); color: #d3dee8; padding-block: 2.4rem 2.8rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem 3rem; }
.site-footer p { margin: 0 0 .7rem; }
.site-footer a { color: #fff; }
.site-footer .phone { font-family: var(--hand); font-size: 1.2rem; line-height: 1.35; color: #fff; }

@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; gap: .1rem 1rem; }
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews, .signs { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hintbox { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .arrow-btn { order: -1; height: 10rem; display: grid; place-items: center; }
  .arrow-btn[aria-pressed="true"] img { transform: rotate(-80deg); }
  .rates thead { display: none; }
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; width: 100%; }
  .rates tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .rates tr:last-child { border-bottom: 0; }
  .rates th, .rates td { padding: 0; border: 0; white-space: normal; }
  .rates tbody th { font-family: var(--hand); font-size: 1.25rem; }
  .rates td:last-child { margin-top: .3rem; font-weight: 600; }
  .rates td:last-child::before { content: "Rate: "; }
  .slip h3 { padding-right: 0; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
