/* Baryta — built strictly within the Refero "Sigmaphoto" style.
   See website/reference/sigmaphoto-style.md before changing anything here.
   White canvas, ink black, charcoal, one cadet blue for the primary action.
   Serif headlines in caps over a 13/16 px sans. Radius 0, no shadows, no
   gradients on UI. Images contained with a 16 px margin; the hero full-bleed. */

:root {
  --canvas: #ffffff;
  --ink: #000000;
  --charcoal: #333333;
  --blue: #0048ff;
  --cool: #707070;
  --silver: #999999;
  --rule: rgba(0, 0, 0, 0.12);
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", Helvetica, Arial, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.54;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------- type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.002em;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}

.fine { font-family: var(--sans); font-size: 13px; line-height: 1.2; color: var(--cool); }

.textlink {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ----------------------------------------------------------- announce */
.announce {
  background: var(--charcoal);
  color: var(--canvas);
  text-align: center;
  padding: 14px var(--gutter);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
}
.announce a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 3rem;
}

/* ----------------------------------------------------------- masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.masthead-nav, .masthead-utils {
  display: flex;
  gap: var(--gutter);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.masthead-nav { grid-column: 1; grid-row: 1; justify-self: start; }
.masthead-utils { grid-column: 3; grid-row: 1; justify-self: end; }
.masthead-nav a, .masthead-utils a { color: var(--charcoal); text-decoration: none; }
.masthead-nav a:hover, .masthead-utils a:hover { color: var(--ink); }

.wordmark {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

/* --------------------------------------------------------------- hero */
.hero-print { margin: 0; }
.hero-print img {
  width: 100%;
  height: min(85vh, 900px);
  object-fit: cover;
}

.headline {
  text-align: center;
  padding: 10rem var(--gutter) 3rem;
}
.headline h1 { max-width: 56rem; margin: 0 auto 2.4rem; text-wrap: balance; }
.headline .lede {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
  max-width: 30rem;
  margin: 0 auto 2.8rem;
  text-wrap: pretty;
}
.headline .links { display: flex; justify-content: center; gap: 2.5rem; }
.headline .fine { margin-top: 3rem; }

/* ----------------------------------------------------------- sections */
section { padding: 6rem 0; }
#examples { padding-top: 1.5rem; }

.section-lede {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  max-width: 30rem;
  margin: -1.2rem auto 3.5rem;
  padding: 0 var(--gutter);
}

/* a comparison and its tabs fit one screen under the masthead (8:5 pictures) */
.block {
  width: min(100% - 2 * var(--gutter), (100svh - 7.5rem) * 8 / 5);
  margin: 0 auto;
}

.section-note {
  text-align: center;
  max-width: 34rem;
  margin: 2rem auto 0;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------ studies */
.study { margin-bottom: 5.5rem; }
.study:last-of-type { margin-bottom: 0; }
.study h3 { text-align: center; margin-bottom: 0.6rem; }
.study > p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--charcoal);
  text-align: center;
  max-width: 30rem;
  margin: 0 auto 1.6rem;
  padding: 0 var(--gutter);
}

.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: var(--gutter);
  padding: 0 var(--gutter);
}
.tab {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------ comparison slider */
.compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  background: var(--charcoal);
}
.compare-wide { aspect-ratio: 2 / 1; }
.compare-portrait { aspect-ratio: 1296 / 1740; max-width: 34rem; margin: 0 auto; }

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-over {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--canvas);
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--canvas);
  background: var(--ink);
  cursor: ew-resize;
}
.compare-handle::before {
  content: "\2194";
  color: var(--canvas);
  font-size: 1rem;
  line-height: 38px;
}
.compare-tag {
  position: absolute;
  bottom: var(--gutter);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  background: var(--ink);
  color: var(--canvas);
  pointer-events: none;
}
.compare-tag-left { left: var(--gutter); }
.compare-tag-right { right: var(--gutter); }

