/* xhamsterdk.com: warm sand, ink and deep teal, coral used only as 1px lines. */

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

:root {
  --sand: #f6f1e9;
  --sand-deep: #efe6d8;
  --paper: #fffdf9;
  --ink: #17181a;
  --ink-soft: #45474a;
  --muted: #6b6c6d;
  --teal: #12474a;
  --teal-deep: #0c3436;
  --coral: #e2604a;
  --line: rgba(23, 24, 26, 0.16);
  --line-soft: rgba(23, 24, 26, 0.09);
  --max: 1220px;
  --pad: clamp(18px, 4vw, 40px);
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

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

main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0; padding: 0; }

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

h1 { font-size: clamp(36px, 5.1vw, 60px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(24px, 2.7vw, 32px); line-height: 1.1; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }

.wrap { width: min(calc(100% - (2 * var(--pad))), var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

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

/* Header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex; align-items: center; gap: 22px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand span {
  font: 600 10px/1.2 var(--body);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.nav a {
  font: 500 15.5px/1 var(--body);
  padding: 9px 0 8px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--coral); }

.age {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(23, 24, 26, 0.55);
  color: var(--ink);
  font: 600 11.5px/1 var(--body);
  letter-spacing: 0.05em;
  padding: 6px 7px;
  white-space: nowrap;
}
.age-m { display: none; }

.burger {
  display: none; width: 42px; height: 40px; margin-left: auto;
  border: 1px solid var(--line); background: transparent; padding: 9px 8px;
  cursor: pointer; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 1px; background: var(--ink); width: 100%; }

.drawer { display: none; }

/* Hero */

.hero { padding: 36px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 52% minmax(0, 1fr);
  gap: clamp(30px, 4.2vw, 56px);
  align-items: center;
}

.hero-fig { margin: 0; position: relative; }
.hero-fig::before {
  content: ""; position: absolute; left: -13px; top: 40px; bottom: 54px;
  width: 1px; background: var(--coral);
}

.frame { border: 1px solid var(--teal); background: var(--paper); }

.addrbar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px;
  border-bottom: 1px solid var(--teal);
  background: var(--sand-deep);
}
.dots { display: flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(23, 24, 26, 0.3); }
.addrbar .lock { color: var(--teal); flex-shrink: 0; }
.addrbar .url {
  font: 500 11.5px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.addrbar .langchip {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid rgba(18, 71, 74, 0.42);
  color: var(--teal);
  font: 600 9.5px/1 var(--body);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 5px;
}

.frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }

.hero-fig figcaption, .page-fig figcaption {
  margin-top: 11px; padding-top: 9px;
  border-top: 1px solid var(--coral);
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.hero-fig figcaption b, .page-fig figcaption b { color: var(--ink); font-weight: 600; }

.kicker {
  display: flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 15px;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: var(--coral); }

.hero-copy h1 { margin-bottom: 17px; max-width: 12ch; }
.lead { font-size: 18px; line-height: 1.62; color: var(--ink-soft); max-width: 47ch; }

.hact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 25px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 13px 20px;
  background: var(--teal); color: var(--paper);
  border: 1px solid var(--teal);
  font: 600 14px/1 var(--body);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.line { background: transparent; color: var(--teal); }
.btn.line:hover { background: rgba(18, 71, 74, 0.06); }

.hero-note {
  display: flex; align-items: center; gap: 9px;
  margin: 18px 0 0; font-size: 12.5px; color: var(--muted);
}

/* Partners */

.partners {
  margin-top: 28px;
  border-top: 1px solid var(--coral);
  border-bottom: 1px solid var(--coral);
  padding: 18px 0 20px;
}
.partner-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; margin-bottom: 13px;
}
.partner-head h2 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  border: 0; padding: 0;
}
.partner-head span { font-size: 12px; color: var(--muted); }

.plates {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 34px; align-items: center;
}
.plates a {
  display: flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 4px;
}
.plates img { height: 60px; width: 100%; object-fit: contain; }

/* Body */

.body-band { padding: 40px 0 0; }
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: start;
}

.body-band h2 {
  border-top: 1px solid var(--coral);
  padding-top: 14px;
  margin-bottom: 16px;
}
.body-band p { max-width: 68ch; }
.cols article p { color: var(--ink-soft); }
.cols article p:first-of-type { font-size: 18px; color: var(--ink); }

.aside { border-left: 1px solid var(--teal); padding-left: 24px; }
.aside h3 {
  border: 0; padding: 0; margin-bottom: 9px;
  font-size: 19px; letter-spacing: -0.01em;
  font-family: var(--display); font-weight: 600;
}
.aside ul { list-style: none; }
.aside li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
}
.aside li:last-child { border-bottom: 1px solid var(--line); }

