/* saboori — styles
   ---------------------------------------------------------------------------
   Everything that controls how saboorimade.com looks. The page content lives
   in index.html; this file only styles it.

   Contents
     1. Colours, fonts and spacing   (the :root block — start here)
     2. Base styles
     3. Header
     4. Opening (headline + stitch pattern)
     5. Section headings
     6. Gallery (filters + sideways shelf)
     7. About
     8. Contact form
     9. Care
    10. Footer

   Tips
   - Colours are named once in :root (e.g. --purple-deep) and reused everywhere.
     Change a colour there and it updates across the whole site.
   - --section-space sets the gap between sections.
   - Text sizes are in rem (1rem = 16px at the visitor's normal text size).

   Brand palette (from the designer, 2 Oct 2026) — purple is the primary
   brand colour (it's what the logo mark and wordmark are drawn in); the
   greens are used sparingly, as a secondary accent.
   --------------------------------------------------------------------------- */

/* ==========================================================================
   1. Colours, fonts and spacing
   ========================================================================== */
:root {
  color-scheme: light;
  --surface: #f4f2ed;        /* cream */
  --raised: #fbf9f6;
  --sunk: #e7e2d8;
  --ink: #2b2930;
  --muted: #5d5964;
  --purple-light: #d9cfe7;   /* light purple */
  --purple: #7953a2;         /* medium purple — primary: links, nav, focus, small accents */
  --purple-deep: #533a71;    /* dark purple — solid buttons, headline emphasis, strong accents */
  --green: #8d9b68;          /* light green — secondary, used sparingly */
  --green-deep: #4f5535;     /* dark green — secondary accent (the about-section quote) */
  --line: #ded9cf;
  --stitch: color-mix(in srgb, var(--purple-light) 30%, var(--surface) 70%);
  --on-purple: #fbf9f6;      /* text on solid purple buttons */
  --field-line: #a79cb3;
  --shadow-ink: 43 41 48;          /* ink as RGB channels, for translucent shadows */
  --shadow-print: 0 1px 2px rgb(var(--shadow-ink) / .06), 0 24px 48px -22px rgb(var(--shadow-ink) / .32);
  --display: "Vollkorn", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing: change this one number to tighten or loosen every section at once */
  --section-space: clamp(64px, 7vw, 96px);
}

/* ==========================================================================
   2. Base styles
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px;
}
[hidden] { display: none !important; }
/* jumping to a section from the menu: stop the sticky header covering its heading */
section[id] { scroll-margin-top: 88px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
/* small uppercase tracked text: section labels, nav, filters, form labels */
.label, nav.site a, .chip, .field label {
  font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.label { margin: 0; }
.label.accent { color: var(--purple); }

/* ==========================================================================
   3. Header
   ========================================================================== */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand span { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--purple); }
nav.site { display: flex; gap: 26px; flex-wrap: wrap; }
nav.site a { text-decoration: none; }
nav.site a:hover { color: var(--purple); }

/* ==========================================================================
   4. Opening (headline + stitch pattern)
   ========================================================================== */
.open { position: relative; overflow: hidden; }
.open .stitches { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 22%, rgba(0,0,0,.35) 38%, #000 62%),
                      linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 22%, rgba(0,0,0,.35) 38%, #000 62%),
                      linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
          mask-composite: intersect;
  pointer-events: none; }
.open .wrap { position: relative; padding-block: clamp(72px, 9vw, 112px) var(--section-space); }
.open h1 { margin-top: 22px; font-size: clamp(2.75rem, 1rem + 5.6vw, 5.5rem); line-height: 1; letter-spacing: -.02em; max-width: 12.5ch; }
.open h1 em { font-style: normal; color: var(--purple-deep); }
.open .sub { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 34ch; margin: 30px 0 0; }
.open .go { display: flex; gap: 32px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; }
.btn.solid { background: var(--purple-deep); color: var(--on-purple); padding: 15px 28px; border-radius: 999px; }
.btn.quiet { background: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--ink); }

/* ==========================================================================
   5. Section headings
   ========================================================================== */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head h2 { font-size: clamp(2.125rem, 1rem + 3.4vw, 3.25rem); line-height: 1.05; letter-spacing: -.01em; }
