/* shopgrovegranite.com — calm PC benchmark guide.
   Palette from logo: slate #203848, teal #489898 (ink #2E6E6E), on white and a warm stone grey. */
:root {
  --white: #FFFFFF;
  --stone: #F2F1EE;
  --line: #E1E0DB;
  --ink: #203848;
  --ink-2: #51616A;
  --teal: #489898;
  --teal-ink: #2E6E6E;
  --oak: #C4B49A;
  --bar-soft: #D6DCDC;
  --f-head: "Encode Sans Semi Condensed", system-ui, sans-serif;
  --f-body: "Radio Canada", system-ui, sans-serif;
  --wrap: 1180px;
  --gut: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Header: logo left, centred one-word links, quiet CTA right ---------- */
/* Header: links read as a score meter, the offer is a solid block at the edge, a ruler scale underneath. */
.bar { position: static; background: var(--white); border-bottom: 1px solid var(--line); }
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 var(--gut);
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin: 0 auto;
}
.bar__logo img { width: auto; height: 40px; }
.bar__nav { display: none; }
.bar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.bar__cta:hover,
.bar__cta:focus-visible { background: var(--teal-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 2px;
}
.btn:hover { background: #2A4A5C; }

/* ---------- Hero: inset full-width photo, one centred line ---------- */
.hero {
  position: relative;
  margin: 16px var(--gut) 0;
  min-height: clamp(460px, 74vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--stone);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(32, 56, 72, .44); }
.hero__copy {
  position: relative; z-index: 1;
  text-align: center;
  padding: 48px 20px;
  max-width: 820px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 500;
  margin-bottom: .35em;
}
.hero p { color: #EEF3F3; font-size: 1.1rem; max-width: 52ch; margin: 0 auto 28px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 16px; }
.intro, .charts, .tests, .steps, .faq { padding: clamp(64px, 9vw, 120px) 0; }
.intro__grid { display: grid; gap: 16px; }
.intro p { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; margin: 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 640px; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* ---------- Featured grid ---------- */
.featured { padding: 0 var(--gut); max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; }
.featured__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 20px;
}
.featured__head h2 { margin: 0; }
.featured__head a { color: var(--ink); font-size: .92rem; font-weight: 500; }
.featured__grid { display: grid; gap: 16px; }
.tile { margin: 0; }
.tile img { width: 100%; height: 300px; object-fit: cover; background: var(--stone); }
.tile figcaption { padding: 12px 0 8px; font-size: .95rem; color: var(--ink-2); max-width: 52ch; }
.tile strong { display: block; color: var(--ink); font-weight: 600; font-family: var(--f-head); font-size: 1.05rem; }

/* ---------- Charts ---------- */
.charts__grid { display: grid; gap: 48px; }
.chart { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.chart__cap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.chart__name { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.chart__note { color: var(--ink-2); font-size: .9rem; }
.chart__legend { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 20px; font-size: .88rem; color: var(--ink-2); }
.chart__legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sw--before { background: var(--bar-soft); }
.sw--after { background: var(--teal); }
.hbars { margin: 0; display: grid; gap: 16px; }
.hbars dt { font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.hbars dd { margin: 0; display: grid; gap: 4px; }
.hb { position: relative; display: block; height: 8px; width: var(--v); border-radius: 2px; }
.hb--before { background: var(--bar-soft); }
.hb--after { background: var(--teal); }
.hb b {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  font-size: .78rem; font-weight: 500; color: var(--ink-2);
}
.hbars dd { padding-right: 36px; }
.vbars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  height: 220px; align-items: end;
  border-bottom: 1px solid var(--line);
}
.vbars li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.vb { display: block; width: 100%; max-width: 56px; height: var(--v); background: var(--teal); border-radius: 2px 2px 0 0; }
.vb--warm { background: var(--oak); }
.vbars__lbl { position: absolute; bottom: -26px; font-size: .82rem; color: var(--ink-2); }
.vbars + .chart__read { margin-top: 40px; }
.chart__read { color: var(--ink-2); font-size: .95rem; margin: 18px 0 0; max-width: 56ch; }

/* ---------- Test table ---------- */
.tests { background: var(--stone); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-weight: 500; font-size: .86rem; color: var(--ink-2); padding-top: 0; border-bottom-color: #CFCEC8; }
.spec-table tbody th { font-family: var(--f-head); font-weight: 600; color: var(--ink); white-space: nowrap; }
.spec-table td { color: var(--ink-2); }

/* ---------- Steps (a real sequence) ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 40px; counter-reset: st; }
.steps__list li { counter-increment: st; border-top: 1px solid var(--line); padding-top: 18px; }
.steps__list li::before {
  content: counter(st);
  display: block; font-family: var(--f-head); font-weight: 500; color: var(--teal-ink);
  font-size: .95rem; margin-bottom: 8px;
}
.steps__list h3 { margin-bottom: .3em; }
.steps__list p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 500; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Closer ---------- */
.closer { background: var(--stone); padding: clamp(56px, 8vw, 96px) 0; }
.closer__grid { display: grid; gap: 24px; align-items: center; }
.closer h2 { margin-bottom: .3em; }
.closer p { color: var(--ink-2); margin: 0; }
.closer__note { font-size: .86rem; margin-top: 12px !important; max-width: 46ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 32px; }
.foot__in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; margin-bottom: 24px; }
.foot__logo img { height: 36px; width: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.foot__nav a:hover { text-decoration: underline; }
.foot__note, .foot__copy { font-size: .86rem; color: var(--ink-2); margin: 0 0 6px; max-width: 70ch; }

/* ---------- Responsive ---------- */
@media (max-width: 819px) {
  .bar__in { grid-template-columns: 1fr auto; min-height: 64px; gap: 12px; }
  .bar__nav { display: none; }
  .bar__logo img { height: 34px; }
  .bar__cta { padding: 0 14px; font-size: .8rem; min-height: 38px; }
  .bar__in { gap: 12px; }
  .hero { min-height: 500px; margin-top: 12px; }
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; }
  .spec-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .spec-table th, .spec-table td { border: 0; padding: 2px 0; white-space: normal; }
  .spec-table tbody th { margin-bottom: 4px; }
  .spec-table td::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 500; }
}
@media (max-width: 380px) {
  .bar__cta { font-size: .75rem; padding: 0 10px; }
  .bar__logo img { height: 30px; }
}
@media (min-width: 640px) {
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .featured__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .featured__grid { grid-template-columns: repeat(12, 1fr); }
  .tile--wide { grid-column: span 8; }
  .tile--narrow { grid-column: span 4; }
  .tile img { height: clamp(380px, 38vw, 540px); }
  .charts__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .faq__grid { grid-template-columns: 4fr 8fr; gap: 48px; }
  .closer__grid { grid-template-columns: 1fr auto; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Closing panel: photo + short pitch with a score-meter strip ---------- */
.closer__card {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  margin: 0 var(--gut);
}
.closer__img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.closer__body { padding: clamp(24px, 4vw, 48px); }
.closer__body .btn { margin-top: 4px; }
.closer__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 280px; margin: 20px 0 24px; }
.closer__meter span { height: 6px; background: var(--bar-soft); }
.closer__meter span:nth-child(1) { background: var(--ink); }
.closer__meter span:nth-child(2) { background: var(--teal); }
.closer__meter span:nth-child(3) { background: var(--oak); }
@media (min-width: 900px) {
  .closer__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: var(--wrap); margin: 0 auto; }
}

/* ---------- Header links: the four section links from 1024px; Blog stays visible as a text link beside the CTA ---------- */
.bar__nav { margin-left: auto; }
.bar__nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .bar__nav { display: flex; }
  .bar__nav a { display: none; }
  .bar__nav .nav-blog { display: inline; font-size: .88rem; }
}
@media (min-width: 1024px) {
  .bar__nav { display: flex; gap: 26px; margin: 0 auto; }
}

/* ---------- Homepage "Do blog": heading column + plain list with small photos ---------- */
.latest { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.latest__grid { display: grid; gap: 24px; }
.latest__head h2 { margin-bottom: .3em; }
.latest__head p { color: var(--ink-2); margin: 0 0 14px; max-width: 34ch; }
.latest__head a { color: var(--ink); font-size: .92rem; font-weight: 500; }
.latest__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest__list li { border-bottom: 1px solid var(--line); }
.latest__item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 0; text-decoration: none; color: var(--ink); }
.latest__fig img { width: 96px; height: 72px; object-fit: cover; background: var(--stone); }
.latest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.latest__label { font-size: .82rem; color: var(--teal-ink); font-weight: 500; }
.latest__title { font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.latest__meta { font-size: .84rem; color: var(--ink-2); }
.latest__item:hover .latest__title, .latest__item:focus-visible .latest__title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .latest__grid { grid-template-columns: 4fr 8fr; gap: 48px; }
  .latest__item { grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; }
  .latest__fig img { width: 160px; height: 104px; }
  .latest__title { font-size: 1.2rem; }
}
