/*
Theme Name: SisterNet
Theme URI: https://sisternet.org
Author: SisterNet
Description: A calm, commerce-ready WordPress theme for SisterNet's community, events and shop.
Version: 1.0.2
Text Domain: sisternet
Requires at least: 6.6
Requires PHP: 8.2
*/

:root {
  --sn-peach: #ffc8b0;
  --sn-peach-deep: #e5a68b;
  --sn-blush: #fff3ed;
  --sn-rose: #8a4f3c;
  --sn-ink: #2d2927;
  --sn-muted: #716965;
  --sn-paper: #fffdfa;
  --sn-white: #ffffff;
  --sn-line: #eadfd9;
  --sn-sage: #5c725e;
  --sn-shadow: 0 22px 60px rgba(72, 46, 35, 0.12);
  --sn-display: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  --sn-body: "Avenir Next", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sn-paper);
  color: var(--sn-ink);
  font-family: var(--sn-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--sn-rose); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sn-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sn-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.sn-section { padding: clamp(70px, 9vw, 120px) 0; }
.sn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--sn-rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sn-kicker::before { width: 30px; height: 2px; background: currentColor; content: ""; }
.sn-title, .entry-title, .woocommerce-products-header__title {
  margin: 0;
  font-family: var(--sn-display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.sn-section-title { margin: 0; font-family: var(--sn-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.18; font-weight: 600; }
.sn-lead { max-width: 680px; color: var(--sn-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.sn-button, .wp-element-button, button[type="submit"], input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex !important;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px !important;
  border: 1px solid var(--sn-ink) !important;
  border-radius: 999px !important;
  background: var(--sn-ink) !important;
  color: var(--sn-white) !important;
  font-weight: 750 !important;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.sn-button:hover, .wp-element-button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-2px); background: var(--sn-rose) !important; border-color: var(--sn-rose) !important; }
.sn-button--light { background: var(--sn-white) !important; color: var(--sn-ink) !important; border-color: transparent !important; }
.sn-text-link { color: var(--sn-rose); font-weight: 750; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(78, 58, 49, .08);
  background: rgba(255, 253, 250, .94);
  backdrop-filter: blur(16px);
}
.sn-header-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 30px; }
.custom-logo-link img, .sn-logo { width: auto; height: 68px; }
.sn-brand-text { font-family: var(--sn-display); font-size: 1.5rem; text-decoration: none; }
.sn-nav { display: flex; align-items: center; gap: 8px; }
.sn-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sn-nav a { display: block; padding: 10px 13px; border-radius: 999px; font-size: .95rem; font-weight: 700; text-decoration: none; }
.sn-nav a:hover, .sn-nav .current-menu-item > a { background: var(--sn-blush); color: var(--sn-rose); }
.sn-cart-link { display: flex !important; align-items: center; gap: 7px; background: var(--sn-peach) !important; }
.sn-cart-count { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--sn-white); font-size: .72rem; }
.sn-menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--sn-line); border-radius: 50%; background: var(--sn-white); color: var(--sn-ink); }

.sn-hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 126px) 0; background: var(--sn-peach); }
.sn-hero::after { position: absolute; right: -8vw; bottom: -34vw; width: 62vw; height: 62vw; border: 2px solid rgba(255,255,255,.42); border-radius: 50%; content: ""; }
.sn-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(42px, 7vw, 92px); }
.sn-hero-copy { padding-block: 30px; }
.sn-hero-copy .sn-title { max-width: 620px; font-size: clamp(2.7rem, 4.2vw, 3.9rem); }
.sn-hero-copy .sn-lead { margin: 24px 0 32px; color: #4e413b; }
.sn-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sn-hero-visual { position: relative; }
.sn-hero-visual::before { position: absolute; inset: -18px 22% 18px -18px; border: 1px solid rgba(73,47,37,.28); border-radius: 180px 180px 30px 30px; content: ""; }
.sn-hero-visual img { position: relative; width: 100%; min-height: 420px; aspect-ratio: 1.48; object-fit: cover; border-radius: 190px 190px 28px 28px; box-shadow: var(--sn-shadow); }
.sn-hero-note { position: absolute; right: -16px; bottom: 28px; max-width: 215px; padding: 17px 20px; border-radius: 18px 18px 4px 18px; background: var(--sn-white); box-shadow: 0 16px 35px rgba(69,42,31,.15); font-family: var(--sn-display); font-size: 1.05rem; line-height: 1.4; }

.sn-values { background: var(--sn-white); }
.sn-values-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 48px; }
.sn-values-head .sn-lead { margin: 0; }
.sn-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sn-line); }
.sn-value { padding: 38px 34px 22px 0; border-right: 1px solid var(--sn-line); }
.sn-value + .sn-value { padding-left: 34px; }
.sn-value:last-child { border-right: 0; }
.sn-value-mark { display: grid; width: 48px; height: 48px; margin-bottom: 30px; place-items: center; border-radius: 50% 50% 50% 12px; background: var(--sn-blush); color: var(--sn-rose); font-family: var(--sn-display); font-size: 1.2rem; font-weight: 700; }
.sn-value h3 { margin: 0 0 12px; font-family: var(--sn-display); font-size: 1.7rem; }
.sn-value p { margin: 0; color: var(--sn-muted); }