/* -------------------------------------------------------------- looks */
.looks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem var(--gutter);
  margin: 0 var(--gutter);
}
.look { margin: 0; }
.look .compare-handle { width: 32px; height: 32px; }
.look .compare-handle::before { line-height: 30px; font-size: 0.9rem; }
.look figcaption {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--charcoal);
  text-align: center;
  padding: 0.9rem var(--gutter) 0;
}
.look figcaption strong { font-weight: 400; text-transform: uppercase; color: var(--ink); }

/* ------------------------------------------------------------ install */
.install h2 { text-align: center; margin-bottom: 3rem; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.steps li { color: var(--charcoal); }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.steps em { font-style: normal; color: var(--ink); }
.install h3 { text-align: center; margin: 4.5rem 0 1rem; }
.install-other {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--charcoal);
  text-align: center;
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----------------------------------------------------- specifications */
.spec-list { max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); }
.spec-list div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--gutter);
  padding: 15px 0;
  border-top: 1px solid var(--silver);
}
.spec-list div:last-child { border-bottom: 1px solid var(--silver); }
.spec-list dt { font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--charcoal); padding-top: 3px; }
.spec-list dd { color: var(--ink); }

/* ------------------------------------------------------------ pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 420px));
  justify-content: center;
  gap: var(--gutter);
  padding: 0 var(--gutter);
}
.price-card {
  border: 1px solid var(--ink);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card h3 { margin-bottom: 0.4rem; }
.price {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.price-note { font-family: var(--sans); font-size: 13px; color: var(--cool); }
.price-card ul { list-style: none; color: var(--charcoal); margin-bottom: 1.5rem; }
.price-card { display: flex; flex-direction: column; }
.price-card ul + .button { margin-top: auto; }
.price-card li { padding: 0.5rem 0; border-top: 1px solid var(--silver); }
.price-card li:last-child { border-bottom: 1px solid var(--silver); }

.button {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--canvas);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 0;
  padding: 11px 15px;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: #0038cc; border-color: #0038cc; }
.button-ghost { color: var(--charcoal); background: transparent; border-color: var(--charcoal); margin-top: 8px; }
.button-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.pricing .section-note { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- faq */
.faq-list { max-width: 40rem; margin: 0 auto; padding: 0 var(--gutter); }
.faq-list div { padding: 15px 0; border-top: 1px solid var(--silver); }
.faq-list div:last-child { border-bottom: 1px solid var(--silver); }
.faq-list dt { font-family: var(--serif); font-size: 1rem; line-height: 1.25; margin-bottom: 0.3rem; }
.faq-list dd { color: var(--charcoal); }

/* ------------------------------------------------------------- footer */
.footer {
  background: var(--charcoal);
  color: var(--silver);
  text-align: center;
  padding: 4rem var(--gutter) 5rem;
  font-size: 13px;
  line-height: 1.5;
}
.footer .wordmark { display: block; color: var(--canvas); margin-bottom: 1.2rem; }
.footer p { max-width: 34rem; margin: 0 auto 0.5rem; }
.footer .serif { font-family: var(--serif); font-size: 1rem; line-height: 1.25; color: var(--canvas); }

/* --------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .masthead-nav { display: none; }
  .announce a { display: block; margin: 0.5rem 0 0; }
  .hero-print img { height: 60vh; }
  .headline { padding: 6rem var(--gutter) 2rem; }
  section { padding: 4.5rem 0; }
  #examples { padding-top: 1rem; }
  .looks-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 0.3rem; }
  .compare-wide { aspect-ratio: 8 / 5; }
  .headline .links { flex-direction: column; gap: 1rem; }
}

/* ---------------------------------------------------------------- try it */
.try-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 0 var(--gutter);
}
.try-pick { position: relative; overflow: hidden; cursor: pointer; }
.try-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.try-status { text-align: center; min-height: 1.2em; margin: 1.5rem auto; padding: 0 var(--gutter); }
.try-controls { margin-top: 1.75rem; }
.try-reset[hidden] { display: none; }
.study > p.try-status {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--cool);
  max-width: 44rem;
  margin: 1rem auto 0;
  text-wrap: balance;
}
