/* Adjustable Angled Shelf Brackets — TopoCoArt landing page */

/* Comfortaa, SIL Open Font License. See assets/fonts/Comfortaa-OFL.txt.
   Subset to Latin + the punctuation and degree/inch marks the page uses. */
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #23201c;
  --ink-soft: #5c554c;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e2dbd0;
  --clay: #a8543a;
  --clay-dark: #8c432c;
  --wrap: 1120px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--clay-dark); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* header ------------------------------------------------------------ */

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 50%; }

/* buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.4rem;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--clay-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* hero -------------------------------------------------------------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: .9rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.6rem; }
.cta-note { font-size: .9rem; color: var(--ink-soft); }

.hero-shot { position: relative; }

.hero-shot > picture img {
  border-radius: var(--r);
  box-shadow: 0 18px 40px -22px rgba(35, 32, 28, .45);
}

/* he sits on the top edge of the photo, feet just over the lip */
.hero-cat {
  position: absolute;
  left: 50px;
  bottom: calc(100% - 28px);
  width: 148px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* chips ------------------------------------------------------------- */

.chips {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.chips div {
  padding: .2rem 1.6rem;
  border-left: 1px solid var(--line);
}
.chips div:first-child { border-left: 0; padding-left: 0; }
.chips strong {
  display: block;
  font-family: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--clay);
}
.chips span { font-size: .86rem; color: var(--ink-soft); }

/* generic sections -------------------------------------------------- */

section { scroll-margin-top: 5rem; }

.prose, .gallery, .faq, .colors, .closer, .video-block, .split {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.prose { max-width: 46rem; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; }

.fine { font-size: .88rem; color: var(--ink-soft); }

/* video ------------------------------------------------------------- */

.video-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border-top: 1px solid var(--line);
}
.video-wrap video {
  width: 100%;
  border-radius: var(--r);
  background: #ddd6cc;
  box-shadow: 0 18px 40px -24px rgba(35, 32, 28, .4);
}
.steps { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.steps li { margin-bottom: .55rem; color: var(--ink-soft); }
.steps strong { color: var(--ink); }

/* gallery ----------------------------------------------------------- */

.gallery { border-top: 1px solid var(--line); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.grid figure img {
  border-radius: var(--r);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.grid figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* split panels ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border-top: 1px solid var(--line);
}
.split img { border-radius: var(--r); }
.split.reverse figure { order: 2; }
.split p { color: var(--ink-soft); }

.specs { border-collapse: collapse; width: 100%; font-size: .96rem; }
.specs th, .specs td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--ink-soft); width: 45%; }

/* colors ------------------------------------------------------------ */

.colors { border-top: 1px solid var(--line); }
/* the scaled gray image reaches above its box, so the heading needs clearance */
.colors h2 { margin-bottom: 2.6rem; }
/* even columns; gray grows out of its own box and laps over the two beside it */
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
              margin-bottom: 1rem; align-items: start; }
.color-grid figure:nth-child(2) { position: relative; z-index: 2; }
.color-grid figure:nth-child(2) img {
  transform: scale(1.22);
  box-shadow: 0 20px 40px -22px rgba(35, 32, 28, .38);
}
/* the scale grows past the layout box, so the caption needs the room back */
.color-grid figure:nth-child(2) figcaption { margin-top: 2.9rem; text-align: center; }
.color-grid figure:nth-child(3) figcaption { text-align: right; }
.color-grid img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.color-grid figcaption { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }

/* faq --------------------------------------------------------------- */

.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .7rem 0 .2rem; color: var(--ink-soft); }
.ask { margin: 1.6rem 0 0; color: var(--ink-soft); }
.ask a { font-weight: 600; white-space: nowrap; }

/* closer ------------------------------------------------------------ */

.closer {
  text-align: center;
  border-top: 1px solid var(--line);
}
.closer p { color: var(--ink-soft); }
.alt-links { font-size: .92rem; margin-top: 1.4rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 0 clamp(1rem, 4vw, 2.5rem) 1.6rem;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* he sits on the footer rule and closes the page out */
.footer-cat {
  display: block;
  width: 150px;
  height: auto;
  margin: -46px auto 1.1rem;
  position: relative;
}
footer p { margin: 0; }

/* responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .hero, .video-block, .split { grid-template-columns: 1fr; }
  .hero-cat { width: 115px; left: 32px; }
  .split.reverse figure { order: 0; }
  .hero-shot { order: -1; }
  .chips { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .chips div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .color-grid { grid-template-columns: 1fr; }
  .color-grid figure:nth-child(2) { order: -1; }   /* gray leads on a phone */
  .color-grid figure:nth-child(2) img { transform: none; box-shadow: none; }
  .color-grid figure:nth-child(2) figcaption { margin-top: .5rem; text-align: left; }
  .color-grid figure:nth-child(3) figcaption { text-align: left; }
  .chips { grid-template-columns: 1fr; row-gap: 0; }
  .chips div { border-left: 0; border-top: 1px solid var(--line); padding: .7rem 0; }
  .chips div:first-child { border-top: 0; padding-top: 0; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
