/* ============================================================================
   263 Creative Studio — homepage layout
   Loaded only on pages using the "263 Homepage" template.
   Colours come from the tokens in style.css, so the page follows the
   dark/light toggle. Nothing here hard-codes a colour.
   ========================================================================= */

.c263-home { overflow-x: hidden; }
.c263-home .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.c263-home .sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.c263-home .sec--tight { padding-top: 0; }

.c263-home .trk {
  font: 500 .72rem var(--c263-display);
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1.5;
}
.c263-home .flagline {
  height: 3px;
  background: linear-gradient(90deg,
    var(--c263-green) 0 33.34%, var(--c263-gold) 0 66.67%, var(--c263-red) 0);
}
.c263-home .sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- hero ---------- */
.c263-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6.5rem) 0 0;
  background: radial-gradient(ellipse 62% 52% at 50% 26%, var(--c263-glow), transparent 72%);
}
.c263-hero .crest {
  width: min(420px, 76vw); margin: 0 auto;
  animation: c263CrestIn 1.5s cubic-bezier(.16,.8,.24,1) both;
}
html[data-theme="light"] .c263-hero .crest {
  filter: drop-shadow(0 18px 38px rgba(70,52,14,.28));
}
@keyframes c263CrestIn {
  from { opacity: 0; transform: scale(.9) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.c263-hero h1 {
  font: 200 clamp(2rem, 5.4vw, 3.9rem)/1.12 var(--c263-display);
  letter-spacing: -.012em;
  margin: 2.1rem auto 0; max-width: 15ch;
}
.c263-hero h1 em { font-style: normal; color: var(--c263-accent-txt); }
.c263-hero .sub {
  color: var(--c263-muted); max-width: 48ch;
  margin: 1.2rem auto 0; font-size: 1.06rem;
}
.c263-home .cta {
  display: flex; gap: .8rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2.2rem;
}
.c263-home .btn {
  display: inline-block; padding: 1rem 2rem;
  text-decoration: none; border-radius: var(--c263-radius);
  font: 500 .76rem var(--c263-display);
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--c263-accent);
  transition: background-color .28s, color .28s;
}
.c263-home .btn--solid { background: var(--c263-accent); color: var(--c263-on-accent); }
.c263-home .btn--solid:hover { background: transparent; color: var(--c263-accent-txt); }
.c263-home .btn--ghost { color: var(--c263-accent-txt); }
.c263-home .btn--ghost:hover { background: var(--c263-accent); color: var(--c263-on-accent); }
.c263-hero .flagline { margin-top: clamp(3rem, 7vw, 5rem); }

/* ---------- creed ---------- */
.c263-creed {
  background: var(--c263-panel);
  border-bottom: 1px solid var(--c263-line);
  transition: background-color .45s ease;
}
.c263-creed .wrap {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1rem, 5vw, 3.5rem);
  padding: 1.15rem 0; text-align: center;
  color: var(--c263-accent-txt);
}
.c263-creed i {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; display: inline-block;
  vertical-align: middle; margin: 0 .5rem;
}

/* ---------- section heads ---------- */
.c263-home .head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem;
}
.c263-home .eyebrow { color: var(--c263-accent-txt); margin-bottom: .75rem; }
.c263-home .head h2 {
  font: 200 clamp(1.9rem, 4.3vw, 3.1rem)/1.06 var(--c263-display);
  letter-spacing: -.012em; margin: 0;
}
.c263-home .lede { color: var(--c263-muted); max-width: 44ch; margin-top: .8rem; }
.c263-home .more {
  color: var(--c263-accent-txt); text-decoration: none; white-space: nowrap;
  font: 500 .76rem var(--c263-display);
  letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--c263-line); padding-bottom: .35rem;
}
.c263-home .more:hover { border-color: var(--c263-accent); }

/* ---------- category strip ---------- */
.c263-cats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--c263-line); border: 1px solid var(--c263-line);
}
.c263-cats a {
  background: var(--c263-bg); text-decoration: none;
  padding: 1.8rem 1.2rem 1.5rem; display: block;
  transition: background-color .3s;
}
.c263-cats a:hover { background: var(--c263-panel); }
.c263-cats svg {
  width: 38px; height: 38px; display: block; margin-bottom: 1rem;
  fill: none;
  stroke: var(--c263-accent);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.c263-cats a:hover svg {
  stroke: var(--c263-accent-txt);
  transform: translateY(-3px);
}
.c263-cats b { display: block; font: 400 1.15rem var(--c263-display); margin-bottom: .25rem; }
.c263-cats span { color: var(--c263-muted); font-size: .84rem; }

/* Keep the section heading and its "all …" link on one line once there is
   room; below that they stack, which is fine. */
@media (min-width: 900px) {
  .c263-home .head { flex-wrap: nowrap; }
  .c263-home .head > div:first-child { min-width: 0; flex: 1 1 auto; }
  .c263-home .head .more { flex: 0 0 auto; }
}

/* ---------- product grid ---------- */
.c263-grid { display: grid; gap: 1.6rem; }
.c263-grid--3 { grid-template-columns: repeat(3, 1fr); }
.c263-grid--4 { grid-template-columns: repeat(4, 1fr); }
.c263-card { text-decoration: none; display: block; }
.c263-card .well {
  position: relative; overflow: hidden;
  background: var(--c263-well); border: 1px solid var(--c263-line);
  transition: border-color .3s;
}
.c263-card:hover .well { border-color: var(--c263-accent); }
.c263-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,.8,.24,1);
}
.c263-card:hover img { transform: scale(1.055); }
.c263-card .badge {
  position: absolute; top: 0; left: 0;
  background: var(--c263-accent); color: var(--c263-on-accent);
  font: 600 .62rem var(--c263-display);
  letter-spacing: .16em; text-transform: uppercase; padding: .36rem .72rem;
}
.c263-card h3 { font: 400 1.06rem var(--c263-display); margin: 1rem 0 .3rem; }
.c263-card .row {
  display: flex; justify-content: space-between; gap: .75rem;
  color: var(--c263-muted); font-size: .88rem;
}
.c263-card .row strong { color: var(--c263-accent-txt); font-weight: 500; }
.c263-card .sw { display: flex; gap: .4rem; margin-top: .6rem; }
.c263-card .sw i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--c263-line); display: block;
}


