/* Layout: wide bands separated by the stitched dashed line from the mats; that line is the only ornament. */
:root{
  --bg:#f5f6ef; --surface:#ffffff; --fg:#16211c; --muted:#57645d; --line:#c9d1ca;
  --thread:#e0a526; --accent:#1c7c57; --on-accent:#ffffff; --warn:#a4470f;
  --display:"Bricolage Grotesque","Trebuchet MS",sans-serif;
  --body:"Figtree",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#101714; --surface:#18221d; --fg:#e9efe9; --muted:#9daba3; --line:#2c3a33;
  --thread:#eab543; --accent:#5fc49a; --on-accent:#0c1410; --warn:#f0a36b; color-scheme:dark } }
:root[data-theme="dark"]{
  --bg:#101714; --surface:#18221d; --fg:#e9efe9; --muted:#9daba3; --line:#2c3a33;
  --thread:#eab543; --accent:#5fc49a; --on-accent:#0c1410; --warn:#f0a36b; color-scheme:dark }

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font:400 17px/1.55 var(--body)}
img{max-width:100%}
[hidden]{display:none!important}
.wrap{max-width:1120px;margin:0 auto;padding-inline:20px}
h1,h2,h3{font-family:var(--display);line-height:1.08;margin:0;text-wrap:balance}
h1{font-size:clamp(2.2rem,6vw,4rem);font-weight:700;letter-spacing:-.02em}
h2{font-size:clamp(1.55rem,3.4vw,2.2rem);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.12rem;font-weight:700}
p{margin:0}
.muted{color:var(--muted)}
a{color:inherit}
:focus-visible{outline:3px solid var(--thread);outline-offset:3px}

/* header */
.hdr{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--bg);border-bottom:2px dashed var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;padding-block:10px;flex-wrap:wrap}
.logo{font:700 1.3rem var(--display);text-decoration:none}
.logo span{color:var(--accent)}
.nav{display:flex;gap:4px;align-items:center;overflow-x:auto;max-width:100%}
.nav a{padding:8px 11px;border-radius:8px;text-decoration:none;font-weight:600;font-size:.95rem;white-space:nowrap}
.nav a[aria-current]{background:var(--surface);box-shadow:inset 0 0 0 2px var(--line)}

.btn{display:inline-block;font:600 1rem var(--body);padding:13px 24px;border-radius:999px;border:2px solid var(--accent);background:var(--accent);color:var(--on-accent);text-decoration:none;cursor:pointer}
.btn.ghost{background:transparent;color:var(--fg);border-color:var(--line)}
.btn.small{padding:7px 12px;font-size:.9rem}

