/* Urvara Looms website. One stylesheet for every page.
   Fonts: Cormorant Garamond (headings, hosted in /fonts) and the device's own sans-serif for text.
   Photos are served from The Saffron House's Shopify image server (cdn.shopify.com). */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #2b1a12;
  --muted: #6b5548;
  --paper: #fbf7f1;
  --tint: #f4ebdf;
  --card: #fffdf9;
  --line: #e4d6c4;
  --saffron: #bc501f;   /* brand saffron */
  --madder: #7a2e12;
  --madder-deep: #5c210c;
  --zari: #b8913a;
  --on-dark: #f8efe3;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3e9dd;
    --muted: #c8b5a5;
    --paper: #1a120f;
    --tint: #231915;
    --card: #211813;
    --line: #3a2c24;
    --saffron: #e98a4f;
    --madder: #f0a77a;
    --madder-deep: #2a1610;
    --zari: #d6b25e;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--madder); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 500; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.05em; }
em.serif, .serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
@media (min-width: 760px) { .wrap { padding: 0 44px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 50; }

.label {
  display: block; font: 600 .74rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .2em;
  color: var(--saffron); margin: 0 0 1.1em;
}
.lede { font-size: clamp(1.08rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px;
  border: 1.5px solid var(--madder); border-radius: 999px; background: var(--madder); color: var(--paper);
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button:hover { background: var(--saffron); border-color: var(--saffron); color: var(--paper); }
.button-quiet { background: transparent; color: var(--madder); }
.button-quiet:hover { background: var(--madder); border-color: var(--madder); color: var(--paper); }
.button-light { background: var(--on-dark); border-color: var(--on-dark); color: #5c210c; }
.button-light:hover { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.button-ghost-light { background: transparent; border-color: rgba(248, 239, 227, .6); color: var(--on-dark); }
.button-ghost-light:hover { background: var(--on-dark); color: #5c210c; border-color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.arrow-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow-link span { display: inline-block; transition: transform .2s; }
.arrow-link:hover span { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brandmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brandmark img { width: 78px; }
.brandmark span { font: 600 1.55rem/1 var(--serif); letter-spacing: .03em; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 28px; }
.nav-desktop a, .nav-mobile a { color: var(--ink); text-decoration: none; font-size: .93rem; letter-spacing: .02em; }
.nav-desktop a { padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--madder); border-bottom-color: var(--zari); }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; font: 600 .9rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 12px 0 12px 12px; color: var(--ink); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: ""; display: inline-block; width: 18px; height: 11px; margin-left: 10px; vertical-align: -1px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }
.nav-mobile[open] summary::after { content: "\00d7"; border: 0; background: none; width: auto; height: auto; font-size: 1.3rem; vertical-align: -2px; }
.nav-mobile ul { list-style: none; margin: 0; padding: 12px 22px 22px; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(43, 26, 18, .08); }
.nav-mobile li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
@media (max-width: 979px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .brandmark img { width: 62px; }
  .brandmark span { font-size: 1.35rem; }
  .header-row { min-height: 64px; }
}

/* ---------- woven border band ---------- */
.band {
  height: 20px; border-top: 3px solid var(--zari); border-bottom: 3px solid var(--zari);
  background-color: #7a2e12;
  background-image:
    linear-gradient(45deg, transparent 42%, var(--zari) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--zari) 42% 58%, transparent 58%);
  background-size: 16px 16px; background-position: center;
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: #5c210c; color: var(--on-dark); }
.section-dark .label { color: #e9b36b; }
.section-dark .lede, .section-dark p { color: rgba(248, 239, 227, .82); }
.section-dark a:not(.button) { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 40px 72px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } .split.wide-right { grid-template-columns: .85fr 1.15fr; } }
.split.top { align-items: start; }

/* ---------- photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.portrait { aspect-ratio: 2 / 3; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.land { aspect-ratio: 3 / 2; }
.photo.square { aspect-ratio: 1 / 1; }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--zari); border-radius: var(--radius); z-index: 0; }
.framed .photo { z-index: 1; }
@media (max-width: 899px) { .framed::before { inset: 12px -10px -12px 10px; } }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; letter-spacing: .01em; }

/* ---------- home hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; gap: 48px 72px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-emblem { width: min(280px, 70%); margin-bottom: 30px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--saffron); }

/* page hero (inner pages) */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.page-hero .lede { margin: 0 auto; }
.hero-photo { margin-top: clamp(-8px, -2vw, 0px); }
.hero-photo .photo { aspect-ratio: 16 / 7; border-radius: 0; }
@media (max-width: 759px) { .hero-photo .photo { aspect-ratio: 4 / 3; } }

/* ---------- at a glance ---------- */
.glance { border-bottom: 1px solid var(--line); }
.glance dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 900px) { .glance dl { grid-template-columns: repeat(4, 1fr); } }
.glance dl > div { padding: 34px 18px; text-align: center; border-right: 1px solid var(--line); }
.glance dl > div:nth-child(2n) { border-right: 0; }
@media (max-width: 899px) { .glance dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (min-width: 900px) { .glance dl > div:nth-child(2n) { border-right: 1px solid var(--line); } .glance dl > div:last-child { border-right: 0; } }
.glance dt { font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1.1 var(--serif); color: var(--saffron); }
.glance dd { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---------- brand panels ---------- */
.brands { display: grid; gap: 28px; }
@media (min-width: 900px) { .brands { grid-template-columns: 1.2fr .8fr; gap: 32px; } }
.brand-panel { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-panel .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.brand-body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; flex: 1; }
.brand-body h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: .1em; }
.tagline { font: italic 500 1.3rem/1.3 var(--serif); color: var(--saffron); margin-bottom: 1em; }
.brand-body p { color: var(--muted); }
.brand-body .button, .brand-body .bottom { margin-top: auto; align-self: flex-start; }
.brand-ms { background: var(--tint); }
.brand-ms .ms-art { aspect-ratio: 16 / 10; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--zari) 16%, transparent), transparent 60%); }
.brand-ms .ms-art img { width: 30%; max-width: 150px; }
@media (min-width: 900px) { .brand-ms .ms-art { aspect-ratio: auto; flex: 0 0 48%; } }
.soon { display: inline-block; border: 1px dashed var(--zari); border-radius: 999px; padding: 7px 16px; font: 600 .82rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }

/* ---------- pillars and cards ---------- */
.pillars { display: grid; gap: 34px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.pillar .photo { margin-bottom: 22px; }
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--muted); margin: 0; }
.ruled > * { border-top: 1px solid var(--zari); padding-top: 22px; }
.num { display: block; font: italic 500 1.25rem/1 var(--serif); color: var(--saffron); margin-bottom: 12px; }
.grid-5 { display: grid; gap: 30px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.grid-5 h3 { font-size: 1.35rem; }
.grid-5 p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- emblem feature ---------- */
.emblem-feature { text-align: center; }
.emblem-feature .emblem { width: min(560px, 92%); margin: 0 auto clamp(36px, 5vw, 56px); }

/* ---------- photo mosaic ---------- */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; } .mosaic .m-big { grid-column: span 2; grid-row: span 2; } .mosaic .m-tall { grid-row: span 2; } }
.mosaic .photo { aspect-ratio: auto; height: 100%; min-height: 220px; }

