/* ---------- Brand settings: change these to rebrand ---------- */
:root {
  --terra: #AC6E38;
  --terra-dark: #8F5628;
  --cream: #F5EBCF;
  --cream-light: #FBF6E6;
  --ink: #4A2C16;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-script: 'Caveat Brush', 'Segoe Script', cursive;
  --font-body: 'Karla', system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--terra); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.script { font-family: var(--font-script); font-size: 2rem; margin: 0; line-height: 1.1; }
.script--dark { color: var(--terra); font-size: 2.2rem; margin: .4rem 0 1rem; }

/* Grain, like the printed cards */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid var(--terra);
  background: var(--terra); color: var(--cream); padding: .75rem 1.5rem; border-radius: 2px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); transform: translateY(-2px); }
.btn--small { padding: .5rem 1rem; font-size: .9rem; }
.btn--cream { background: var(--cream); color: var(--terra-dark); border-color: var(--cream); }
.btn--cream:hover { background: var(--cream-light); border-color: var(--cream-light); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: rgba(245,235,207,.15); border-color: var(--cream); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: .6rem clamp(1rem, 4vw, 3rem); background: var(--cream); border-bottom: 1px solid rgba(172,110,56,.25);
}
.nav__logo img { height: 56px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--terra); }
.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__toggle { display: none; }
.nav__links a { text-decoration: none; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav__links .btn { color: var(--cream); }

/* Hero */
.hero { background: var(--terra); color: var(--cream); overflow: hidden; }
.hero__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.hero__logo { width: min(440px, 100%); margin-bottom: 1.5rem; }
.hero .eyebrow { font-size: 1.25rem; }
.hero .script { font-size: 2.6rem; margin-top: .1rem; }
.hero__lede { max-width: 34rem; margin: 1.5rem 0 2rem; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__cards { position: relative; width: 100%; aspect-ratio: 1 / .95; }
.hero__card {
  position: absolute; width: 62%; background: #fff; padding: 10px; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(60,30,10,.35);
}
.hero__card--a { left: 0; top: 4%; transform: rotate(-5deg); z-index: 2; }
.hero__card--b { right: 0; bottom: 0; transform: rotate(4deg); z-index: 1; }

/* Strip */
.strip { background: var(--cream-light); text-align: center; padding: 1rem; border-bottom: 1px solid rgba(172,110,56,.25); }
.strip p { margin: 0; color: var(--terra-dark); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  background: transparent; color: var(--terra); border: 2px solid var(--terra); padding: .4rem 1rem; border-radius: 999px; cursor: pointer;
}
.pill.is-active, .pill:hover { background: var(--terra); color: var(--cream); }

/* Grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem 1.5rem; }
.card { display: flex; flex-direction: column; }
.card.is-hidden { display: none; }
.card__img {
  background: var(--cream-light); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 14px;
  box-shadow: 0 6px 18px rgba(74,44,22,.18); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover .card__img { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 14px 28px rgba(74,44,22,.25); }
.card__img img { max-height: 100%; width: auto; object-fit: contain; }
.card__img--wide img { width: 100%; height: auto; }
.card__body { padding: 1rem .25rem 0; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.card h3 { font-size: 1.15rem; color: var(--ink); }
.tag { font-size: .7rem; vertical-align: middle; background: var(--terra); color: var(--cream); padding: 2px 8px; border-radius: 999px; margin-left: 4px; letter-spacing: .1em; }
.add {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  background: none; border: none; color: var(--terra); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 4px;
}
.add.is-added { color: var(--ink); text-decoration: none; }
.add.is-added::before { content: "\2713\00a0"; }
.note { margin-top: 2.5rem; color: var(--terra-dark); font-style: italic; text-align: center; }

/* Custom designs */
.custom { background: var(--cream); border-top: 1px solid rgba(172,110,56,.25); }
.custom__inner { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.custom__img img { background: #fff; padding: 12px; box-shadow: 0 14px 32px rgba(74,44,22,.22); transform: rotate(1.5deg); }
.custom__caption { font-family: var(--font-script); color: var(--terra); font-size: 1.5rem; text-align: center; margin: 1.2rem 0 0; }
.custom__text .eyebrow { color: var(--terra-dark); }
.custom__text h2 { margin: .3rem 0 1rem; }
.custom__text p { max-width: 34rem; }
.custom__text .btn { margin-top: .5rem; }

/* About */
.about { background: var(--cream-light); }
.about__inner { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__img img { width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; background: #fff; padding: 12px; box-shadow: 0 14px 32px rgba(74,44,22,.22); transform: rotate(-2deg); }
.about__text p { max-width: 34rem; }
.placeholder { background: rgba(172,110,56,.12); border-left: 4px solid var(--terra); padding: .75rem 1rem; font-size: .95rem; }

/* Contact */
.contact { background: var(--terra); color: var(--cream); }
.contact__inner { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact h2 { color: var(--cream); margin-bottom: 1rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; font-size: 1.15rem; }
.contact__list li { margin-bottom: .75rem; }
.contact__list span { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; opacity: .85; }
.form { display: grid; gap: 1rem; }
.form label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; display: grid; gap: .35rem; }
.form input, .form textarea {
  font: inherit; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem;
  background: var(--cream-light); color: var(--ink); border: 2px solid transparent; border-radius: 2px; padding: .7rem .8rem;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form__note { font-size: .85rem; opacity: .85; margin: 0; }

/* Footer */
.footer { background: var(--terra-dark); color: var(--cream); text-align: center; padding: 3rem 1rem 2rem; }
.footer img { width: 160px; margin: 0 auto 1rem; }
.footer__small { font-size: .85rem; opacity: .8; margin-top: 1.5rem; }

/* Mobile */
@media (max-width: 860px) {
  .hero__inner, .about__inner, .contact__inner, .custom__inner { grid-template-columns: 1fr; }
  .hero__cards { order: -1; max-width: 520px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Multi-page additions ---------- */
.h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--terra); margin: .2rem 0 .6rem; }
.contact .h1 { color: var(--cream); margin-bottom: 1rem; }
.nav__links a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .35rem; border-radius: 999px; background: var(--cream); color: var(--terra-dark); font-size: .8rem; line-height: 1.5; text-align: center; }
.badge[hidden] { display: none; }
.count { font-size: 1rem; letter-spacing: .1em; color: var(--terra-dark); opacity: .8; margin-left: .5rem; }
button.card__img { border: 0; cursor: zoom-in; font: inherit; width: 100%; }
.card__img img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.card h3 { font-size: 1.05rem; }
.card__body { align-items: flex-start; flex-direction: column; gap: .25rem; }
.custom__inner--single { grid-template-columns: 1fr; max-width: 760px; }
.btn--outline { background: transparent; color: var(--terra); }
.btn--outline:hover { background: var(--terra); color: var(--cream); }
.about__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.about--page { min-height: 70vh; display: grid; align-items: center; }
.contact--page { min-height: 75vh; }
.cta { background: var(--terra); color: var(--cream); text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 1rem; }
.cta h2 { color: var(--cream); margin-bottom: .75rem; }
.cta p { max-width: 36rem; margin: 0 auto 1.5rem; }
.footer__links { display: flex; justify-content: center; gap: 1.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; margin: 1.5rem 0 0; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.form__row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.linklike { background: none; border: 0; color: var(--cream); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: .9rem; }
.form__status { min-height: 1.5em; margin: 0; font-weight: 700; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(40,22,10,.88); padding: 1rem; }
.lb.is-open { display: flex; }
.lb__panel { background: var(--cream-light); max-width: min(92vw, 900px); max-height: 94vh; display: flex; flex-direction: column; padding: 14px 14px 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__panel img { max-width: 100%; max-height: calc(94vh - 110px); object-fit: contain; margin: 0 auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .25rem 0; flex-wrap: wrap; }
.lb__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; color: var(--ink); }
.lb__btn { position: absolute; background: var(--cream); color: var(--terra-dark); border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .add { font-size: .95rem; }

/* Stacked custom examples (sized by the column width, so it never runs into the text) */
.custom__img, .custom__text, .custom__stack { min-width: 0; }
.custom__stack { position: relative; width: 100%; aspect-ratio: 1 / .92; }
.custom__ex { position: absolute; width: 72%; height: auto; background: #fff; padding: 10px; box-shadow: 0 14px 32px rgba(74,44,22,.25); }
.custom__ex--back { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.custom__ex--front { left: 0; top: 26%; transform: rotate(-3deg); z-index: 2; }
.custom__stack .custom__caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (max-width: 860px) { .custom__stack { max-width: 520px; margin: 0 auto; } }

/* Phones: swipe sideways through the designs, one card at a time */
.swipe { display: none; }
@media (max-width: 640px) {
  .grid {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * clamp(1rem, 4vw, 3rem)); padding: .5rem 10% 1.25rem; scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .card:hover .card__img { transform: none; }
  .swipe { display: block; text-align: center; margin: .25rem 0 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--terra-dark); }
  .section__head { align-items: flex-start; }
}

/* ---------- Design numbers ---------- */
.card h3 { font-weight: 500; }
.num { margin: 0; font-family: var(--font-body); font-size: .8rem; font-weight: 400; letter-spacing: .09em; color: var(--terra-dark); opacity: .85; }
.lb__num { font-family: var(--font-body); font-size: .8rem; font-weight: 400; letter-spacing: .09em; color: var(--terra-dark); margin-left: .6rem; text-transform: none; }

/* ---------- Three sizes mockup ---------- */
.sizes { background: var(--cream-light); border-top: 1px solid rgba(172,110,56,.25); }
.sizes__inner { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.sizes .eyebrow { color: var(--terra-dark); }
.sizes h2 { margin: .3rem 0 1rem; }
.sizes__lede { max-width: 38rem; margin: 0 auto 2.5rem; }
.fmts { --u0: clamp(.62rem, 3.5vw, 3.2rem); --u: var(--u0); display: flex; justify-content: center; align-items: flex-end; gap: calc(var(--u) * 1.3); }
.fmts--landscape { --u: calc(var(--u0) * .72); }
.fmt { margin: 0; display: flex; flex-direction: column; align-items: center; }
.fmt__paper { position: relative; isolation: isolate; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(74,44,22,.22); padding: calc(var(--u) * .3); }
.fmt__paper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.fmt--card .fmt__paper { width: calc(var(--u) * 4.6); height: calc(var(--u) * 7.2); }
.fmt--post .fmt__paper { width: calc(var(--u) * 5); height: calc(var(--u) * 7); }
.fmt--print .fmt__paper { width: calc(var(--u) * 8); height: calc(var(--u) * 10); padding: calc(var(--u) * .9); }
.fmts--landscape .fmt--card .fmt__paper { width: calc(var(--u) * 7.2); height: calc(var(--u) * 4.6); }
.fmts--landscape .fmt--post .fmt__paper { width: calc(var(--u) * 7); height: calc(var(--u) * 5); }
.fmts--landscape .fmt--print .fmt__paper { width: calc(var(--u) * 10); height: calc(var(--u) * 8); }
/* the folded card: a spine on the left and the inside page peeking out behind */
.fmt--card .fmt__paper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74,44,22,.16), rgba(74,44,22,0) 9%); pointer-events: none; }
.fmt--card .fmt__paper::before { content: ""; position: absolute; z-index: -1; top: calc(var(--u) * .06); left: calc(var(--u) * .2); width: 100%; height: 100%; background: #f1ebdd; box-shadow: 0 8px 18px rgba(74,44,22,.18); }
.fmt figcaption { margin-top: 1rem; font-size: .85rem; line-height: 1.35; color: var(--ink); }
.fmt figcaption strong { display: block; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--terra-dark); }
@media (max-width: 640px) { .fmt figcaption { font-size: .7rem; } .fmt figcaption strong { font-size: .72rem; letter-spacing: .06em; } }

/* inside the enlarged view */
.lb__fmts { --u0: clamp(.5rem, 2.4vw, 2.1rem); padding: .5rem 0 0; }
.lb__fmts[hidden] { display: none; }
.lb__fmts .fmts { --u0: clamp(.5rem, 2.4vw, 2.1rem); }
.lb__fmts .fmt figcaption { font-size: .75rem; margin-top: .6rem; }
.lb__sizes { background: none; border: 0; cursor: pointer; padding: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--terra); text-decoration: underline; text-underline-offset: 4px; }
.lb__actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

[hidden] { display: none !important; }

/* Phone menu */
@media (max-width: 640px) {
  .nav { gap: .6rem; padding-top: .4rem; padding-bottom: .4rem; }
  .nav__logo { margin-right: auto; }
  .nav__logo img { height: 42px; }
  .nav__links { display: contents; }
  .nav__links .btn--small { padding: .5rem .8rem; font-size: .75rem; letter-spacing: .06em; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; background: transparent; border: 2px solid var(--terra); border-radius: 2px; cursor: pointer; }
  .nav__toggle span { display: block; height: 2px; background: var(--terra); transition: transform .2s ease, opacity .2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid rgba(172,110,56,.25); box-shadow: 0 10px 18px rgba(74,44,22,.12); }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a { padding: 1rem clamp(1rem, 4vw, 3rem); font-size: 1rem; border-top: 1px solid rgba(172,110,56,.15); }
}