.table-title { margin-top: 38px; }
.tablewrap { overflow-x: auto; margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
thead th {
  font: 600 10.5px/1.3 var(--body);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal);
  padding: 10px 12px;
  border-top: 1px solid var(--coral);
  border-bottom: 1px solid var(--teal);
  white-space: nowrap;
}
tbody th, tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody th { font-weight: 600; font-size: 14.5px; }
tbody td { color: var(--ink-soft); }
.addr-table tbody td:first-of-type { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; color: var(--teal); white-space: nowrap; }
.cat-table tbody th { width: 26%; }
.cat-table tbody td:nth-child(2) { width: 17%; white-space: nowrap; }
.na { color: var(--muted); font-style: italic; }

.note {
  margin-top: 13px;
  font-size: 12.5px; line-height: 1.6;
  color: var(--muted);
  padding-left: 13px;
  border-left: 1px solid var(--coral);
}

.next-band { padding-top: 40px; }
.section-intro { color: var(--ink-soft); max-width: 60ch; }

.next {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  margin-top: 18px;
}
.next a { padding: 17px 16px 18px; border-right: 1px solid var(--line); }
.next a:last-child { border-right: 0; }
.next b { display: block; font: 600 16px/1.2 var(--display); margin-bottom: 4px; }
.next span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.next a:hover b { color: var(--teal); }

.endcta { margin: 24px 0 0; }
.textlink {
  display: inline-block;
  font: 600 14px/1.2 var(--body);
  color: var(--teal);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 4px;
}
.textlink:hover { color: var(--teal-deep); }

/* Inner pages */

.page-head { padding: 46px 0 8px; }
.page-head .wrap {
  max-width: 1040px; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  grid-template-areas: "kicker kicker" "title intro" "title action";
  column-gap: 46px;
  align-items: start;
}
.page-head .kicker { grid-area: kicker; }
.page-head h1 { grid-area: title; max-width: 18ch; margin-bottom: 0; }
.intro { font-size: 18px; line-height: 1.62; color: var(--ink-soft); max-width: 62ch; }
.page-head .intro {
  grid-area: intro; margin: 0; padding: 6px 0 0 22px;
  border-left: 1px solid var(--teal);
  font-size: 16.5px;
}
.page-act { margin-top: 22px; }
.page-head .page-act { grid-area: action; margin-top: 20px; padding-left: 22px; }
.page-head.notfound .wrap { display: block; }
.page-head.notfound h1 { max-width: 16ch; margin-bottom: 16px; }
.page-head.notfound .intro { border-left: 0; padding-left: 0; }

.content { padding: 26px 0 0; }
.content .wrap { max-width: 1040px; margin-inline: auto; }
.content h2 {
  border-top: 1px solid var(--coral);
  padding-top: 14px;
  margin: 36px 0 14px;
  font-size: clamp(23px, 2.4vw, 29px);
}
.content h2:first-child { margin-top: 8px; }
.content p { color: var(--ink-soft); max-width: 68ch; }
.content h3 { margin-bottom: 4px; }

.page-fig { margin: 0 0 28px; max-width: 960px; }

/* Video notes */

.notes { list-style: none; border-top: 1px solid var(--teal); margin-top: 8px; }
.notes li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.notes .n, .steps .n {
  font: 600 12px/1 var(--body);
  letter-spacing: 0.08em;
  color: var(--teal);
  padding-top: 4px;
}
.notes p { margin: 0; font-size: 15px; }

/* Numbered steps */

.steps { list-style: none; counter-reset: none; border-top: 1px solid var(--teal); margin-top: 8px; }
.steps li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px; padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.steps .n { padding-top: 5px; }
.steps p { margin: 0; font-size: 15px; }
.steps.compact li { padding: 15px 0; }

/* Trouble list */

.trouble { margin: 8px 0 0; border-top: 1px solid var(--teal); }
.trouble dt {
  font: 600 16px/1.3 var(--display);
  padding-top: 17px;
}
.trouble dd {
  margin: 3px 0 0; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 15px;
}

/* Premium */

