/*
Theme Name: A Stamp Seller WP
Theme URI: https://astampseller.com/
Author: Codex
Description: A WordPress storefront theme for astampseller.com, adapted from the approved local postal storefront direction.
Version: 0.1.7
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: astampseller-wp
*/

:root {
  --fp-ink: #242536;
  --fp-blue: #153f9a;
  --fp-green: #e0f2c1;
  --fp-pink: #f7e1de;
  --fp-paper: #fff;
  --fp-soft: #f8f6f1;
  --fp-line: #dedee0;
  --fp-muted: #696a78;
  --fp-content: 1240px;
  --fp-radius: 8px;
  --fp-font: Arial, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fp-ink);
  background: #fff;
  font-family: var(--fp-font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

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

.page-width {
  width: min(var(--fp-content), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  z-index: 99;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--fp-ink);
}

.skip-link:focus {
  top: 12px;
}

.announcement {
  min-height: 40px;
  padding: 8px 16px;
  background: var(--fp-green);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 14px;
  letter-spacing: .02em;
}

.site-header {
  background: linear-gradient(105deg, #e0f2c1 0%, #e8efc8 44%, #f7dfdc 100%);
  padding: 18px 32px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-tools:last-child {
  justify-content: flex-end;
}

.icon-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.icon-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: grid;
  place-items: center;
  min-height: 82px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .02em;
}

.brand-logo {
  width: auto;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
}

.main-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  gap: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  font-size: 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 38px;
  height: 38px;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.home-hero {
  position: relative;
  min-height: 365px;
  background: var(--fp-green);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.home-hero-image {
  height: 100%;
  min-height: 365px;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 365px;
  object-fit: cover;
  object-position: center;
}

.home-hero-copy {
  padding: 36px clamp(28px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.home-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  max-width: 520px;
}

.home-hero p {
  color: #424351;
  max-width: 560px;
  margin: 0;
}

.button,
.wp-block-button__link,
.submit-button {
  border: 1px solid var(--fp-ink);
  border-radius: 4px;
  min-height: 46px;
  padding: 11px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  background: var(--fp-ink);
  color: #fff;
  cursor: pointer;
}

.button-light {
  background: transparent;
  color: var(--fp-ink);
}

.button:hover,
.submit-button:hover {
  text-decoration: none;
  opacity: .86;
}

.section,
.featured-collection,
.content-section,
.support-section,
.reviews-section {
  padding-block: 54px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 18px;
}

.section-heading h2,
.support-section > h2,
.reviews-section > h2 {
  font-weight: 500;
  font-size: 27px;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  display: block;
  background: #f5f5f2;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.product-card-image:hover img {
  transform: scale(1.025);
}

.product-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  margin: 12px 0 14px;
  min-height: 65px;
  max-height: 65px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-button {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid var(--fp-ink);
  border-radius: 4px;
  padding: 9px 15px;
  font-size: 13px;
}

.text-button:hover {
  text-decoration: none;
  background: var(--fp-ink);
  color: #fff;
}

.before-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
  padding-block: 34px 58px;
}

.before-order-image {
  background: #eff5e7;
}

.before-order-image img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.before-order h2,
.content-section h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px;
}

.before-order p,
.content-section p {
  color: #484956;
  max-width: 700px;
}

.blog-section {
  background: #f9f6f3;
  padding: 54px max(32px, calc((100vw - var(--fp-content)) / 2));
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #eee;
}

.blog-card h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  margin: 13px 0 7px;
}

.blog-card p {
  font-size: 14px;
  color: #535461;
  margin: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 22px;
}

.support-grid article {
  border-top: 1px solid var(--fp-line);
  padding-top: 15px;
}

.support-grid h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 7px;
}

.support-grid p {
  color: var(--fp-muted);
  font-size: 14px;
  margin: 0;
}

.reviews-section {
  background: #fbf7f4;
  text-align: center;
  min-height: 140px;
}

.main-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr);
  gap: 48px;
  padding-top: 38px;
  padding-bottom: 44px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
}

.product-media {
  background: #f7f7f5;
  overflow: hidden;
}

.product-media:first-child {
  grid-column: 1 / -1;
}

.product-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.product-info h1,
.archive-heading h1,
.page-content h1,
.search-page h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.16;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.shipping-note,
.verification-note {
  font-size: 13px;
  color: #555663;
  margin: 0 0 18px;
}

.product-actions {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}

.product-actions .button {
  width: 100%;
}

