/*
Theme Name: Syrella
Theme URI: https://www.syrella.shop
Author: Syrella
Description: A quiet, product-first WooCommerce theme for Syrella.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: syrella
*/

:root {
  --ink: #171a18;
  --muted: #626963;
  --paper: #ffffff;
  --mist: #edf2ee;
  --rose: #c67878;
  --green: #315b45;
  --line: #dce2dd;
  --success: #1f6b43;
  --danger: #9f3535;
  --content: 1180px;
  --narrow: 760px;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(23, 26, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

button:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdc6bf;
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

:focus-visible {
  outline: 3px solid rgba(49, 91, 69, 0.34);
  outline-offset: 3px;
}

.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;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 72px;
  border-bottom: 1px solid rgba(220, 226, 221, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  justify-self: center;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a,
.header-actions a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.header-actions a:hover,
.footer-nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.cart-link {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(76vh, 780px);
  overflow: hidden;
  color: var(--paper);
  background-color: var(--green);
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(15, 24, 19, 0.46);
}

.hero.no-media {
  color: var(--ink);
  background: var(--mist);
}

.hero.no-media::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding-block: clamp(72px, 10vw, 128px);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 112px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 30px;
  font-size: 22px;
}

.hero .button {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.hero.no-media .button {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.trust-band {
  color: var(--paper);
  background: var(--ink);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding: 22px 24px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}

.trust-list li:last-child {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
  padding-block: clamp(72px, 9vw, 116px);
}

.section-muted {
  background: var(--mist);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section h2,
.page-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

.product-empty {
  width: 100%;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.story-copy {
  max-width: 620px;
  font-size: 19px;
}

.story-copy p:first-child {
  margin-top: 0;
}

.page-main {
  min-height: 60vh;
  padding-block: 64px 100px;
}

.page-header {
  padding-bottom: 32px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.page-content {
  width: min(100%, var(--narrow));
}

.page-content h2,
.page-content h3 {
  margin-top: 42px;
  line-height: 1.25;
}

.page-content a {
  color: var(--green);
}

.policy-placeholder {
  padding: 16px 18px;
  border-inline-start: 4px solid var(--rose);
  color: var(--ink);
  background: #fff4f2;
}

.site-footer {
  padding-block: 64px 30px;
  color: #eaf0eb;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr);
  gap: 64px;
}

.footer-brand .brand-mark {
  display: inline-block;
  color: var(--paper);
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 360px;
  color: #b9c2bb;
}

.footer-nav {
  justify-self: end;
}

.footer-nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: #eaf0eb;
  font-size: 14px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9da8a0;
  font-size: 13px;
}

.icp-link {
  color: inherit;
  text-decoration: none;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: #eaf0eb;
  text-decoration: underline;
}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f2f3f2;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 5px 9px;
  margin: 10px;
  border-radius: 3px;
  color: var(--paper);
  background: var(--green);
  font-size: 12px;
  line-height: 1.2;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 84px);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  grid-column: 1 / -1;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 0;
  border-inline-start: 4px solid var(--green);
  border-radius: 0;
  background: var(--mist);
}

.woocommerce-error {
  border-inline-start-color: var(--danger);
}

.woocommerce table.shop_table {
  border-color: var(--line);
  border-radius: var(--radius);
}

.woocommerce-checkout #payment {
  border-radius: var(--radius);
  background: var(--mist);
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 24px 20px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
  }

  .header-actions {
    display: none;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-layout,
  .footer-grid,
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-self: start;
  }

  .footer-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero {
    min-height: calc(88svh - 72px);
  }

  .hero-content {
    padding-block: 72px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section h2,
  .page-title,
  .woocommerce-products-header__title,
  .woocommerce div.product .product_title {
    font-size: 36px;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list li,
  .trust-list li:last-child {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .woocommerce ul.products {
    gap: 22px 12px;
  }

  .woocommerce ul.products li.product .button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
