/* xhamstercz.com: warm paper, ink, deep teal, apricot hairlines */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #faf8f4;
  --card: #fffdf9;
  --ink: #191a1c;
  --ink-2: #3d4348;
  --muted: #5f666c;
  --teal: #0d5c63;
  --teal-deep: #0a4a50;
  --teal-tint: #edf3f2;
  --apricot: #e8926a;
  --rule: #e3ddd3;
  --rule-soft: #efeae1;
  --shell: 1180px;
  --display: "Urbanist", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.04; }
h2 { font-size: clamp(24px, 2.5vw, 31px); font-weight: 800; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: 0; transform: translateY(-220%);
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font: 600 14px/1 var(--display); z-index: 60;
}
.skip:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- header ---------- */

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 30;
}

.head-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 84px;
  padding: 17px 0;
}

.brand { display: block; }
.brand img { width: 142px; height: auto; }

.pillnav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
}

.pillnav a {
  font: 600 15px/1 var(--display);
  letter-spacing: 0.005em;
  color: var(--ink-2);
  padding: 11px 15px;
  border-radius: 999px;
  white-space: nowrap;
}
.pillnav a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.pillnav a[aria-current="page"] { background: var(--teal); color: #ffffff; }

.head-right { display: flex; align-items: center; gap: 10px; }

.age {
  width: 47px; height: 47px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  display: grid;
  place-items: center;
  font: 800 15px/1 var(--display);
  border: 1px solid var(--teal);
  flex: none;
}
.age:hover { background: var(--teal-deep); }
.age span { transform: translateY(0.5px); }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- hero ---------- */

.hero { padding: 52px 0 30px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 700 11.5px/1 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--apricot);
  flex: none;
}

.hero h1 { margin: 0 0 18px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--teal); }

.lead {
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 47ch;
  margin: 0 0 18px;
}

.marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.marks li {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  border-radius: 3px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font: 700 15px/1 var(--display);
  letter-spacing: 0.01em;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.btn:hover { background: var(--teal); border-color: var(--teal); }

.btn-line {
  display: inline-block;
  color: var(--teal);
  font: 700 15px/1 var(--display);
  border-bottom: 1px solid var(--apricot);
  padding: 0 0 5px;
}

/* browser frame */

.browser {
  margin: 0;
  border: 1px solid var(--teal);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}

.browser .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--teal);
  background: var(--card);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: #d8d1c6; flex: none; }

.url {
  flex: 1;
  margin-left: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 12px/1.2 var(--body);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser img { width: 100%; height: auto; }

.browser figcaption {
  border-top: 1px solid var(--rule);
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- partners ---------- */

.partners {
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #f5f1e9;
}

.partners-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 14px; }
.partners-head h2 {
  font: 700 11.5px/1 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.partners-head span {
  font: 500 11.5px/1 var(--body);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plogos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-inline: auto;
}

.plogos a {
  display: grid;
  place-items: center;
  height: 92px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px;
}
.plogos a:hover { border-color: var(--teal); }
.plogos img { height: 60px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- sections ---------- */

.section { padding: 54px 0 8px; }
.section-tight { padding: 40px 0 6px; }

.section > .shell > h2 { margin-bottom: 8px; }

.section-note { color: var(--muted); font-size: 15.5px; max-width: 68ch; margin: 0 0 24px; }

/* intro strip */

.intro { padding: 46px 0 10px; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--apricot);
  padding-top: 22px;
}

.intro h2 { font-size: clamp(23px, 2.3vw, 29px); }
.intro p { margin: 0 0 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.intro p:last-child { margin-bottom: 0; }

/* numbered chapters, three columns */

.chapters { padding: 50px 0 12px; }

.chap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 36px;
  margin-top: 26px;
}

.chap { border-top: 1px solid var(--apricot); padding-top: 14px; }
.num {
  display: block;
  font: 800 13px/1 var(--display);
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.chap h3 { margin-bottom: 7px; }
.chap p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }

/* tables */

.tablewrap { width: 100%; overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

table.data caption {
  caption-side: top;
  text-align: left;
  font: 600 13px/1.4 var(--body);
  color: var(--muted);
  padding-bottom: 10px;
}

table.data th {
  font: 700 11.5px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}

table.data td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}

table.data td:first-child { color: var(--ink); font-weight: 600; }
table.data tr:last-child td { border-bottom: 1px solid var(--ink); }
table.data .none { color: var(--muted); font-style: italic; }
table.data .yes { color: var(--teal); font-weight: 600; }

.table-key {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 72ch;
}

/* ---------- page head (subpages) ---------- */

.page-head { padding: 46px 0 24px; border-bottom: 1px solid var(--rule); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font: 600 12px/1.4 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.crumb li + li::before { content: ""; display: inline-block; width: 10px; height: 1px; background: var(--apricot); margin-right: 8px; vertical-align: middle; }
.crumb a { color: var(--teal); }

.page-head h1 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; max-width: 20ch; }

.page-intro { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; margin: 0; }

.sheet { padding: 34px 0 64px; }
.sheet h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 38px 0 8px; }
.sheet h2:first-child { margin-top: 0; }
.sheet p { max-width: 70ch; }

/* screenshot with markers */

.figure-wide { margin: 0 0 22px; }

.frame-shot {
  position: relative;
  border: 1px solid var(--teal);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}
.frame-shot img { width: 100%; height: auto; }

.mk {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--teal);
  font: 700 12px/22px var(--display);
  text-align: center;
}

