/* Carlsson & Co. — cream paper, deep ink, terracotta. */
:root {
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1d1b18;
  --mute: #5c564e;
  --line: #e3dbcd;
  --acc: #a0522d;
  --soft: #efe7da;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: #ead7c8; color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 8px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--acc);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
#site-nav { display: flex; align-items: center; }
#site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 22px;
  font-size: 14px;
  text-decoration: none;
  color: var(--mute);
}
#site-nav a:hover,
#site-nav a[aria-current="page"] { color: var(--ink); }

.hero {
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  margin: 14px 0 0;
}
.hero h1 em { font-style: italic; color: var(--acc); }
.hero p { color: var(--mute); font-size: 18px; margin: 0 0 22px; }
.hero-note { font-size: 14px !important; margin: 14px 0 0 !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.btn.soon,
.btn.soon:hover,
.btn.solid.soon,
.btn.solid.soon:hover {
  background: transparent;
  color: var(--mute);
  border-color: var(--line);
  cursor: default;
}

section[id] { scroll-margin-top: 84px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.tight { padding-top: 8px; border-top: 0; }
.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}
.head h2 { font-size: 46px; }
.head p { color: var(--mute); max-width: 460px; margin: 0; }
.head a { color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  margin: 0 0 22px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.filters button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  color: var(--mute);
  cursor: pointer;
}
.filters button.on,
.filters button:hover { color: var(--ink); border-bottom-color: var(--acc); }
.filters .n { color: var(--acc); }
.filters button.avail { margin-left: auto; }
.filters button.avail::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid var(--mute);
  margin-right: 8px;
  vertical-align: -1px;
}
.filters button.avail.on::before { background: var(--acc); border-color: var(--acc); }
.filters input {
  margin-left: 18px;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.empty { padding: 28px 0 8px; color: var(--mute); }
.empty a { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background 0.25s;
}
.card:hover { background: #fff; }
.card.feature { background: var(--soft); }
.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.meta > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.price { color: var(--ink); }
.card .cat { color: var(--acc); text-decoration: none; }
.card .cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.card h3 { font-size: 30px; line-height: 1.12; margin: 18px 0 8px; }
.card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.12em;
}
.card h3 a:hover { text-decoration-color: var(--acc); }
.pitch {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--acc);
}
.desc { font-size: 15px; color: var(--mute); margin: 0 0 16px; }
.card blockquote {
  margin: 0 0 22px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 2px solid var(--acc);
  font-size: 13.5px;
  color: #3f3b36;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  line-height: 1.55;
  flex: 1;
}
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.buy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}
.buy:hover { color: var(--acc); border-color: var(--acc); }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.textlink:hover { color: var(--acc); border-color: var(--acc); }
.buy.soon,
.buy.soon:hover {
  color: var(--mute);
  border-bottom: 1px dashed var(--line);
  cursor: default;
}
.prev {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  color: var(--mute);
  cursor: pointer;
}
.prev:hover { color: var(--acc); border-color: var(--acc); }
.tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 2px 7px;
  line-height: 1.5;
}
.card.is-soon h3,
.card.is-soon .pitch { opacity: 0.86; }