/* bands */
.band{padding-block:52px;border-top:2px dashed var(--line)}
.band.first{border-top:0}
.head{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;max-width:42em}
.lead{font-size:1.14rem;color:var(--muted);max-width:36em}
.two{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.two > *{min-width:0}
.stack{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.cta{display:flex;gap:10px;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 40px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid2 > *,.grid3 > *{display:flex;flex-direction:column;gap:6px;min-width:0}

.cards > div{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}
.hello{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.hello p{max-width:38em}
.tryrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tryrow span{font-size:.92rem;color:var(--muted)}

.gallery{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.gallery figure{margin:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.photo{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:18px;display:block;background:var(--line)}
figcaption{color:var(--muted);font-size:.95rem}

/* the mat */
.mat{--mat-c:#5a4e49;--thread-c:#e0a526;aspect-ratio:3/2;width:100%;max-width:100%;border-radius:18px;padding:11px;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(0,0,0,.14)),var(--mat-c);box-shadow:0 20px 40px -24px #000}
.mat-in{height:100%;border:2.5px dashed var(--thread-c);border-radius:10px;position:relative;overflow:hidden}
.plate{position:absolute;left:50%;top:47%;width:43%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#f4f1e8;box-shadow:0 6px 14px -6px rgba(0,0,0,.6)}
.plate::after{content:"";position:absolute;inset:15%;border-radius:50%;border:1px solid #cfcabb}
.fork,.knife{position:absolute;top:22%;height:50%;width:2.2%;border-radius:99px;background:#d5d8d6}
.fork{left:17%}.knife{right:17%}
.mat.bare .plate,.mat.bare .fork,.mat.bare .knife{display:none}
.stitch{position:absolute;max-width:88%;color:var(--thread-c);line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:clamp(1.05rem,3.3vw,2rem);text-shadow:0 1px 0 rgba(0,0,0,.45),0 -1px 0 rgba(255,255,255,.12)}
.pos-br .stitch{right:5%;bottom:5%}
.pos-bc .stitch{left:50%;bottom:5%;transform:translateX(-50%)}
.pos-tl .stitch{left:5%;top:5%}
.f-script{font-family:"Yellowtail","Brush Script MT",cursive}
.f-elegant{font-family:"Great Vibes","Snell Roundhand",cursive;font-size:clamp(1.2rem,3.8vw,2.3rem)}
.f-serif{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:clamp(.95rem,2.8vw,1.7rem)}
.f-block{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:clamp(.85rem,2.4vw,1.45rem)}
.coaster{aspect-ratio:1;width:120px;border-radius:14px;padding:7px}
.coaster .mat-in{display:grid;place-items:center;border-width:2px}
.coaster .stitch{position:static;font-size:1rem;max-width:92%;transform:none}

/* forms */
label,.lbl{font-weight:600;font-size:.92rem}
input[type=text],input[type=number],textarea{font:500 1rem var(--body);padding:11px 12px;border:2px solid var(--line);border-radius:14px;background:var(--surface);color:var(--fg);width:100%}
textarea{min-height:170px;resize:vertical;line-height:1.45}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.fields{display:flex;flex-direction:column;gap:16px}
.opts{display:flex;gap:8px;flex-wrap:wrap}
.opt{font:600 .92rem var(--body);padding:9px 15px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--fg);cursor:pointer}
.opt[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.sw{width:38px;height:38px;border-radius:50%;border:2px solid var(--line);cursor:pointer;padding:0}
.sw[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:2px}

.designer{display:grid;grid-template-columns:1.15fr 1fr;gap:36px;align-items:start}
.designer > *{min-width:0}
.preview{position:sticky;top:calc(env(safe-area-inset-top,0px) + 76px);display:flex;flex-direction:column;gap:16px}
.also{display:flex;gap:16px;align-items:center}

.panel{background:var(--surface);border:2px dashed var(--thread);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:8px}
.big{font:700 clamp(2.1rem,6vw,3.3rem)/1 var(--display);font-variant-numeric:tabular-nums;color:var(--accent)}
.rows{display:flex;flex-direction:column;margin:0}
.rows div{display:flex;justify-content:space-between;gap:16px;padding-block:8px;border-bottom:1px solid var(--line)}
.rows div:last-child{border-bottom:0;font-weight:700}
.rows dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.note{color:var(--warn);font-weight:600;font-size:.95rem}

.price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.price b{font:700 clamp(3rem,9vw,5rem)/1 var(--display);color:var(--accent)}
ul.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
ul.ticks li{padding-left:26px;position:relative}
ul.ticks li::before{content:"";position:absolute;left:2px;top:.45em;width:12px;height:6px;border-left:3px solid var(--accent);border-bottom:3px solid var(--accent);transform:rotate(-45deg)}

ol.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;counter-reset:s}
ol.steps li{counter-increment:s;display:flex;flex-direction:column;gap:6px;min-width:0}
ol.steps li::before{content:counter(s);font:700 1.1rem var(--display);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:2px dashed var(--accent);color:var(--accent)}

.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:0}
.facts div{display:flex;flex-direction:column;gap:4px;min-width:0}
.facts dt{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.facts dd{margin:0;font:700 1.2rem var(--display)}

table.cmp{border-collapse:collapse;width:100%;min-width:480px}
.scroll{overflow-x:auto}
.cmp th,.cmp td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.cmp thead th{font:700 1rem var(--display)}
.cmp td:last-child,.cmp th:last-child{background:var(--surface)}

details{border-bottom:1px solid var(--line);padding-block:14px;max-width:46em}
summary{font:700 1.08rem var(--display);cursor:pointer}
details p{margin-top:8px;color:var(--muted)}

.contact{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px;align-items:flex-start;min-width:0}
.sel{font:600 1.08rem var(--body);user-select:all;overflow-wrap:anywhere}
.foot{padding-block:26px;border-top:2px dashed var(--line);color:var(--muted);font-size:.92rem}

@media (max-width:820px){
  .two,.designer,.contact,.grid2,.grid3,.gallery{grid-template-columns:1fr}
  ol.steps,.facts{grid-template-columns:1fr 1fr}
  .band{padding-block:38px}
  .preview{position:static}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
