/* SEGOL — shared styles. Recreates the Shopify Craft theme as configured on segolculture.com. */

:root {
  --bg: 250 239 227;          /* cream  #FAEFE3 */
  --fg: 0 0 0;                /* black */
  --font: "Unbounded", sans-serif;
  --page-width: 1200px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--bg));
  color: rgb(var(--fg) / .75);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .6px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 750px) { body { font-size: 16px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgb(var(--fg) / .5); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: rgb(var(--fg)); color: rgb(var(--bg)); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header (logo top-center, menu drawer, sticky + reduce logo) ---------- */

.header-wrapper {
  position: sticky; top: 0; z-index: 30;
  background: rgb(var(--bg));
}
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 17px 15px;
}
@media (min-width: 750px) { .header { padding: 27px 32px; } }

.header__menu-toggle {
  justify-self: start;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-left: -6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: rgb(var(--fg));
}
.header__menu-toggle svg { width: 20px; height: 20px; }
.header__menu-toggle .icon-close { display: none; }
body.drawer-open .header__menu-toggle .icon-open { display: none; }
body.drawer-open .header__menu-toggle .icon-close { display: block; }

.header__logo { display: block; width: 100px; transition: width .3s ease; }
.header__logo img { width: 100%; }
.scrolled-past-header .header__logo { width: 75px; }

/* ---------- Menu drawer ---------- */

.menu-drawer, .menu-overlay {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: var(--header-bottom, 160px);
}
.menu-overlay {
  background: rgb(var(--fg) / .5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 20;
}
.menu-drawer {
  right: auto;
  width: 100%;
  background: rgb(var(--bg));
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
  z-index: 25;
  padding-top: 30px;
}
@media (min-width: 750px) { .menu-drawer { width: 400px; } }
body.drawer-open .menu-overlay { opacity: 1; visibility: visible; }
body.drawer-open .menu-drawer { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }

.menu-drawer ul { list-style: none; margin: 0; padding: 0; }
.menu-drawer a {
  display: block;
  padding: 11px 30px;
  font-size: 18px; line-height: 1.45; letter-spacing: .6px;
  color: rgb(var(--fg));
  text-decoration: none;
}
.menu-drawer a:hover, .menu-drawer a[aria-current="page"] { background: rgb(var(--fg) / .04); }

/* ---------- Page width ---------- */

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 15px;
}
@media (min-width: 750px) { .page-width { padding: 0 50px; } }

/* ---------- Shared link list (Email / Instagram / Spotify / Substack) ---------- */

.segol-links {
  display: flex; flex-direction: column; gap: 20px;
  align-items: center; margin: 0;
}
.segol-links a {
  font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: rgb(var(--fg));
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  line-height: 1.8;
  transition: border-color .25s ease, opacity .25s ease;
}
.segol-links a:hover { border-color: currentColor; }

/* ---------- THINK (manifesto) ---------- */

.segol-manifesto {
  max-width: 660px; margin: 0 auto; padding: 18px 22px 12vh;
  color: rgb(var(--fg));
}
@media (min-width: 750px) { .segol-manifesto { padding: 24px 24px 16vh; } }

.segol-manifesto__epigraph {
  text-align: center;
  font-size: 21px; line-height: 1.4; font-weight: 700;
  margin: 0 0 1.4em;
}
@media (min-width: 750px) { .segol-manifesto__epigraph { font-size: 25px; } }

.segol-manifesto__rule {
  width: 40px; height: 2px; margin: 0 auto 3em;
  background: rgb(var(--fg)); opacity: .5;
}
.segol-manifesto p {
  font-size: 16px; line-height: 1.9; margin: 0 0 1.7em;
  text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
}
@media (min-width: 750px) { .segol-manifesto p { font-size: 17px; } }
.segol-manifesto p:last-of-type { margin-bottom: 0; }
.segol-manifesto .segol-links { padding-top: 6vh; }

/* ---------- JOIN ---------- */

.segol-join {
  max-width: 620px; margin: 0 auto; padding: calc(3vh + 30px) 24px calc(5vh + 39px);
  text-align: center; color: rgb(var(--fg));
}
@media (min-width: 750px) { .segol-join { padding: calc(3vh + 40px) 24px calc(5vh + 52px); } }

.segol-join__welcome {
  font-size: 19px; line-height: 1.7; margin: 0 auto;
  max-width: 46ch;
}
.segol-join__account {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 0; padding-top: 44px; padding-bottom: 44px;
}
.segol-join__account a {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 14px 30px; line-height: 1.8;
  color: rgb(var(--bg));
  background: rgb(var(--fg));
  border: 1px solid rgb(var(--fg));
  transition: opacity .25s ease;
}
.segol-join__account a.is-outline {
  color: rgb(var(--fg));
  background: transparent;
}
.segol-join__account a:hover { opacity: .72; }

/* ---------- OWN (product grid) ---------- */

.collection { padding-top: 30px; padding-bottom: 39px; }
@media (min-width: 750px) { .collection { padding-top: 40px; padding-bottom: 52px; } }

.product-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 750px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: block; height: 100%;
  border: 1px solid rgb(var(--fg) / .1);
  border-radius: var(--radius);
  background: rgb(var(--bg));
  text-decoration: none;
  overflow: hidden;
}
.card__media { aspect-ratio: 384 / 621; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.03); } }