.status {
  border-left: 1px solid var(--coral);
  padding: 2px 0 2px 15px;
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.status b { color: var(--ink); }

.compare { margin-top: 6px; }
.compare thead th:first-child { width: 32%; }
.compare tbody th {
  font-size: 14px;
  padding: 12px;
  background: transparent;
}
.compare tbody td { font-size: 14px; }
.compare tbody td + td, .compare thead th + th { border-left: 1px solid var(--line-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--teal); }

/* FAQ */

.faq {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 38px;
  border-top: 1px solid var(--teal);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 30px 16px 0;
  font: 600 16.5px/1.35 var(--display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 2px; top: 13px;
  font: 400 20px/1 var(--body);
  color: var(--teal);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px 0; }
.faq .answer p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* 404 */

.notfound .code {
  font: 700 clamp(60px, 12vw, 120px)/0.85 var(--display);
  letter-spacing: -0.05em;
  color: var(--teal);
  margin: 4px 0 18px;
}
.nf-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 28px; padding-top: 14px;
  border-top: 1px solid var(--teal);
}
.nf-links a { font-size: 14px; border-bottom: 1px solid var(--coral); padding-bottom: 3px; }

/* Footer */

.foot { border-top: 1px solid var(--teal); margin-top: 58px; padding: 36px 0 26px; }
.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
  gap: 34px;
}
.brand-foot img { height: 31px; }
.brand-foot { margin-bottom: 14px; }
.fabout { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); max-width: 46ch; }
.age-foot { margin-top: 6px; }
.foot h3 {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.foot a { display: block; font-size: 14px; padding: 4px 0; }
.foot a:hover { color: var(--teal); }
.faddr { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 10px; }
.fbot {
  display: flex; justify-content: space-between; gap: 18px;
  margin-top: 30px; padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}

/* Responsive */

@media (max-width: 1000px) {
  .head-in { gap: 16px; }
  .brand span { display: none; }
  .nav { gap: 12px; }
  .nav a { font-size: 15px; }
  .plates { gap: 12px 20px; }
}

@media (max-width: 900px) {
  .page-head .wrap { display: block; }
  .page-head h1 { max-width: 17ch; margin-bottom: 16px; }
  .page-head .intro { border-left: 0; padding-left: 0; padding-top: 0; }
  .page-head .page-act { padding-left: 0; margin-top: 20px; }
}

@media (max-width: 759px) {
  body { font-size: 16px; }
  .head-in { min-height: 62px; gap: 12px; }
  .brand img { height: 29px; }
  .brand span { font-size: 9px; padding-left: 8px; }
  .nav { display: none; }
  .burger { display: flex; }
  .age-m { display: inline-flex; }
  .drawer {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--teal);
    padding: 6px var(--pad) 20px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    z-index: 49;
  }
  .drawer.open { display: block; }
  .drawer a {
    display: block;
    font: 500 17px/1.2 var(--body);
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .drawer a[aria-current="page"] { color: var(--teal); }

  .hero { padding-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-fig::before { display: none; }
  .hero-fig { order: 1; }
  .hero-copy { order: 2; }
  .hero-copy h1 { font-size: clamp(34px, 9.2vw, 44px); max-width: 13ch; }
  .lead { font-size: 16.5px; }
  .hero-fig figcaption { margin-top: 7px; padding-top: 6px; font-size: 11px; line-height: 1.4; }
  .addrbar { height: 34px; }
  .hact { margin-top: 16px; }
  .hero-note { display: none; }
  .btn { min-height: 44px; padding: 12px 17px; }

  .partners { margin-top: 12px; padding: 14px 0 16px; }
  .partner-head { margin-bottom: 10px; }
  .partner-head span { display: none; }
  .plates { gap: 8px 7px; }
  .plates a { height: 44px; padding: 0 2px; }
  .plates img { height: 44px; }

  .body-band { padding-top: 30px; }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .aside { border-left: 0; border-top: 1px solid var(--teal); padding: 14px 0 0; }
  .aside h3 { font-size: 19px; }
  .next { grid-template-columns: 1fr; }
  .next a { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 12px; }
  .next a:last-child { border-bottom: 0; }

  table { font-size: 13.5px; }
  thead th { padding: 8px 8px; font-size: 9.5px; }
  tbody th, tbody td { padding: 9px 8px; }
  .addr-table tbody td:first-of-type { font-size: 11.5px; white-space: normal; }
  .cat-table tbody th { width: 30%; }
  .cat-table tbody td:nth-child(2) { width: 25%; }
  .compare thead th:first-child { width: 34%; }
  .compare tbody th, .compare tbody td { padding: 8px 7px; font-size: 12.5px; }

  .page-head { padding-top: 30px; }
  .page-head .wrap { display: block; }
  .page-head h1 { max-width: 15ch; margin-bottom: 16px; }
  .page-head .intro { border-left: 0; padding-left: 0; padding-top: 0; }
  .page-head .page-act { padding-left: 0; margin-top: 20px; }
  .intro { font-size: 16.5px; }
  .content h2 { margin-top: 30px; }
  .faq { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; }
  .notes li, .steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .notfound .code { margin-bottom: 12px; }
  .fgrid { grid-template-columns: 1fr; gap: 24px; }
  .fbot { flex-direction: column; gap: 6px; }
}

@media (max-width: 390px) {
  .brand span { display: none; }
  .plates img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