/* ---------- feature with photo behind ---------- */
.feature { position: relative; }
.feature .photo { aspect-ratio: 16 / 8; border-radius: 0; }
@media (max-width: 759px) { .feature .photo { aspect-ratio: 4 / 3; } }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); max-width: 560px; position: relative; z-index: 2; margin: -90px 22px 0; box-shadow: 0 24px 50px rgba(43, 26, 18, .10); }
@media (min-width: 760px) { .feature-card { margin: -140px 0 0 44px; } }
@media (min-width: 1290px) { .feature-card { margin-left: calc((100vw - var(--wrap)) / 2 + 44px); } }
.feature-card p { color: var(--muted); }

/* ---------- facts list ---------- */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 200px 1fr; } }
.facts dt { font: 600 .78rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--saffron); }
.facts dd { margin: 0; }

/* ---------- people ---------- */
.people { display: grid; gap: 28px; }
@media (min-width: 640px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.person h3 { margin-bottom: .15em; }
.role { font: 600 .76rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--saffron); margin-bottom: 1em; }
.person p:last-child { color: var(--muted); margin: 0; }

/* ---------- contact cards ---------- */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--saffron); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { font-size: 1.5rem; }
.contact-card p { color: var(--muted); }
.contact-card .big { color: var(--ink); font-size: 1.05rem; }

/* ---------- quote ---------- */
.quote { font: italic 500 clamp(1.7rem, 3.4vw, 2.6rem)/1.25 var(--serif); max-width: 24ch; margin: 0 auto; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .lede { margin: 0 auto 28px; }
.cta-band .actions { justify-content: center; }

/* ---------- prose pages ---------- */
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose strong { color: var(--ink); }

/* ---------- sign-in ---------- */
.nav-desktop .nav-signin a { border: 1.5px solid var(--madder); border-radius: 999px; padding: 7px 16px; color: var(--madder); font-weight: 600; }
.nav-desktop .nav-signin a:hover, .nav-desktop .nav-signin a[aria-current="page"] { background: var(--madder); color: var(--paper); border-bottom-color: var(--madder); }
.signin-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .signin-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.signin-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--saffron); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.signin-card#vendors { border-top-color: var(--zari); }
.signin-card img { width: 120px; margin-bottom: 22px; }
.signin-card h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.signin-card p { color: var(--muted); }
.signin-card .button { margin: 8px 0 18px; }
.signin-card .fine { font-size: .88rem; margin: 0; }
.signin-note { text-align: center; margin: 36px auto 0; max-width: 40em; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: #2b1a12; color: #e8dccd; padding: clamp(56px, 8vw, 88px) 0 32px; font-size: .92rem; }
.site-footer a { color: #e8dccd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand .name { font: 600 1.6rem/1.1 var(--serif); color: #fff; margin-bottom: 8px; }
.footer-brand p { color: #bfae9c; max-width: 26em; }
.site-footer h4 { font: 600 .74rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: #e9b36b; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid #4a3328; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: #a8957f; font-size: .82rem; }
.footer-legal p { margin: 0; }

/* ---------- utilities (the CSP blocks inline style attributes, so small adjustments live here) ---------- */
.pt-0 { padding-top: 0 !important; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center-text { text-align: center; }
.left-text { text-align: left; }
.actions.center { justify-content: center; }
.one-col { grid-template-columns: 1fr !important; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.spacer-xl { height: clamp(64px, 9vw, 120px); }
.ar-43 { aspect-ratio: 4 / 3 !important; }
.asset-box { padding: clamp(28px, 5vw, 56px); }
.nf-emblem { width: 240px; margin: 0 auto 28px; }
.signin-card img.flower-icon { width: 48px; }
.pos-70-50 img { object-position: 70% 50%; }
.pos-50-30 img { object-position: 50% 30%; }
.pos-50-45 img { object-position: 50% 45%; }
.pos-50-60 img { object-position: 50% 60%; }
.pos-50-40 img { object-position: 50% 40%; }