.product-description {
  border-top: 1px solid var(--fp-line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.product-faq {
  padding-block: 32px 48px;
  border-top: 1px solid var(--fp-line);
}

.product-faq h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 13px;
}

.product-faq details {
  border-bottom: 1px solid var(--fp-line);
}

.product-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 25px 15px 0;
  position: relative;
  font-size: 15px;
}

.product-faq summary::-webkit-details-marker {
  display: none;
}

.product-faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 12px;
  font-size: 20px;
}

.product-faq details[open] summary::after {
  content: "-";
}

.product-faq .rte {
  padding: 0 20px 14px 0;
  color: #545560;
  font-size: 14px;
}

.archive-page,
.page-content,
.search-page {
  padding-block: 38px 65px;
}

.contact-page {
  padding-block: 38px 70px;
}

.about-page {
  padding-block: 38px 74px;
}

.contact-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fp-line);
}

.contact-hero h1,
.about-hero h1 {
  max-width: 820px;
  font-size: 36px;
  line-height: 1.16;
  font-weight: 500;
  margin: 0 0 13px;
}

.contact-hero p,
.about-hero p {
  max-width: 760px;
  color: var(--fp-muted);
  margin: 0;
}

.about-perspective {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 48px;
  align-items: start;
  padding-block: 34px 28px;
}

.about-copy h2,
.about-supplier h2,
.about-process h2 {
  font-size: 28px;
  line-height: 1.22;
  font-weight: 500;
  margin: 0 0 13px;
}

.about-copy p,
.about-supplier p,
.about-process p,
.about-values p {
  color: #484956;
  margin: 0 0 13px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--fp-line);
  border: 1px solid var(--fp-line);
}

.about-stats div {
  min-height: 118px;
  padding: 18px;
  background: #fff;
}

.about-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 12px;
}

.about-stats span {
  color: var(--fp-muted);
  font-size: 13px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 18px 44px;
}

.about-values article,
.about-process-grid article,
.about-contact-card {
  border-top: 1px solid var(--fp-line);
  padding-top: 16px;
}

.about-values h3,
.about-process-grid h3,
.about-contact-card h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 8px;
}

.about-supplier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 42px;
  align-items: start;
  padding: 34px;
  background: var(--fp-soft);
}

.about-contact-card {
  background: #fff;
  padding: 18px;
}

.about-process {
  padding-top: 44px;
}

.about-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 52px;
  align-items: start;
  padding-top: 34px;
}

.contact-copy h2,
.direct-contact h2 {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 12px;
}

.contact-copy p {
  max-width: 760px;
  color: #484956;
  margin: 0 0 14px;
}

.contact-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 20px 0 30px;
  list-style: none;
}

.contact-checklist li {
  position: relative;
  padding-left: 24px;
  color: #484956;
}

.contact-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fp-blue);
}

.direct-contact {
  border-top: 1px solid var(--fp-line);
  padding-top: 23px;
}

.direct-contact dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.direct-contact div {
  display: grid;
  gap: 3px;
}

.direct-contact dt {
  color: var(--fp-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.direct-contact dd {
  margin: 0;
  font-size: 16px;
}

.archive-heading {
  text-align: center;
  margin-bottom: 25px;
}

.archive-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--fp-muted);
}

.filter-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.filter-list a {
  display: block;
  border: 1px solid var(--fp-line);
  border-radius: 4px;
  padding: 8px 13px;
  font-size: 13px;
  background: #fff;
  overflow-wrap: anywhere;
}

.filter-list a:hover {
  background: var(--fp-ink);
  color: #fff;
  text-decoration: none;
}

.rte p {
  margin: 0 0 1em;
}

.rte a {
  text-decoration: underline;
}

.single-article {
  padding-block: 42px 68px;
}

.single-article-header {
  max-width: 860px;
  margin-bottom: 24px;
}

.single-article-header h1 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.single-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--fp-muted);
  font-size: 13px;
}

.single-article-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-article-content {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.8;
}

.single-article-content h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  margin: 1.4em 0 .45em;
}

.single-article-content h3 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  margin: 1.2em 0 .35em;
}

.single-article-content ul,
.single-article-content ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

.single-article-content li {
  margin-bottom: .45em;
}

.single-article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--fp-line);
  background: #f8faf7;
}

.single-article-cta h2 {
  margin: 0 0 7px;
  font-size: 24px;
  font-weight: 500;
}

.single-article-cta p {
  margin: 0;
  color: var(--fp-muted);
}

