:root {
  --bg: #f3f1ec;           /* oat: softer than white, less yellow than cream */
  --text: #1d2327;
  --muted: #5a656c;
  --rule: #dddad2;
  --stone: #3f5866;        /* the blue-grey of the Tormek housing */
  --stone-dark: #2f4450;
  --stone-tint: #e7e4dc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif; font-size: 1.2rem; line-height: 1.55; padding: 2rem 20px 4rem; overflow-x: hidden; }
.page { max-width: 38rem; margin: 0 auto; }
a { color: var(--stone); text-underline-offset: 3px; }

/* Top of every page: the name, then the menu sitting on a line like tabs */
.logo { display: flex; align-items: center; justify-content: center; gap: 0.35em; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 6.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.logo .mark { flex: none; width: 0.95em; height: 0.95em; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.6rem; margin-top: 0.9rem; border-bottom: 1px solid var(--rule); font-size: 1.05rem; font-weight: 600; }
.menu a { color: var(--muted); text-decoration: none; padding: 0.35rem 0 0.55rem; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { color: var(--text); border-bottom-color: var(--stone); }

/* Home page: what, where, the button, and the stamp */
.hero { text-align: center; }
.nowrap { white-space: nowrap; }   /* keeps a hyphenated word on one line */
.where { margin-top: 2rem; font-size: 1.35rem; line-height: 1.4; }
.cta { display: inline-block; margin-top: 1.4rem; background: var(--stone); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.2rem; padding: 0.7rem 1.3rem; border-radius: 6px; }
.cta:hover { background: var(--stone-dark); }
.glance { margin-top: 0.9rem; color: var(--muted); }

.act { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.4rem; }
.act .cta { margin-top: 0; }
.seal { position: relative; flex: none; width: 5.8rem; height: 5.8rem; transform: rotate(-9deg); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal .edge { fill: none; stroke: var(--stone); stroke-width: 2.5; }
.seal .ring { fill: none; stroke: var(--stone); stroke-width: 1.2; }
.seal-text { position: absolute; inset: 0; padding-bottom: 0.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--stone); font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 2.1rem; line-height: 1; }
.seal-text small { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.1rem; }

/* Other pages: the page title under the menu */
.page-title { margin-top: 2.2rem; font-weight: 700; font-size: 1.7rem; line-height: 1.2; }

/* PHOTOS: put the file in photos/ and swap the placeholder div for
   <img class="photo" src="photos/wheel.jpg" alt="A knife on the wheel">
   (links are relative, so the site works at mccarten.ca/sharpening/ and at sharp.mccarten.ca) */
.photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 2.2rem; border-radius: 6px; background: var(--stone-tint); }
/* Videos keep their own shape (tall or square) instead of being cut down to 3:2 */
.photo.portrait, .photo.square { max-width: 26rem; margin-left: auto; margin-right: auto; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1; }
.photo-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 1rem; text-align: center; padding: 1rem; }

section { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); }
h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
section p + p, .intro p + p { margin-top: 0.8rem; }
.intro { margin-top: 1.4rem; }

/* Prices: item on the left, price on the right, any note underneath */
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.price:first-of-type { padding-top: 0; }
.price small { display: block; font-size: 1rem; line-height: 1.4; color: var(--muted); margin-top: 0.15rem; }
.price b { font-weight: 600; font-size: 1.3rem; white-space: nowrap; }
.after { margin-top: 1rem; color: var(--muted); }
.after + .after { margin-top: 0.2rem; }

/* Drop-off steps */
ol { list-style: none; counter-reset: step; }
ol li { counter-increment: step; position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
ol li:last-child { margin-bottom: 0; }
ol li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--stone); }

/* Sharpening page: each step is a heading, a few lines, and sometimes a photo or video */
.step { margin-top: 2.8rem; padding-top: 0; border-top: none; }
.step .photo { margin-top: 0; margin-bottom: 1rem; }
.step h2 { color: var(--stone); margin-bottom: 0.4rem; }

footer { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); text-align: center; }
footer .cta { margin-top: 0; }
footer p { margin-top: 1rem; color: var(--muted); }

@media (min-width: 40rem) {
  body { padding-top: 3.4rem; }
}
