/* lamplightergoods.com: warm archival paper and charcoal-line theme, with amber lamplight accent.
   Dark mode switches to the night palette: light chalk ink on dark paper with the same amber flame. */
:root{
  --paper:#efe9dc; --paper-2:#e5ddcb; --ink:#1e1b17; --graphite:#4b453d; --smudge:#9a9284;
  --flame:#e9a23b; --ember:#9a5208; --btn-ink:#fffaf0;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  /* paper tooth: two layers of SVG noise, no image file */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .10 0 0 0 0 .08 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  /* a hand-drawn charcoal rule, in ink */
  --rule:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='14' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Cpath d='M2 8 C80 5 160 10 240 7 S360 6 398 8' stroke='%231e1b17' stroke-width='5' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
  /* a thinner one for dividers inside a section */
  --rule-thin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='10' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4'/%3E%3C/filter%3E%3Cpath d='M2 5 C90 4 170 7 250 5 S360 4 398 6' stroke='%239a9284' stroke-width='3' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
  color-scheme:light;
}
/* the night palette; the rules are drawn in chalk */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#12161d; --paper-2:#181d26; --ink:#ece6da; --graphite:#b9b2a5; --smudge:#5d6470;
  --flame:#f2b45a; --ember:#f2b45a; --btn-ink:#1a1206; color-scheme:dark;
  --rule:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='14' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Cpath d='M2 8 C80 5 160 10 240 7 S360 6 398 8' stroke='%23ece6da' stroke-width='5' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
  --rule-thin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='10' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4'/%3E%3C/filter%3E%3Cpath d='M2 5 C90 4 170 7 250 5 S360 4 398 6' stroke='%235d6470' stroke-width='3' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
}}
:root[data-theme="dark"]{
  --paper:#12161d; --paper-2:#181d26; --ink:#ece6da; --graphite:#b9b2a5; --smudge:#5d6470;
  --flame:#f2b45a; --ember:#f2b45a; --btn-ink:#1a1206; color-scheme:dark;
  --rule:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='14' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Cpath d='M2 8 C80 5 160 10 240 7 S360 6 398 8' stroke='%23ece6da' stroke-width='5' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
  --rule-thin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='10' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4'/%3E%3C/filter%3E%3Cpath d='M2 5 C90 4 170 7 250 5 S360 4 398 6' stroke='%235d6470' stroke-width='3' fill='none' stroke-linecap='round' opacity='.85' filter='url(%23r)'/%3E%3C/svg%3E");
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font:18px/1.6 var(--serif);background:var(--grain),var(--fibre),var(--paper);-webkit-text-size-adjust:100%}
a{color:inherit}
main a:not(.btn){color:var(--ember)}
:focus-visible{outline:3px solid var(--ember);outline-offset:3px}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-weight:600;line-height:1.12;margin:0;letter-spacing:-.01em}
h1{font-size:clamp(2.3rem,5.4vw,4.2rem);line-height:1.08}
h1 span{display:block;text-wrap:balance}
h1 span+span{color:var(--graphite);font-style:italic;font-weight:500}
h2{font-size:clamp(1.7rem,3.6vw,2.4rem);margin-bottom:.5em}
h3{font-size:1.35rem}
p{margin:0 0 1em;max-width:62ch}
.small{font:14px/1.5 var(--sans);color:var(--graphite)}
/* the hand-drawn rule above every section headline and the hero */
.rule,section h2::before{content:"";display:block;width:120px;height:14px;background:var(--rule) left center/100% 100% no-repeat;margin:0 0 18px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* header: over the hero on a wide screen, the nav on paper where the drawing may run under it */
header.top{position:absolute;inset:0 0 auto 0;z-index:3}
header.top .wrap{display:flex;justify-content:space-between;align-items:center;padding-top:18px;padding-bottom:18px;gap:12px}
.brand{font-size:1.35rem;font-weight:600;text-decoration:none;letter-spacing:.01em}
nav{display:flex;gap:18px;font:15px var(--sans);align-items:center}
nav a{text-decoration:none;padding:12px 2px;white-space:nowrap}
nav a:hover{text-decoration:underline}
@media (max-width:640px){nav .hide-s{display:none}}

/* hero: the charcoal lantern fills the right side and fades into the paper;
   on phones it sits on top and the copy rises over its faded foot. The pictures carry their own paper,
   and a night version for dark mode, so they are shown as drawn. */
.hero{position:relative;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);min-height:min(100vh,860px);align-items:center}
.hero .copy{padding:110px 0 60px max(20px,calc((100vw - 1080px)/2 + 20px));position:relative;z-index:2}
.hero .lede{font-size:1.18rem;max-width:44ch;margin:22px 0 28px;color:var(--graphite)}
.art{position:relative;align-self:stretch;min-height:420px;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 14%),linear-gradient(#000 88%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 14%),linear-gradient(#000 88%,transparent);mask-composite:intersect}
.art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 45%}
/* the nav sits on paper where the drawing runs under it */
nav{background:var(--grain),var(--paper);padding:0 14px;border-radius:3px}
@media (max-width:820px){
  header.top{position:static}
  nav{background:none;padding:0}
  .hero{display:flex;flex-direction:column;min-height:0}
  .art{order:-1;width:100%;height:42vh;min-height:240px;
    -webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent);mask-composite:add}
  .art img{object-position:55% 40%}
  .hero .copy{padding:0 20px 36px;margin-top:-52px}
  .hero h1{font-size:clamp(2.1rem,9.6vw,2.6rem)}
  .hero .lede{font-size:1.08rem;margin:16px 0 22px}
}