.inquiry-box {
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  padding: 20px;
  background: #fff;
}

.contact-form {
  position: sticky;
  top: 18px;
}

.inquiry-box h2 {
  margin-top: 0;
}

.inquiry-box label {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 13px;
}

.inquiry-box input,
.inquiry-box textarea,
.search-form input {
  width: 100%;
  border: 1px solid #c9c9cb;
  border-radius: 4px;
  padding: 10px 11px;
}

.inquiry-box textarea {
  resize: vertical;
}

.form-helper {
  margin: 12px 0 0;
  color: var(--fp-muted);
  font-size: 13px;
}

.form-notice {
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0 0 15px;
  font-size: 13px;
}

.form-notice-success {
  background: #eef7df;
  color: #31510b;
}

.form-notice-error {
  background: #fff1ef;
  color: #8b2b20;
}

.screen-reader-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 20px auto 35px;
}

.pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--fp-ink);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--fp-ink);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
  background: var(--fp-soft);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--fp-ink);
  color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  min-width: 102px;
}

.site-footer {
  background: #f5f5f2;
  padding: 42px max(32px, calc((100vw - var(--fp-content)) / 2)) 18px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.5fr 1.25fr;
  gap: 36px;
}

.footer-columns h2 {
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 600;
  margin: 0 0 14px;
}

.footer-columns a {
  display: block;
  font-size: 13px;
  margin: 7px 0;
}

.footer-columns p {
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 10px;
}

.footer-bottom {
  border-top: 1px solid #d7d7d5;
  margin-top: 34px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  font-size: 12px;
}

.policy-links {
  grid-column: 1 / -1;
  color: var(--fp-muted);
}

@media (max-width: 900px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .site-header {
    padding-inline: 20px;
  }

  .main-nav a {
    padding-inline: 9px;
    font-size: 13px;
  }

  .main-product {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
    gap: 25px;
  }

  .product-grid {
    gap: 16px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination .page-numbers {
    min-width: 38px;
    min-height: 38px;
    padding: 9px 12px;
  }

  .pagination .page-numbers.prev,
  .pagination .page-numbers.next {
    min-width: 88px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .home-hero,
  .home-hero-image,
  .home-hero-image img {
    min-height: 310px;
  }
}

@media (max-width: 650px) {
  .page-width {
    width: calc(100% - 32px);
  }

  .announcement {
    min-height: 38px;
    font-size: 11px;
    padding-inline: 10px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 10px 16px 0;
  }

  .header-tools:first-child {
    display: none;
  }

  .brand {
    justify-content: start;
    min-height: 54px;
    font-size: 20px;
  }

  .brand-logo {
    max-width: 175px;
    max-height: 52px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: column;
    padding: 7px 0 14px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-top: 1px solid #1111;
    padding: 10px 4px;
    font-size: 14px;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-hero-image,
  .home-hero-image img {
    min-height: 245px;
    max-height: 340px;
  }

  .home-hero-copy {
    padding: 25px 24px 30px;
    gap: 14px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .section,
  .featured-collection,
  .content-section,
  .support-section,
  .reviews-section,
  .blog-section {
    padding-block: 34px;
  }

  .section-heading h2,
  .support-section > h2,
  .reviews-section > h2 {
    font-size: 23px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .product-card h3 {
    font-size: 14px;
    min-height: 57px;
    max-height: 57px;
  }

  .before-order,
  .main-product,
  .contact-hero,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-page,
  .about-page {
    padding-block: 28px 45px;
  }

  .contact-hero,
  .about-hero {
    align-items: start;
    padding-bottom: 24px;
  }

  .contact-hero h1,
  .about-hero h1 {
    font-size: 30px;
  }

  .about-perspective,
  .about-supplier,
  .about-process-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }

  .about-supplier {
    padding: 24px;
  }

  .contact-form {
    position: static;
  }

  .before-order h2 {
    font-size: 24px;
  }

  .blog-section {
    padding-inline: 16px;
  }

  .blog-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .single-article-cta {
    grid-template-columns: 1fr;
  }

  .blog-card {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 3px 13px;
    align-items: start;
  }

  .blog-card a {
    grid-row: 1 / 3;
  }

  .blog-card img {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px 15px;
  }

  .footer-contact,
  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 30px 18px 16px;
  }

  .footer-bottom,
  .search-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .main-product {
    padding-top: 20px;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-info h1,
  .archive-heading h1,
  .page-content h1,
  .search-page h1 {
    font-size: 34px;
  }
}
