/*
Theme Name: Sorient
Description: Update-safe commerce child theme for Blocksy.
Author: Sorient
Template: blocksy
Version: 1.2.27
Text Domain: sorient
Requires at least: 6.7
Requires PHP: 8.3
*/

:root {
  --sorient-ink: #17202a;
  --sorient-navy: #19324a;
  --sorient-teal: #19756f;
  --sorient-amber: #b76a19;
  --sorient-paper: #f7f3ec;
  --sorient-surface: #f3f5f6;
  --sorient-border: #d9dee2;
  --sorient-muted: #5e6872;
  --sorient-success: #247a4a;
  --sorient-error: #b42318;
  --sorient-radius: 0.625rem;
  --sorient-space-1: 0.5rem;
  --sorient-space-2: 1rem;
  --sorient-space-3: 1.5rem;
  --sorient-space-4: 2rem;
  --sorient-space-5: 3rem;
  --sorient-space-6: 4rem;
  --sorient-shadow: 0 0.75rem 2rem rgb(23 32 42 / 8%);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--sorient-teal);
  outline-offset: 3px;
}

.sorient-purchase-note,
.sorient-event-summary {
  margin-block: var(--sorient-space-2);
  padding: var(--sorient-space-2);
  border: 1px solid var(--sorient-border);
  border-radius: var(--sorient-radius);
  background: var(--sorient-surface);
  color: var(--sorient-ink);
}

.sorient-purchase-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sorient-purchase-note__icon {
  color: var(--sorient-success);
  font-weight: 700;
}

.sorient-purchase-note p,
.sorient-event-summary dl {
  margin: 0;
}

.sorient-event-summary__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.sorient-event-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
}

.sorient-event-summary dt {
  font-weight: 700;
}

.sorient-event-summary dd {
  margin: 0;
}

.woocommerce .button,
.wc-block-components-button,
.wp-block-button__link {
  min-height: 2.75rem;
}

.single-product form.cart .button {
  min-height: 3.25rem;
}

.sorient-section {
  padding-block: clamp(var(--sorient-space-5), 7vw, 6rem);
}

.sorient-section--paper {
  background: var(--sorient-paper);
}

.sorient-newsletter {
  padding: clamp(var(--sorient-space-4), 6vw, var(--sorient-space-6));
  border-radius: var(--sorient-radius);
  background: var(--sorient-navy);
  color: #fff;
}

.sorient-newsletter :where(h2, p) {
  color: inherit;
}

.sorient-home {
  overflow: clip;
}

.sorient-home-hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--sorient-paper);
}

.sorient-home-hero__layout,
.sorient-author-spotlight__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.sorient-home-hero__content {
  padding-inline-end: clamp(0rem, 4vw, 4rem);
  grid-column: 1;
}

.sorient-home-hero__layout {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.sorient-home-hero__image {
  grid-column: 2;
  grid-row: 1;
}

.sorient-home-hero__title {
  margin-block: 0.625rem 1rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.sorient-home-hero__intro {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--sorient-muted);
}

.sorient-home-hero__meta,
.sorient-home-hero__price {
  margin-block: 0.75rem;
  color: var(--sorient-ink);
  font-weight: 700;
}

.sorient-home-hero__price {
  font-size: 1.25rem;
}

.sorient-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sorient-button-outline {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--sorient-ink);
}

/* Keep FooEvents' Description-tab maps within the product content column. */
.single-product
  .woocommerce-Tabs-panel
  > :is(#google-map-holder, iframe[src*="google.com/maps"]) {
  display: block;
  width: 100%;
  height: 25rem;
  margin-inline: 0;
  border: 0;
  border-radius: var(--sorient-radius);
  --theme-block-width: 100%;
}

.sorient-home-hero__image img,
.sorient-author-spotlight__image img {
  display: block;
  width: 100%;
  border-radius: clamp(1rem, 3vw, 2rem);
  object-fit: cover;
}

.sorient-home-hero__image img {
  /* max-height: 32rem; */
  aspect-ratio: 4 / 5;
}

.sorient-eyebrow {
  margin-bottom: 0;
  color: var(--theme-palette-color-1, var(--sorient-teal));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sorient-home-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.sorient-home-section--tint {
  background: var(--sorient-surface);
}

.sorient-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sorient-section-heading h2,
.sorient-section-heading p {
  margin-block: 0;
}

.sorient-section-heading a {
  font-weight: 700;
}

.sorient-author-spotlight {
  background: var(--theme-palette-color-4, #111518);
  color: #fff;
}

.sorient-author-spotlight__layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.sorient-author-spotlight :where(h2, p) {
  color: inherit;
}

.sorient-author-spotlight .sorient-eyebrow {
  color: var(--theme-palette-color-2, #fd7c47);
}

.sorient-author-spotlight__content {
  padding: clamp(1rem, 5vw, 5rem);
  grid-column: 2;
}

.sorient-author-spotlight__content > p:not(.sorient-eyebrow) {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

.sorient-author-spotlight__description {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

.sorient-author-spotlight__description > :first-child {
  margin-top: 0;
}

.sorient-author-spotlight__description > :last-child {
  margin-bottom: 0;
}

.sorient-author-spotlight__image img {
  aspect-ratio: 3 / 4;
}

.sorient-author-spotlight__image {
  grid-column: 1;
}

.sorient-author-spotlight .wp-block-column:last-child {
  padding: clamp(1rem, 5vw, 5rem);
}

.sorient-author-spotlight .is-style-outline .wp-block-button__link {
  border-color: #fff;
  color: #fff;
}

.sorient-author-spotlight .sorient-button-outline {
  display: inline-flex;
  margin-top: 2rem;
  border-color: #fff;
  color: #fff;
}

.sorient-product-grid .woocommerce {
  width: 100%;
}

.woocommerce ul.products .event-date {
  font-size: 0.875rem;
}

.sorient-home-editor-content {
  border-top: 1px solid var(--sorient-border);
}

@media (max-width: 689px) {
  .sorient-home-hero {
    padding-block: 2.5rem;
  }

  .sorient-home-hero__content {
    padding-inline-end: 0;
  }

  .sorient-home-hero__title {
    font-size: clamp(2.375rem, 12vw, 3.5rem);
  }

  .sorient-home-hero__layout,
  .sorient-author-spotlight__layout {
    grid-template-columns: 1fr;
  }

  .sorient-author-spotlight__content {
    padding-inline: 0;
    grid-column: auto;
  }

  .sorient-home-hero__content,
  .sorient-home-hero__image {
    grid-column: auto;
    grid-row: auto;
  }

  .sorient-author-spotlight__image {
    grid-column: auto;
  }

  .sorient-event-summary dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .sorient-event-summary dd:not(:last-child) {
    margin-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