/* the story (P3): Monet-style porch painting beside the Night Watch words; it keeps its own colour in both modes */
.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:40px;align-items:center}
/* a fade on all four sides, so the painting has no hard edge against the paper; narrower on the right, where a lantern hangs at the edge */
.story img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 97%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 9%,#000 97%,transparent),linear-gradient(transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}
/* on a phone the crop keeps the right edge, where the lanterns hang */
@media (max-width:760px){.story{grid-template-columns:1fr;gap:18px}.story img{max-height:420px;object-position:100% 50%}}

.btn{display:inline-block;font:600 16px var(--sans);background:var(--ember);color:var(--btn-ink);border:0;border-radius:3px;padding:15px 24px;text-decoration:none;cursor:pointer;min-height:48px}
.btns{display:flex;flex-wrap:wrap;gap:12px}
a.btn:hover{filter:brightness(1.08)}
[hidden]{display:none!important}

section{padding:64px 0}
section.alt{background:var(--grain),var(--paper-2)}

/* product cards: no boxes; a drawn line on top of each */
.products{display:grid;grid-template-columns:repeat(2,1fr);gap:34px 40px;align-items:start}
@media (max-width:820px){.products{grid-template-columns:1fr;gap:30px}}
.card{background:var(--rule-thin) left top/100% 10px no-repeat;padding:24px 0 0}
.card h3{margin-bottom:6px}
.card .tag{font:14px var(--sans);color:var(--graphite);margin-bottom:12px;display:block}
.card details{margin-top:8px}
.card summary{font:600 15px var(--sans);color:var(--ember);cursor:pointer;padding:8px 0;min-height:44px;display:flex;align-items:center;justify-content:space-between;list-style:none;max-width:62ch}
/* display:flex drops the browser's own arrow, so the summary draws a plus and minus to show it opens */
.card summary::-webkit-details-marker{display:none}
.card summary::after{content:"+";font:400 1.5rem/1 var(--sans)}
.card details[open] summary::after{content:"\2212"}
.card ul{margin:6px 0 12px;padding-left:1.1em;font-size:1rem}
.card li{margin:4px 0}

/* the three boxes: three across on a wide screen, one column on a phone */
.tiers{display:grid;grid-template-columns:1fr;gap:30px;margin:26px 0}
@media (min-width:761px){.tiers{grid-template-columns:repeat(3,1fr)}}
.tier{background:var(--rule-thin) left top/100% 10px no-repeat;padding:22px 0 0}
.tier b{display:block;font-size:1.3rem;line-height:1.3}
.tier span{display:block;font:15px/1.45 var(--sans);color:var(--graphite)}
.tier .units{margin:8px 0 10px;padding-left:1.2em;color:var(--ink);font:15px/1.45 var(--sans)}
.tier .units li{margin:2px 0}
.tier .warn{color:var(--ink);font-weight:600;margin:0 0 6px}
.tier .tier-note{color:var(--graphite);margin:4px 0 0;font-size:14px}
.when{font:17px/1.5 var(--sans);margin:0 0 10px}

.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.steps li{counter-increment:s;font-size:1rem;background:var(--rule-thin) left top/100% 10px no-repeat;padding-top:16px}
.steps li::before{content:counter(s);display:block;font:600 1.6rem var(--serif);color:var(--ember)}
.steps b{display:block;margin-bottom:4px}
@media (max-width:900px){.steps{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.steps{grid-template-columns:1fr}}

.terms p{margin:.5rem 0}
.preorder .btns{margin-top:22px}
footer .wrap{padding-top:30px;padding-bottom:50px;background:var(--rule-thin) 20px top/calc(100% - 40px) 10px no-repeat}