.intro.under { margin-top: 18px; }
.intro { max-width: 46ch; color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ==========================================================================
   6. Gallery (filters + sideways shelf)
   ========================================================================== */
#work { padding-block: 0 var(--section-space); }   /* no top gap: the header above already ends with one */
.filters { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 8px; }
.chip { background: none; border: 0; padding: 4px 0; cursor: pointer; border-bottom: 1px solid transparent; }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.count, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* the shelf: one row of pieces that scrolls sideways, bleeding off the right edge */
.arrows { display: flex; gap: 8px; }
.arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--field-line); background: transparent;
  color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.arrow:disabled { opacity: .3; cursor: default; }

.shelf {
  --edge: max(24px, calc((100% - 1080px) / 2 + 24px));   /* lines the first piece up with the page text */
  --photo-h: clamp(15rem, 10rem + 16vw, 21.25rem);
  display: flex; gap: clamp(28px, 4vw, 48px); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 32px var(--edge) 56px; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf::after { content: ""; flex: 0 0 1px; }           /* keeps the end padding in every browser */
.shelf:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.piece { margin: 0; flex: none; scroll-snap-align: start; }
.piece:nth-child(even of :not([hidden])) { margin-top: 56px; }
.piece picture { display: block; }
.piece img { display: block; height: var(--photo-h); width: auto; max-width: 82vw; object-fit: cover;
  border-radius: 2px; box-shadow: var(--shadow-print); }
.piece figcaption { width: 0; min-width: 100%; margin-top: 18px; }   /* caption wraps to the photo's width */
.piece h3 { font-size: 1.5625rem; line-height: 1.15; }
.piece .label { margin-top: 6px; }
.piece .cap { font-size: 0.875rem; color: var(--muted); margin: 10px 0 0; max-width: 42ch; }

.progress { display: flex; align-items: center; gap: 20px; margin-top: -24px; }
.where { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }
.track { flex-grow: 1; height: 1px; background: var(--line); position: relative; }
.thumb { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); width: 100%;
  transform-origin: left; }

/* ==========================================================================
   7. About
   ========================================================================== */
#about { background: var(--raised); padding-block: var(--section-space); }
.about { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 820px) { .about { grid-template-columns: 1fr 1.1fr; gap: 9%; align-items: start; } }
.about blockquote { margin: 0; font-family: var(--display);
  font-size: clamp(2.375rem, 1rem + 3.8vw, 3.75rem); line-height: 1.05; letter-spacing: -.01em; color: var(--green-deep); }
.about .story p { font-size: 1.0625rem; line-height: 1.75; max-width: 58ch; }
.about .story p:first-child::first-line { font-weight: 500; }

/* ==========================================================================
   8. Contact form
   ========================================================================== */
#contact { padding-block: var(--section-space); }
form { max-width: 640px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.field { margin-bottom: 28px; }
.field label { display: block; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--body); font-size: 1.0625rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 10px 0; }
.field select { appearance: none; -webkit-appearance: none;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 6px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--purple-deep);
  box-shadow: 0 1px 0 var(--purple-deep); }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.note { font-size: 0.8125rem; color: var(--muted); margin-top: 22px; }
#copied { font-size: 0.875rem; color: var(--purple-deep); font-weight: 700; margin-top: 12px; }

/* ==========================================================================
   9. Care
   ========================================================================== */
#care { padding-block: 0 var(--section-space); }   /* follows contact on the same background */
.care { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .care { grid-template-columns: repeat(3, 1fr); } }
.care section { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 18px; }
.care h3 { font-size: 1.5rem; margin-bottom: 14px; }
.care ul { margin: 0; padding: 0; list-style: none; }
.care li { font-size: 0.9375rem; color: var(--muted); padding: 7px 0; }
.care li b { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
footer.site { position: relative; overflow: hidden; padding-block: 56px 64px; border-top: 1px solid var(--line); }
footer.site .cols { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
footer.site .cols p { margin: 0; }
.foot-name { font-family: var(--display); font-size: 1.3125rem; color: var(--ink); }
.iglink { display: inline-flex; align-items: center; gap: 7px; }
.ig { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
