/* DesignMyDrawer — "shop drawing on warm paper": navy ink, graph-paper grid, one pencil-red accent. */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --card: #fbf8f2;
  --ink: #1c2838;
  --ink-2: #4b5869;
  --ink-3: #7a8494;
  --line: rgba(28, 40, 56, .16);
  --line-2: rgba(28, 40, 56, .32);
  --red: #d6452a;
  --red-2: #b83620;
  --green: #2e7a57;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(28,40,56,.06), 0 12px 32px -18px rgba(28,40,56,.35);
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --grid: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--body);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(28,40,56,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,40,56,.045) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; letter-spacing: -.01em; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ── Header ── */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.logo b { color: var(--red); font-weight: 600; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); text-decoration: none; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); transition: transform .15s ease, background .15s ease, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(28,40,56,.6); }
.btn:active { transform: translateY(0); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Type ── */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h1 em, h2 em { font-style: italic; color: var(--red); font-weight: 400; }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: 24px; letter-spacing: -.015em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; }

/* ── Hero ── */
.hero { padding: clamp(40px, 7vw, 96px) 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .lede { margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 28px; color: var(--ink-2); font-size: 14px; }
.hero-meta span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 7px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--ink); color: var(--paper); font: 600 11px/1 var(--mono);
  letter-spacing: .12em; padding: 7px 10px; border-radius: 6px; text-transform: uppercase; }
.plan .stamp { position: absolute; right: -10px; bottom: -16px; transform: rotate(-6deg); background: var(--red); color: #fff;
  font: 600 13px/1.15 var(--mono); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; }
.plan .stamp b { display: block; font: 600 22px/1 var(--display); letter-spacing: -.02em; }

/* draw-in animation for the hero drawing */
.draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s cubic-bezier(.6,0,.2,1) forwards; }
.d2 { animation-delay: .35s; } .d3 { animation-delay: .6s; } .d4 { animation-delay: .85s; } .d5 { animation-delay: 1.05s; }
.fade { opacity: 0; animation: fade .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.r2 { animation-delay: .08s; } .rise.r3 { animation-delay: .16s; } .rise.r4 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .draw, .fade, .rise { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; } }

/* ── Sections ── */
section { padding: clamp(56px, 8vw, 110px) 0; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.rule { border: 0; border-top: 1px dashed var(--line-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 13px/1 var(--mono); color: var(--red); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; }
.step p { margin: 0; color: var(--ink-2); }
.step svg { height: 110px; width: 100%; margin: 6px 0 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ticks b { display: block; }
.ticks span { color: var(--ink-2); }

.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.use { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; display: grid; gap: 10px; }
.use:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.use svg { width: 100%; height: auto; aspect-ratio: 4/3; background: var(--paper); border-radius: 10px; }
.use h3 { font-size: 20px; }
.use p { margin: 0; color: var(--ink-2); font-size: 15px; }
.use .go { font: 600 13px/1 var(--mono); color: var(--red); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sw { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sw i { width: 46px; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 6px 14px -8px rgba(0,0,0,.4); }

.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pc .amt { font: 500 44px/1 var(--display); letter-spacing: -.03em; margin: 14px 0 6px; }
.pc .amt small { font: 500 15px var(--body); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.pc p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .price-cards { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

.cta-band { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(32px, 6vw, 70px);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(244,239,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(244,239,230,.06) 1px, transparent 1px);
  background-size: var(--grid) var(--grid); }
.cta-band h2 em { color: #ff8a6f; }
.cta-band p { color: rgba(244,239,230,.75); margin: 12px 0 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ── Article pages ── */
.article { padding: 56px 0 90px; }
.article .wrap { max-width: 860px; }
.article h1 { font-size: clamp(38px, 5vw, 62px); margin: 14px 0 18px; }
.article h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 14px; }
.article p, .article li { color: var(--ink-2); }
.article ol li, .article ul li { margin: 8px 0; }
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 22px 0; }
.figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.note { border-left: 3px solid var(--red); background: var(--card); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Finish rows on the home page */
#finishes { display: grid; gap: 30px; margin-top: 22px; }
.finrow h3 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.finrow h3 small { font: 400 15px var(--body); color: var(--ink-2); letter-spacing: 0; }
.finrow .swatches { margin-top: 14px; }
.sw { position: relative; width: 74px; text-align: center; font-size: 12.5px; line-height: 1.2; }
.sw i { position: relative; overflow: hidden; }
.sw.gloss i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%); }
.sw.tl i { background-image: linear-gradient(45deg, #d9d4ca 25%, transparent 25%, transparent 75%, #d9d4ca 75%), linear-gradient(45deg, #d9d4ca 25%, #fff 25%, #fff 75%, #d9d4ca 75%) !important;
  background-size: 12px 12px !important; background-position: 0 0, 6px 6px !important; }
.sw.tl i b { position: absolute; inset: 0; opacity: .62; }
.sw .so, .sw-note .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f0b429; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sw .so { position: absolute; top: -4px; right: 10px; }
.sw-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

.famblock { display: grid; gap: 26px; padding-top: 8px; }
.famblock + .famblock { border-top: 1px dashed var(--line-2); padding-top: 34px; margin-top: 8px; }
.famh { font-size: clamp(26px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.famh small { font: 400 15px var(--body); color: var(--ink-2); letter-spacing: 0; max-width: 46em; }
.finrow h4 { margin: 0; font: 600 18px/1.2 var(--display); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.finrow h4 small { font: 400 14px var(--body); color: var(--ink-3); }
.sw i.chk { background-image: linear-gradient(45deg, #d9d4ca 25%, transparent 25%, transparent 75%, #d9d4ca 75%), linear-gradient(45deg, #d9d4ca 25%, #fff 25%, #fff 75%, #d9d4ca 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.sw i.chk b { position: absolute; inset: 0; opacity: .62; }

/* Printed vs bamboo */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs .col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.vs .col.us { border-color: var(--ink); box-shadow: var(--shadow); }
.vs h3 { font-size: 22px; margin-bottom: 14px; }
.vs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.vs li b { color: var(--ink); }
.vs .us li::before { content: "✓"; color: var(--green); font-weight: 700; }
.vs .them li::before { content: "–"; color: var(--ink-3); font-weight: 700; text-align: center; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* Idea / landing pages */
.idea-hero { padding: clamp(36px, 6vw, 72px) 0 30px; }
.idea-hero h1 { font-size: clamp(38px, 5.4vw, 70px); margin: 14px 0 18px; max-width: 16em; }
.idea-hero .lede { margin: 0 0 26px; }
.crumbs { font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.examples { padding: 20px 0 40px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 16px; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ex img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.ex-b { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.ex-b h3 { font-size: 21px; }
.ex-b p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ex-meta { font-size: 12px !important; color: var(--ink-3) !important; }
.ex .go { font: 600 13px/1 var(--mono); color: var(--red); text-decoration: none; margin-top: 4px; }
.ex .go:hover { text-decoration: underline; }
.idea-body { padding-top: 10px; }
.idea-body .wrap { max-width: 860px; }
.idea-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 44px 0 14px; }
.idea-body p, .idea-body li { color: var(--ink-2); }
.idea-body li { margin: 7px 0; }
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rel a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.rel a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rel span { display: block; padding: 10px 12px; font-size: 15px; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hub img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
