/* Mac Cleaner Guide. A magazine-style blog: black serif headlines, a clean sans for reading,
   a near-white page, hairline rules on a 12-column grid, colour photographs, one pink accent. */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --fg: #09090b;
  --dark: #18181b;
  --soft: #475569;
  --line: #e4e4e7;
  --tint: #f1f1f3;
  --accent: #ec4899;
  --accent-text: #be185d;
  --serif: "Libre Bodoni", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 78rem;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 12px; background: var(--fg); color: #fff; padding: 10px 14px; z-index: 20; }
.wrap, .mast, main > section, main > article, .foot-in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.pic { background: var(--tint); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.label { font: 700 0.8125rem/1.3 var(--sans); color: var(--accent-text); letter-spacing: 0.01em; }
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }
.entry-meta { font-size: 0.875rem; line-height: 1.4; color: var(--soft); }
.btn { display: inline-block; background: var(--fg); color: #fff; font: 600 1rem/1 var(--sans); padding: 0.95em 1.3em; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); }
.btn:hover { background: var(--accent-text); }
.btn:active { transform: scale(0.97); }

/* Reading progress, on post pages */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Masthead */
.mast { text-align: center; padding-top: clamp(18px, 2.4vw, 32px); }
.mast-name { display: inline-block; font: 600 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
.mast-name a { text-decoration: none; }
.mast-home .mast-name { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6.25rem); letter-spacing: -0.03em; }
.mast-tag { color: var(--soft); font-size: 1.0625rem; margin-top: 12px; }
.mast nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(6px, 1.6vw, 22px); margin-top: clamp(16px, 2vw, 26px); border-block: 1px solid var(--line); font: 600 0.9375rem/1 var(--sans); }
.mast nav a { padding: 15px 8px; text-decoration: none; position: relative; }
.mast nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.mast nav a:hover::after { transform: scaleX(1); }

/* Featured post */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 44px); align-items: center; padding-top: clamp(28px, 4vw, 56px); }
.featured-pic { grid-column: span 7; display: block; }
.featured-pic .pic { aspect-ratio: 4 / 3; }
.featured-text { grid-column: span 5; }
.featured h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.25rem); margin-top: 14px; }
.featured h2 a, .entry h3 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease); }
.featured h2 a:hover, .entry h3 a:hover { background-size: 100% 2px; }
.featured .standfirst { margin-top: 18px; }
.featured .entry-meta { margin-top: 16px; }
.featured .btn { margin-top: 26px; }
.featured-pic:hover img, .entry:hover .entry-pic img { transform: scale(1.035); }
.standfirst { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: #27272a; }

/* Sections */
.sect { padding-top: clamp(64px, 8vw, 120px); }
.sect-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; padding-bottom: 20px; border-bottom: 2px solid var(--fg); }
.sect-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 600 0.9375rem/1 var(--sans); color: var(--fg); background: var(--card); border: 1px solid var(--line); min-height: 44px; padding: 0 16px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filters button:hover { border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }

