/*
Theme Name: Stitching by the Sea
Theme URI: https://stitchingbythesea.com/
Author: Stitching by the Sea
Description: A warm, coastal block theme for the Stitching by the Sea yarn shop. Includes an editable oversized logo header, coming-soon homepage, glass-panel sections, and a fixed beach background.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: stitching-by-the-sea
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --sbts-ink: #25322d;
  --sbts-muted-ink: #53635c;
  --sbts-paper: #fffaf3;
  --sbts-accent: #d96c4f;
  --sbts-accent-dark: #b94f36;
  --sbts-logo-width: clamp(280px, 50vw, 1000px);
  --sbts-header-nav-size: clamp(1rem, 1.25vw, 1.35rem);
  --sbts-header-contact-size: clamp(0.9rem, 1.05vw, 1.15rem);
  --sbts-opening-note-size: clamp(0.9rem, 1vw, 1.1rem);
}

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

html {
  scroll-behavior: smooth;
  background: #f7efe5;
}

body,
.editor-styles-wrapper {
  margin: 0;
  color: var(--sbts-ink);
  background:
    radial-gradient(circle at 48% 32%, rgba(255,255,255,.62), rgba(255,255,255,.12) 44%, transparent 70%),
    linear-gradient(to bottom, rgba(255, 247, 236, .18), rgba(255, 237, 218, .08)),
    linear-gradient(rgba(255, 250, 243, 0.16), rgba(255, 250, 243, 0.22)),
    url("assets/images/beach-background.jpg") center center / cover fixed no-repeat;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

.wp-site-blocks {
  padding: 0;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px clamp(22px, 4vw, 64px) 18px;
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 243, 0.72),
    rgba(255, 250, 243, 0.18),
    rgba(255, 250, 243, 0)
  );
}

.nav-links {
  justify-self: start;
  margin: 0;
}

.nav-links .wp-block-navigation__container {
  gap: clamp(18px, 3vw, 48px);
}

.nav-links .wp-block-navigation-item__content {
  position: relative;
  padding: 8px 0;
  color: var(--sbts-ink);
  font-size: var(--sbts-header-nav-size);
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 15px rgba(255,255,255,.8);
}

.nav-links .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}

.nav-links .wp-block-navigation-item__content:hover::after,
.nav-links .wp-block-navigation-item__content:focus-visible::after {
  right: 0;
}

.site-logo-block {
  justify-self: center;
  display: block;
  width: var(--sbts-logo-width);
  max-width: 100%;
  margin: 0;
  line-height: 0;
}

.site-logo-block .custom-logo-link,
.site-logo-block a {
  display: block;
}

.site-logo-block img,
.site-logo-block .custom-logo {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.header-contact {
  justify-self: end;
  display: grid !important;
  justify-items: end;
  gap: 10px;
  min-width: 0;
  margin: 0;
  text-align: right;
}

.header-contact p {
  margin: 0;
}

.opening-note {
  justify-self: end;
  padding: 12px 20px;
  border: 1px solid rgba(37, 50, 45, .34);
  color: var(--sbts-ink);
  background: rgba(255, 250, 243, .24);
  font-size: var(--sbts-opening-note-size);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 1px 15px rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
}

.shop-contact,
.phone-link {
  color: var(--sbts-ink);
  font-size: var(--sbts-header-contact-size);
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .035em;
  text-shadow: 0 1px 14px rgba(255,255,255,.95);
}

.phone-link {
  margin-top: 5px !important;
  font-weight: 800;
  letter-spacing: .07em;
}

.shop-contact a,
.phone-link a {
  color: inherit;
  text-decoration: none;
}

.shop-contact a:hover,
.shop-contact a:focus-visible,
.phone-link a:hover,
.phone-link a:focus-visible {
  color: var(--sbts-accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.front-page-main,
.standard-page-main,
.blog-main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 90vh;
  min-height: 90svh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px 22px 90px;
  text-align: center;
}

.hero-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(255,255,255,.52);
  background: rgba(255, 250, 243, .37);
  box-shadow: 0 22px 65px rgba(26, 54, 45, .12);
  backdrop-filter: blur(5px);
}

.hero-card > * {
  margin-block-start: 0;
}

.eyebrow {
  margin: 0 0 16px !important;
  color: var(--sbts-accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: .98;
}

.hero-copy {
  max-width: 560px;
  margin: 24px auto 31px !important;
  color: var(--sbts-muted-ink);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.notify-buttons {
  margin: 0;
}

.notify-button .wp-block-button__link {
  display: inline-block;
  padding: 15px 25px;
  border: 2px solid var(--sbts-accent);
  border-radius: 0;
  color: #fff;
  background: var(--sbts-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(185, 79, 54, .22);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.notify-button .wp-block-button__link:hover,
.notify-button .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sbts-accent-dark);
  background: var(--sbts-accent-dark);
}

.content-section {
  display: grid;
  place-items: center;
  min-height: 76vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 22px;
}

.content-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255, 250, 243, .78);
  box-shadow: 0 20px 60px rgba(26, 54, 45, .12);
  backdrop-filter: blur(10px);
}

.content-panel > * {
  margin-block-start: 0;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.content-panel p {
  margin: 0;
  color: var(--sbts-muted-ink);
  font-size: 1.06rem;
}

.content-panel p + p {
  margin-top: 18px;
}

.text-link,
.content-panel a {
  color: var(--sbts-accent-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 42px 22px 48px;
  color: var(--sbts-ink);
  background: rgba(255, 250, 243, .72);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
}

.site-footer p {
  margin: 0;
}

.standard-page-main,
.blog-main {
  min-height: 70vh;
  padding: clamp(48px, 8vw, 110px) 22px;
}

.standard-page-panel,
.blog-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255, 250, 243, .86);
  box-shadow: 0 20px 60px rgba(26, 54, 45, .12);
  backdrop-filter: blur(10px);
}

.standard-page-panel .wp-block-post-title,
.blog-panel .wp-block-query-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.wp-block-post-content > :first-child {
  margin-block-start: 0;
}

.wp-block-post-content > :last-child {
  margin-block-end: 0;
}

a:focus-visible {
  outline: 3px solid rgba(217, 108, 79, .42);
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding: 18px 18px 26px;
  }

  .site-logo-block {
    grid-row: 1;
    justify-self: center;
    width: min(82vw, 440px);
  }

  .nav-links {
    grid-row: 2;
    justify-self: center;
  }

  .nav-links .wp-block-navigation__container {
    justify-content: center;
    gap: clamp(18px, 7vw, 42px);
  }

  .header-contact {
    grid-row: 3;
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  .opening-note {
    display: inline-block;
    justify-self: center;
  }

  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 38px 18px 72px;
  }

  .hero-card {
    padding-inline: 24px;
  }
}

@media (max-width: 480px) {
  .nav-links .wp-block-navigation-item__content {
    font-size: 1rem;
  }

  .opening-note {
    padding: 10px 15px;
  }

  .shop-contact,
  .phone-link {
    font-size: .95rem;
  }
}

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

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

/* Optional styles available from the block editor's Styles panel. */
.wp-block-group.is-style-glass-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255, 250, 243, .78);
  box-shadow: 0 20px 60px rgba(26, 54, 45, .12);
  backdrop-filter: blur(10px);
}

p.is-style-eyebrow {
  color: var(--sbts-accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.wp-block-button.is-style-coastal-cta .wp-block-button__link {
  border: 2px solid var(--sbts-accent);
  border-radius: 0;
  color: #fff;
  background: var(--sbts-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