/* Astra styles blockquote with its own muted colour, a left border and an
   indent. Both pull quotes here are display type, so reset all of it. */
.c263-home blockquote {
  color: var(--c263-fg);
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  font-style: normal;
  quotes: none;
}
.c263-home blockquote::before,
.c263-home blockquote::after { content: none; }

/* ---------- craft ---------- */
.c263-craft {
  background: var(--c263-panel);
  border-top: 1px solid var(--c263-line);
  border-bottom: 1px solid var(--c263-line);
  transition: background-color .45s ease;
}
.c263-craft .wrap {
  display: grid; grid-template-columns: 1fr 1.12fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.c263-craft blockquote {
  font: 200 clamp(1.7rem, 3.4vw, 2.6rem)/1.2 var(--c263-display);
  margin: 1.2rem 0 1.1rem;
}
.c263-craft p { color: var(--c263-muted); max-width: 40ch; }
.c263-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .8rem; }
.c263-mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  border: 1px solid var(--c263-line); display: block;
}
.c263-mosaic .tall { grid-row: span 2; }

/* ---------- accessories ---------- */
.c263-acc { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 1.6rem; }
.c263-acc .shot {
  border: 1px solid var(--c263-line); overflow: hidden; background: var(--c263-well);
}
.c263-acc .shot img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; display: block; }
.c263-tile {
  border: 1px solid var(--c263-line); padding: 1.8rem;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; text-decoration: none; background: var(--c263-bg);
  transition: border-color .3s, background-color .3s;
}
.c263-tile:hover { border-color: var(--c263-accent); background: var(--c263-panel); }
.c263-tile svg {
  width: 74px; height: 74px; stroke: var(--c263-accent);
  fill: none; stroke-width: 1.2; stroke-linejoin: round;
}
.c263-tile b { display: block; font: 400 1.15rem var(--c263-display); margin-bottom: .2rem; }
.c263-tile span { color: var(--c263-muted); font-size: .88rem; }

/* ---------- verse ---------- */
.c263-verse {
  text-align: center;
  background: radial-gradient(ellipse 58% 68% at 50% 50%, var(--c263-glow), transparent 72%);
}
.c263-verse blockquote {
  font: 200 clamp(1.6rem, 3.7vw, 2.7rem)/1.32 var(--c263-display);
  max-width: 21ch;
  margin: 1.3rem auto 0;
  color: var(--c263-fg);
}
.c263-verse cite { display: block; margin-top: 1.6rem; font-style: normal; color: var(--c263-accent-txt); }
.c263-verse .cta { margin-top: 2rem; }

/* ---------- join ---------- */
.c263-join {
  background: var(--c263-panel);
  border-top: 1px solid var(--c263-line);
  transition: background-color .45s ease;
}
.c263-join .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.c263-join h2 { font: 200 clamp(1.5rem, 3vw, 2.15rem)/1.1 var(--c263-display); margin: 0; }
.c263-join p { color: var(--c263-muted); margin-top: .75rem; max-width: 38ch; }
.c263-join form { display: flex; gap: .6rem; flex-wrap: wrap; }
.c263-join input {
  flex: 1; min-width: 200px; padding: 1rem 1.15rem;
  background: transparent; border: 1px solid var(--c263-line);
  border-radius: var(--c263-radius); color: var(--c263-fg); font: 1rem var(--c263-body);
}
.c263-join input:focus { border-color: var(--c263-accent); outline: none; }
.c263-join button {
  padding: 1rem 1.7rem; border: 1px solid var(--c263-accent);
  border-radius: var(--c263-radius); background: var(--c263-accent);
  color: var(--c263-on-accent); font: 500 .76rem var(--c263-display);
  letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: background-color .28s, color .28s;
}
.c263-join button:hover { background: transparent; color: var(--c263-accent-txt); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .c263-cats { grid-template-columns: repeat(2, 1fr); }
  .c263-grid--3, .c263-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .c263-craft .wrap { grid-template-columns: 1fr; }
  .c263-acc { grid-template-columns: 1fr 1fr; }
  .c263-acc .shot { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .c263-join .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .c263-grid--3, .c263-grid--4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .c263-home *, .c263-home *::before, .c263-home *::after {
    animation: none !important; transition: none !important;
  }
}