/* The feed */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 44px); padding-top: clamp(28px, 4vw, 48px); }
.entry[hidden] { display: none; }
.entry-pic { display: block; }
.entry-pic .pic { aspect-ratio: 3 / 2; }
.entry .label { margin-top: 18px; }
.entry h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.18; margin-top: 8px; }
.entry > p:not(.label):not(.entry-meta) { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: #27272a; }
.entry .entry-meta { margin-top: 12px; }

/* Bytesweep, the publisher's own app */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(64px, 8vw, 120px); padding: clamp(20px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.promo-pic { display: block; }
.promo-pic .pic { aspect-ratio: 1200 / 630; }
.promo h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-top: 10px; }
.promo ul { margin-top: 16px; padding-left: 1.2em; }
.promo li { margin-bottom: 6px; line-height: 1.5; }
.promo li::marker { color: var(--accent-text); }
.promo-price { margin-top: 16px; font-size: 1.0625rem; }
.promo-price b { font: 600 1.5rem/1 var(--serif); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.btn-line:hover { background: var(--fg); color: #fff; }
.promo-note { font-size: 0.875rem; line-height: 1.5; color: var(--soft); margin-top: 14px; }
.promo-side { margin-top: 28px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.promo-side-name { font: 600 1.25rem/1.2 var(--serif); margin-top: 6px; }
.promo-side p:not(.label):not(.promo-side-name) { font-size: 0.9375rem; line-height: 1.5; margin-top: 8px; color: #27272a; }
.promo-side .btn { display: block; text-align: center; margin-top: 14px; }
.promo-side-link { display: block; text-align: center; font-size: 0.9375rem; font-weight: 600; margin-top: 12px; }
.mast nav a.nav-buy { background: var(--fg); color: #fff; padding: 10px 14px; margin: 5px 0 5px 6px; transition: background 0.2s; }
.mast nav a.nav-buy::after { display: none; }
.mast nav a.nav-buy:hover { background: var(--accent-text); }

/* Disk check */
.gauge-box { margin-top: clamp(64px, 8vw, 120px); background: var(--dark); color: #fff; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 72px); }
.gauge-box :focus-visible { outline-color: #fff; }
.gauge-box h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.gauge-box fieldset { border: 0; padding: 0; margin: 28px 0 0; }
.gauge-box legend, .gauge-box label.range { display: block; font-weight: 600; margin-bottom: 12px; padding: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sizes span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #52525b; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.sizes input:checked + span { background: #fff; color: var(--fg); border-color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.gauge-box input[type="range"] { width: min(100%, 24rem); accent-color: var(--accent); height: 44px; cursor: pointer; }
.note { font-size: 0.875rem; line-height: 1.5; color: #a1a1aa; margin-top: 16px; max-width: 34rem; }
.gauge-out { align-self: center; }
.gauge-figure { font: 600 clamp(3.2rem, 1.6rem + 7vw, 7rem)/0.95 var(--serif); letter-spacing: -0.03em; }
.meter { height: 18px; background: #3f3f46; margin-top: 24px; }
.meter i { display: block; height: 100%; width: 88%; background: var(--accent); transition: width 0.4s var(--ease); }
.gauge-verdict { font-size: 1.125rem; line-height: 1.55; max-width: 34rem; margin-top: 22px; color: #e4e4e7; }
.gauge-box .btn { background: #fff; color: var(--fg); margin-top: 22px; }
.gauge-box .btn:hover { background: var(--accent); color: #000; }

/* About the blog */
.method-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 4vw, 48px); }
.method-grid .pic { aspect-ratio: 4 / 3; }
figcaption { font-size: 0.875rem; line-height: 1.45; color: var(--soft); margin-top: 10px; }
.method-text p { font-size: 1.125rem; line-height: 1.6; max-width: 38rem; }
.method-text p + p { margin-top: 1em; }
.method-text .btn { margin-top: 26px; }

/* Footer */
.foot { margin-top: clamp(72px, 9vw, 140px); background: var(--dark); color: #d4d4d8; padding-block: clamp(40px, 6vw, 72px) 28px; }
.foot :focus-visible { outline-color: #fff; }
.foot-name { font: 600 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1 var(--serif); color: #fff; letter-spacing: -0.02em; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 2fr 2fr; gap: 32px clamp(20px, 3vw, 44px); margin-top: 32px; padding-top: 32px; border-top: 1px solid #3f3f46; }
.foot-cols h2 { font: 700 0.9375rem/1.4 var(--sans); color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.foot-cols ul { list-style: none; padding: 0; }
.foot-cols li, .foot-cols p { font-size: 0.9375rem; line-height: 1.6; }
.foot-cols .two { columns: 2; column-gap: 24px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.legal { font-size: 0.875rem; margin-top: 36px; color: #a1a1aa; }

/* Post page */
.post { padding-top: clamp(32px, 5vw, 64px); }
.post-head { max-width: 52rem; margin-inline: auto; text-align: center; }
.post-head h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; margin-top: 14px; }
.post-head .standfirst { margin-top: 22px; }
.byline { font-size: 0.9375rem; color: var(--soft); margin-top: 20px; line-height: 1.5; }
.byline b { color: var(--fg); font-weight: 600; }
.post-pic { margin-top: clamp(28px, 4vw, 48px); }
.post-pic .pic { aspect-ratio: 16 / 9; }
.post-pic .pic img { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.post-body { display: grid; grid-template-columns: 15rem minmax(0, 44rem); justify-content: center; gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); }
.post-side-in { position: sticky; top: 28px; }
.crumbs { font-size: 0.875rem; color: var(--soft); line-height: 1.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.toc { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--fg); }
.toc h2 { font: 700 0.9375rem/1.4 var(--sans); letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin-top: 10px; }
.toc li { font-size: 0.9375rem; line-height: 1.35; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--soft); transition: color 0.2s; }
.toc a:hover { color: var(--fg); text-decoration: underline; }
.prose { min-width: 0; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.7; }
.post > .prose { max-width: 44rem; margin: clamp(32px, 4vw, 48px) auto 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); margin: 2.2em 0 0.6em; scroll-margin-top: 24px; }
.prose h3 { font: 700 1.1875rem/1.3 var(--sans); letter-spacing: -0.005em; margin: 1.8em 0 0.4em; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin-bottom: 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose .answer { font-size: 1.2em; line-height: 1.55; border-left: 4px solid var(--accent); padding-left: 1.1em; margin-bottom: 1.6em; }
.prose code { font: 500 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint); padding: 0.14em 0.38em; overflow-wrap: anywhere; }
.prose pre { background: var(--dark); color: #f4f4f5; padding: 1.1rem 1.2rem; overflow-x: auto; margin-bottom: 1.3em; }
.prose pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.prose kbd { font: 600 0.85em var(--sans); background: var(--card); border: 1px solid #d4d4d8; border-bottom-width: 2px; padding: 0.08em 0.42em; white-space: nowrap; }
.prose .ours { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--fg); padding: 1.3rem 1.5rem; margin: 2em 0; font-size: 0.95em; }
.prose .ours p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.92em; line-height: 1.45; }
.prose th { font-weight: 700; text-align: left; border-bottom: 2px solid var(--fg); padding: 0.6rem 1rem 0.6rem 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; }
.next .feed { padding-bottom: 0; }

/* Entrances. Without script nothing is hidden. */
.js [data-r] { opacity: 0; transform: translateY(14px); }
.js [data-r].in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }

@media (max-width: 1024px) {
  .feed { grid-template-columns: 1fr 1fr; }
  .post-body { grid-template-columns: minmax(0, 44rem); }
  .post-side-in { position: static; }
  .promo-side { display: none; }
  .toc ol { columns: 2; column-gap: 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .featured { display: block; }
  .featured-text { margin-top: 22px; }
  .gauge-box, .method-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .gauge-box { margin-inline: calc(var(--pad) * -1); }
  .mast nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mast nav::-webkit-scrollbar { display: none; }
  .mast nav a { white-space: nowrap; }
  .post-head { text-align: left; }
  .post-pic { margin-inline: calc(var(--pad) * -1); }
  .post-pic figcaption { padding-inline: var(--pad); }
  .post-pic .pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .feed { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .foot-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; }
  .pic img, .post-pic .pic img, .meter i { transition: none; animation: none; }
}