.sn-content-band { background: #f6efeb; }
.sn-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.sn-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sn-card { overflow: hidden; border: 1px solid var(--sn-line); border-radius: 24px; background: var(--sn-white); transition: transform .2s ease, box-shadow .2s ease; }
.sn-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(64,40,30,.1); }
.sn-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sn-peach); }
.sn-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sn-card:hover .sn-card-media img { transform: scale(1.025); }
.sn-card-body { padding: 24px; }
.sn-card-meta { margin: 0 0 10px; color: var(--sn-rose); font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sn-card h3 { margin: 0 0 12px; font-family: var(--sn-display); font-size: 1.4rem; line-height: 1.35; }
.sn-card h3 a { text-decoration: none; }
.sn-card p { margin: 0 0 16px; color: var(--sn-muted); font-size: .95rem; }
.sn-empty { padding: 40px; border: 1px dashed var(--sn-peach-deep); border-radius: 22px; background: rgba(255,255,255,.6); text-align: center; }

.sn-page-hero { padding: clamp(62px, 8vw, 100px) 0 48px; background: linear-gradient(145deg, var(--sn-blush), var(--sn-paper)); }
.sn-page-hero .sn-lead { margin-top: 18px; }
.sn-entry { padding: 64px 0 100px; }
.sn-entry-content > *:first-child { margin-top: 0; }
.sn-entry-content h2, .sn-entry-content h3 { font-family: var(--sn-display); line-height: 1.25; }
.sn-entry-content h2 { margin-top: 2em; font-size: 2rem; }
.sn-entry-content h3 { margin-top: 1.6em; font-size: 1.45rem; }
.sn-entry-content p, .sn-entry-content li { color: #504946; }
.sn-entry-content a { color: var(--sn-rose); }
.sn-entry-content img { border-radius: 22px; }
.sn-entry-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0 0; color: var(--sn-muted); }
.sn-featured { margin: 42px auto 0; overflow: hidden; border-radius: 32px; box-shadow: var(--sn-shadow); }
.sn-featured img { width: 100%; max-height: 680px; object-fit: cover; }
.sn-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.sn-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

.sn-about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.sn-about-image { overflow: hidden; border-radius: 28px 160px 28px 28px; box-shadow: var(--sn-shadow); }
.sn-about-image img { width: 100%; min-height: 460px; object-fit: cover; }
.sn-contact { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: 28px; background: var(--sn-white); box-shadow: var(--sn-shadow); }
.sn-contact-info { padding: clamp(34px, 5vw, 58px); background: var(--sn-peach); }
.sn-contact-form { padding: clamp(34px, 5vw, 58px); }
.sn-contact-list { padding: 0; list-style: none; }
.sn-contact-list li { margin: 0 0 14px; }
.sn-contact-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 750; }
.sn-contact-form input, .sn-contact-form textarea, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select {
  width: 100%; padding: 13px 15px; border: 1px solid #d8ccc6; border-radius: 10px; background: var(--sn-white); color: var(--sn-ink);
}
.sn-contact-form .sn-field { margin-bottom: 16px; }

.site-footer { background: var(--sn-ink); color: #fff6f1; }
.sn-footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 48px; padding: 68px 0 48px; }
.site-footer h2, .site-footer h3 { font-family: var(--sn-display); }
.site-footer p, .site-footer li { color: #d8cbc4; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sn-peach); }
.sn-footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); color: #b9aaa3; font-size: .84rem; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 28px; color: var(--sn-muted); }
.woocommerce-shop .page-title, .tax-product_cat .page-title, .tax-product_tag .page-title { display: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 24px; overflow: hidden; border: 1px solid var(--sn-line); border-radius: 22px; background: var(--sn-white); }
.woocommerce ul.products li.product a img { margin: 0 0 20px; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-inline: 20px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--sn-display); font-size: 1.28rem; }
.woocommerce div.product { padding: 48px 0 90px; }
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sn-peach-deep); background: var(--sn-blush); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sn-rose); }
.wc-block-cart, .wc-block-checkout { margin-block: 50px 90px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .sn-menu-toggle { display: grid; place-items: center; }
  .sn-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 14px; border: 1px solid var(--sn-line); border-radius: 18px; background: var(--sn-white); box-shadow: var(--sn-shadow); }
  .sn-nav.is-open { display: block; }
  .sn-nav ul { display: block; }
  .sn-nav a { padding: 12px 14px; }
  .sn-hero-grid, .sn-about-grid { grid-template-columns: 1fr; }
  .sn-hero-copy { order: 1; }
  .sn-hero-visual { order: 0; max-width: 680px; }
  .sn-hero-visual img { min-height: 330px; }
  .sn-value-grid, .sn-card-grid { grid-template-columns: 1fr 1fr; }
  .sn-value:last-child { grid-column: 1 / -1; border-top: 1px solid var(--sn-line); }
  .sn-contact { grid-template-columns: 1fr; }
  .sn-footer-grid { grid-template-columns: 1fr 1fr; }
  .sn-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .sn-shell, .sn-narrow { width: min(100% - 28px, 1180px); }
  .sn-header-inner { min-height: 80px; }
  .custom-logo-link img, .sn-logo { height: 56px; }
  .sn-hero { padding-top: 34px; }
  .sn-hero-visual img { min-height: 250px; border-radius: 110px 110px 18px 18px; }
  .sn-hero-note { right: 8px; bottom: 14px; max-width: 178px; font-size: .9rem; }
  .sn-values-head, .sn-section-head { display: block; }
  .sn-values-head .sn-lead { margin-top: 20px; }
  .sn-value-grid, .sn-card-grid, .sn-footer-grid, .sn-gallery { grid-template-columns: 1fr; }
  .sn-value, .sn-value + .sn-value { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--sn-line); }
  .sn-value:last-child { grid-column: auto; border-top: 0; }
  .sn-section-head .sn-text-link { display: inline-block; margin-top: 18px; }
  .sn-about-image img { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