.card__content { padding: 27px 20px 28px; }
.card__heading {
  margin: 0 0 7px;
  font-size: 13.2px; font-weight: 400; line-height: 18.2px; letter-spacing: .66px;
  color: rgb(var(--fg));
}
@media (min-width: 750px) { .card__heading { font-size: 14.3px; } }
.card:hover .card__heading { text-decoration: underline; text-underline-offset: .3rem; }
.price { font-size: 16px; line-height: 24px; letter-spacing: 1px; color: rgb(var(--fg)); }

/* ---------- Product page ---------- */

.product { padding-top: 27px; padding-bottom: 51px; }
@media (min-width: 750px) { .product { padding-top: 36px; padding-bottom: 68px; } }

.product__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 750px) {
  .product__grid { grid-template-columns: 55fr 45fr; gap: 50px; }
}
@media (min-width: 990px) {
  .product__grid { grid-template-columns: minmax(0, 1fr) 445px; }
}

.product__media { display: flex; justify-content: center; align-items: flex-start; }
.product__media img {
  width: 86%; max-width: 451px;
  border-radius: var(--radius);
}
@media (min-width: 750px) { .product__media img { width: 100%; } }

.product__info { max-width: 445px; }
@media (min-width: 750px) { .product__info { padding-top: 44px; } }

.product__title {
  margin: 0;
  font-size: 33px; line-height: 42px; font-weight: 400; letter-spacing: .66px;
  color: rgb(var(--fg));
}
@media (min-width: 750px) { .product__title { font-size: 44px; line-height: 56px; } }

.product__price { margin-top: 15px; font-size: 16px; line-height: 24px; letter-spacing: 1.3px; color: rgb(var(--fg)); }
@media (min-width: 750px) { .product__price { font-size: 18px; line-height: 27px; } }

.product__note { margin: 6px 0 0; font-size: 10px; line-height: 1.7; letter-spacing: .7px; }
@media (min-width: 750px) { .product__note { font-size: 12px; } }

.button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 440px; min-height: 47px;
  margin-top: 28px; padding: 0 30px;
  font: inherit; font-size: 15px; letter-spacing: 1px; line-height: 1.2;
  text-decoration: none;
  color: rgb(var(--bg));
  background: rgb(var(--fg));
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow .1s ease;
}
.button:hover { box-shadow: 0 0 0 2px rgb(var(--fg)); }

.product__description { margin-top: 32px; }
.product__description p { margin: 0; }

.share {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; letter-spacing: .6px;
  color: rgb(var(--fg));
}
.share svg { width: 13px; height: 13px; }
.share:hover span { text-decoration: underline; text-underline-offset: .3rem; }

/* ---------- Footer (product page only, as on the live site) ---------- */

.footer {
  border-top: 1px solid rgb(var(--fg) / .08);
  padding: 36px 0 160px;
  margin-top: 51px;
}
@media (min-width: 750px) { .footer { margin-top: 68px; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