.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.set {
  border: 1px solid var(--ink);
  padding: 32px 28px 26px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.set.is-soon { border-color: var(--line); }
.set .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.set h3 { font-size: 34px; margin: 14px 0 8px; line-height: 1.1; }
.set h3 a { color: inherit; text-decoration: none; }
.set h3 a:hover { color: var(--acc); }
.set ul { list-style: none; padding: 0; margin: 8px 0 20px; flex: 1; }
.set li {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.set li a { text-decoration: none; border-bottom: 1px solid transparent; }
.set li a:hover { border-bottom-color: var(--acc); }
.set li span { color: var(--mute); }
.set .bp {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  line-height: 1;
  margin: 0 0 16px;
}
.set .bp s { font-size: 22px; color: var(--mute); margin-left: 10px; text-decoration: line-through; }
.set .actions .btn { flex: 1; }

.bundle {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.bundle h2 { font-size: 52px; line-height: 1.05; margin: 12px 0; }
.bundle p { color: #cfc7b8; margin: 0 0 8px; }
.bundle .kicker { color: #d9a37f; }
.bprice {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 72px;
  line-height: 0.9;
  margin: 0 0 8px;
}
.bprice s { font-size: 28px; color: #cfc7b8; margin-left: 12px; text-decoration: line-through; }
.bundle .btn { border-color: var(--bg); color: var(--bg); margin-top: 16px; }
.bundle .btn:hover { background: var(--bg); color: var(--ink); }
.bundle .btn.soon,
.bundle .btn.soon:hover {
  color: #cfc7b8;
  border-color: #8a8175;
  background: transparent;
}
.bundle :focus-visible { outline-color: #d9a37f; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps div { border-top: 1px solid var(--ink); padding-top: 16px; }
.steps b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.steps p { color: var(--mute); margin: 0; }

.glist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.glist a { background: var(--paper); padding: 28px; text-decoration: none; display: block; min-width: 0; }
.glist a:hover { background: #fff; }
.glist h3 { font-size: 26px; line-height: 1.15; margin: 10px 0 8px; }
.glist p { color: var(--mute); font-size: 15px; margin: 0; }

.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about h2 { font-size: 46px; margin-top: 10px; }
.about p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.about .sig { font-family: Inter, sans-serif; font-size: 14px; color: var(--mute); }

.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq h2 { font-size: 46px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary {
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.3;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acc); font-family: Inter, sans-serif; }
details[open] summary::after { content: "–"; }
details p { color: var(--mute); margin: 8px 0 4px; max-width: 640px; }

.catlinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.catlinks a {
  background: var(--paper);
  padding: 22px 24px;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
  min-height: 44px;
}
.catlinks a span {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
}
.catlinks a:hover { background: #fff; }

.crumbs { margin: 0 0 16px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #c9bfb0; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }

.page-hero { padding: 48px 0 28px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 8px 0 12px; }
.page-hero p { max-width: 640px; color: var(--mute); margin: 0; font-size: 18px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "intro buy" "body buy";
  column-gap: 56px;
  row-gap: 8px;
  padding-top: 42px;
  padding-bottom: 12px;
  border-top: 0;
}
.product-intro { grid-area: intro; min-width: 0; }
.product-body { grid-area: body; min-width: 0; }
.product-body section { padding: 32px 0; }
.product-body .head { margin-bottom: 18px; }
.product-body .head h2 { font-size: 36px; }
.contents .member-list li { display: block; border: 0; padding: 0; }
.product h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 8px 0 12px; }
.product .pitch { font-size: 24px; }
.lede { font-size: 17.5px; line-height: 1.6; margin: 0 0 8px; max-width: 62ch; }
.buybox {
  grid-area: buy;
  align-self: start;
  position: sticky;
  top: 92px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 26px 24px 22px;
}
.buybox .bprice { font-size: 64px; margin: 10px 0 6px; }
.buybox .fine { color: var(--mute); font-size: 14.5px; line-height: 1.5; margin: 0 0 16px; }
.buybox .btn { width: 100%; text-align: center; }
.contents h3 { font-size: 28px; margin: 26px 0 6px; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 15.5px;
}
.contents .num {
  color: var(--acc);
  font-size: 12px;
  letter-spacing: 0.08em;
  min-width: 2.4em;
}
.member-list { list-style: none; margin: 0; padding: 0; }
.member-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.member-list a:hover b { color: var(--acc); }
.member-list b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}
.member-list span { color: var(--mute); font-size: 14px; white-space: nowrap; }
.sample { margin: 0 0 26px; padding: 2px 0 4px 18px; border-left: 2px solid var(--acc); }
.sample h3 { font-size: 28px; margin: 2px 0 8px; }
.sample pre {
  white-space: pre-wrap;
  margin: 0;
  font: 14.5px/1.6 ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: #3f3b36;
}
.minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  padding: 22px;
  text-decoration: none;
  min-width: 0;
  min-height: 100%;
}
.mini:hover { background: #fff; }
.mini strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}
.mini .meta-line { color: var(--mute); font-size: 13px; }

.related { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 18px; }
.related a.r {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  text-decoration: none;
}
.related a.r b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
.related a.r span { color: var(--acc); font-size: 14px; white-space: nowrap; }

article.guide { max-width: 700px; margin: 0 auto; padding: 56px 0 24px; }
article.guide h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; margin: 12px 0 16px; }
article.guide .lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  color: var(--mute);
  line-height: 1.45;
}
article.guide h2 { font-size: 32px; margin: 36px 0 10px; }
article.guide p { font-size: 17px; }
article.guide pre {
  white-space: pre-wrap;
  background: var(--paper);
  border-left: 2px solid var(--acc);
  padding: 16px 18px;
  font: 14px/1.6 ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: #3f3b36;
  margin: 12px 0 16px;
}

footer { border-top: 1px solid var(--line); padding: 32px 0 56px; color: var(--mute); font-size: 13px; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  align-items: center;
}
.foot a { text-decoration: none; margin-right: 16px; }
.foot a:hover { color: var(--ink); }

dialog {
  border: 0;
  padding: 0;
  width: min(680px, calc(100vw - 24px));
  max-height: min(86vh, 780px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(29, 27, 24, 0.25);
}
dialog::backdrop { background: rgba(29, 27, 24, 0.5); }
.mod { padding: 22px 28px 24px; max-height: min(86vh, 780px); overflow: auto; }
.mod-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: var(--paper);
  padding-bottom: 8px;
  z-index: 1;
}
.mod .x {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
.mod h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.05; margin: 8px 0 6px; }
.mod ol { padding: 0; margin: 18px 0; list-style: none; counter-reset: p; }
.mod li { border-top: 1px solid var(--line); padding: 14px 0; counter-increment: p; }
.mod li b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}
.mod li b::before { content: counter(p, decimal-leading-zero) "  "; color: var(--acc); }
.mod li p {
  margin: 0;
  font: 13.5px/1.6 ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: #3f3b36;
}
.mod-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.mod-foot p { margin: 0; color: var(--mute); font-size: 14px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .nav-toggle { display: inline-flex; }
  #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px 18px 14px;
    z-index: 40;
  }
  .bar.is-open #site-nav { display: flex; }
  #site-nav a {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .hero, .bundle, .faq, .about, .steps, .product, .minis { grid-template-columns: 1fr; }
  .product { grid-template-areas: "intro" "buy" "body"; padding-top: 28px; }
  .buybox { position: static; }
  .hero { padding: 40px 0 32px; gap: 18px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  section { padding: 48px 0; }
  .head { display: block; }
  .head h2, .about h2, .faq h2 { font-size: 36px; }
  .head p { margin-top: 10px; }
  .bundle { padding: 32px 20px; }
  .bundle h2 { font-size: 38px; }
  .bprice { font-size: 56px; }
  .steps { gap: 18px; }
  .filters button.avail,
  .filters input { margin-left: 0; }
  .filters input { flex: 1 1 100%; min-width: 0; max-width: none; }
  .mod { padding: 16px 16px 18px; }
  .related a.r, .member-list a { flex-direction: column; gap: 2px; }
  .member-list span, .related a.r span { white-space: normal; }
  .card, .set { padding: 24px 18px 20px; }
}

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