.shot-cap { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 9px 0 0; }

ol.annos {
  counter-reset: anno;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
}
ol.annos li {
  counter-increment: anno;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
ol.annos li::before {
  content: counter(anno);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font: 700 12px/26px var(--display);
  text-align: center;
  margin-top: 1px;
}
ol.annos b { display: block; font: 700 15.5px/1.4 var(--display); color: var(--ink); }
ol.annos span { display: block; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

/* steps */

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
ol.steps li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 800 30px/1 var(--display);
  color: var(--teal);
  letter-spacing: -0.02em;
  padding-top: 2px;
}
ol.steps h3 { margin: 0 0 5px; font-size: 20px; }
ol.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }

/* faq */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 22px;
  align-items: start;
}

details.qa { border-top: 1px solid var(--apricot); padding: 13px 0 14px; }
details.qa summary {
  list-style: none;
  cursor: pointer;
  font: 600 16.5px/1.45 var(--display);
  color: var(--ink);
  padding-right: 28px;
  position: relative;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font: 400 22px/1 var(--display);
  color: var(--teal);
}
details.qa[open] summary::after { content: "\2212"; }
details.qa p { margin: 9px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* comparison table (premium) */

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
table.compare th, table.compare td { padding: 13px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.compare thead th {
  font: 700 12px/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--ink);
}
table.compare thead th:first-child { color: var(--muted); }
table.compare thead th.pre { color: var(--ink); background: var(--teal-tint); }
table.compare tbody th {
  font: 600 15px/1.45 var(--body);
  color: var(--ink);
  width: 30%;
}
table.compare tbody td { color: var(--ink-2); }
table.compare td.pre { background: var(--teal-tint); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 1px solid var(--ink); }

.status-note {
  border-left: 1px solid var(--apricot);
  padding: 2px 0 2px 16px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 70ch;
}
.status-note b { color: var(--ink); }

/* 404 */

.lost { padding: 70px 0 80px; }
.lost-in { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: 44px; align-items: start; }
.lost .code {
  font: 800 clamp(88px, 12vw, 150px)/0.9 var(--display);
  color: var(--teal);
  letter-spacing: -0.04em;
}
.lost h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.lost p { max-width: 52ch; color: var(--ink-2); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--ink);
  padding: 26px 0 32px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 26px;
  align-items: start;
}
.foot-brand img { width: 122px; height: auto; margin-bottom: 10px; }
.foot-brand p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 54ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.foot-links a { font: 600 13.5px/1.6 var(--display); color: var(--teal); }
.foot-links a:hover { border-bottom: 1px solid var(--apricot); }
.foot-legal {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  .head-row { gap: 14px; }
  .pillnav a { padding: 10px 11px; font-size: 15px; }
  .brand img { width: 130px; }
  .hero-grid { gap: 34px; }
  .chap-grid { gap: 30px 26px; }
}

@media (max-width: 900px) {
  .pillnav a { padding: 10px 9px; }
  .brand img { width: 118px; }
  .age { width: 43px; height: 43px; font-size: 14px; }
  .hero { padding: 34px 0 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 26px; }
  .hero h1 { font-size: clamp(29px, 3.9vw, 38px); max-width: none; }
  .browser { max-width: 100%; }
  .chap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- mobile ---------- */

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .head-row { grid-template-columns: 1fr auto; min-height: 68px; padding: 11px 0; }
  .brand img { width: 116px; }
  .burger { display: grid; }
  .age { width: 42px; height: 42px; font-size: 13.5px; }
  .head-right { gap: 8px; }

  .pillnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    grid-column: 1 / -1;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 12px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    background: var(--card);
    box-shadow: 0 14px 24px rgba(25, 26, 28, 0.08);
  }
  .pillnav.is-open { display: flex; }
  .pillnav a {
    font-size: 17px;
    padding: 15px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--rule-soft);
    background: none;
  }
  .pillnav a[aria-current="page"] { background: none; color: var(--teal); }
  .pillnav a:last-child { border-bottom: 0; }

  .hero { padding: 28px 0 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); margin-bottom: 14px; }
  .lead { font-size: 16px; margin-bottom: 15px; }
  .marks { margin-bottom: 20px; gap: 6px; }
  .marks li { font-size: 11px; padding: 7px 8px; }
  .btn { padding: 15px 20px; }
  .url { font-size: 11.5px; }
  .browser figcaption { font-size: 11.5px; }

  .partners { padding: 18px 0 20px; }
  .plogos { gap: 8px; max-width: 100%; }
  .plogos a { height: 70px; padding: 5px; }
  .plogos img { height: 44px; }

  .intro { padding: 32px 0 8px; }
  .section { padding: 38px 0 6px; }
  .chapters { padding: 36px 0 8px; }
  .chap-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .chap p { font-size: 15.5px; }

  .page-head { padding: 32px 0 18px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 36px); }
  .sheet { padding: 26px 0 52px; }
  .sheet h2 { margin-top: 30px; }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  ol.annos { grid-template-columns: minmax(0, 1fr); }
  ol.steps li { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  ol.steps li::before { font-size: 24px; }
  ol.steps h3 { font-size: 18px; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-links { justify-content: flex-start; }
  .lost-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lost { padding: 44px 0 60px; }
}

@media (max-width: 400px) {
  .plogos a { height: 68px; }
  .plogos img { height: 44px; }
  .age { width: 40px; height: 40px; }
  .brand img { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

table.compare caption { caption-side: top; text-align: left; padding-bottom: 10px; }
