/* Chloe Cooper Creative: mobile-first styles. See PLAN.md §3–§6. */

/* ---------- Tokens ---------- */
:root {
  --ink: #111034;
  --deep-teal: #063E60;
  --slate-teal: #104154;
  --sea-glass: #86B0B5;   /* decoration only, never text on light */
  --mist: #D2E3E8;
  --cream: #F6F3EE;
  --frost: #C3DBD2;
  --white: #FFFFFF;

  --font-heading: "ff-ernestine-pro", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1180px;
  --max-narrow: 1080px;
  --radius-panel: 24px;
  --radius-card: 22px;
}

@media (min-width: 480px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em; /* Work Sans only; headings reset below */
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700; /* the Adobe kit has 400 and 700 only */
  letter-spacing: normal;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: var(--deep-teal); }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--sea-glass);
  outline-offset: 4px;
}

/* Desktop-only manual line breaks */
.br-desktop, .br-wide { display: none; }
@media (min-width: 768px) {
  .br-desktop { display: inline; }
}
/* For breaks that only rag well once the Find Me cards reach full width */
@media (min-width: 1180px) {
  .br-wide { display: inline; }
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--deep-teal);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: var(--max-narrow); }
.wrap--full { max-width: none; }

/* ---------- Knit textures ---------- */
.knit-light {
  background-color: var(--mist);
  background-image: url("../img/stitch-texture-light.svg");
  background-size: 36.46px 21px;
}
.knit-dark {
  background-color: var(--ink);
  background-image: url("../img/stitch-texture-dark.svg");
  background-size: 21px 36.46px;
}
.stitch-row {
  height: 26px;
  background-image: url("../img/stitch-row.svg");
  background-repeat: repeat-x;
  background-size: 60px 25.15px;
  background-position: left center;
}
.stitch-row--short { width: 180px; }

.panel {
  background: rgba(210, 227, 232, 0.82);
  border-radius: var(--radius-panel);
  padding: 24px;
}
@media (min-width: 480px) {
  .panel { padding: 36px; }
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-row--center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
@media (max-width: 479px) {
  .btn-row .btn, .store-card .btn { font-size: 17px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.btn--solid { background: var(--deep-teal); color: var(--white); padding: 0 28px; }
.btn--solid:hover { color: var(--white); background: var(--ink); }

.btn--outline { border: 2px solid var(--deep-teal); color: var(--deep-teal); }
.btn--outline:hover { color: var(--ink); border-color: var(--ink); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { color: var(--white); background: var(--deep-teal); }

.btn--social {
  gap: 12px;
  min-height: 56px;
  padding: 0 22px;
  background: var(--cream);
  color: var(--ink);
  outline: 2px dashed var(--sea-glass);
  outline-offset: -6px;
}
.btn--social:hover { color: var(--ink); }
/* Keep the stitched border; add the focus ring as a shadow so both show */
.btn--social:focus-visible {
  outline: 2px dashed var(--sea-glass);
  outline-offset: -6px;
  box-shadow: 0 0 0 3px var(--mist), 0 0 0 6px var(--deep-teal);
}

/* ---------- Header ---------- */
.site-header { background: var(--mist); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 12px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 44px; width: auto; }

/* Hidden on phones: the page is one short scroll */
.site-nav {
  display: none;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate-teal);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sea-glass); text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 768px) {
  .site-header__inner { padding-top: 18px; padding-bottom: 18px; }
  .site-header__logo img { height: 52px; }
  .site-nav { display: flex; gap: 28px; }
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero__panel { width: 100%; }
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 4.4vw + 22px, 64px);
  line-height: 1.05;
  color: var(--ink);
}
.hero__sub {
  max-width: 30em;
  margin-bottom: 32px;
  font-size: clamp(18px, 0.5vw + 16px, 20px);
  color: var(--slate-teal);
}

.hero__tag-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 960px) {
  .hero__inner {
    flex-direction: row;
    gap: 64px;
    padding-top: 96px;
    padding-bottom: 112px;
  }
  .hero__panel { flex: 1 1 auto; min-width: 0; }
  .hero__tag-wrap { flex: 0 0 380px; width: auto; }
  .hero h1 { margin-bottom: 24px; }
  .hero__sub { margin-bottom: 36px; }
}

/* Hang tag */
.tag {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 64px 22px 26px;
  background: var(--cream);
  border-radius: 28px 28px 20px 20px;
  box-shadow: 0 24px 48px -20px rgba(17, 16, 52, 0.35);
  outline: 2px dashed var(--sea-glass);
  outline-offset: -12px;
  transform: rotate(-3deg);
}
.tag__hole {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: inset 0 2px 4px rgba(17, 16, 52, 0.25);
}
.tag__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 296 / 300;
  border-radius: 14px;
  object-fit: cover;
}
.tag__photo--placeholder {
  position: relative;
  overflow: hidden;
  background-color: var(--sea-glass);
}
.tag__photo--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/stitch-texture-light.svg");
  background-size: 36.46px 21px;
  opacity: 0.18;
}
.tag__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.tag__label {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--ink);
}
.tag__footer img { height: 26px; width: auto; }

/* ---------- Divider ---------- */
.divider { background: var(--cream); padding: 28px 0; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.about__portrait { flex: 0 0 auto; }
.about__portrait img {
  width: 280px;
  max-width: calc(100vw - 2 * var(--gutter) - 26px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 30% 40%;
  outline: 3px dashed var(--sea-glass);
  outline-offset: 10px;
}
.about__text { width: 100%; max-width: 611px; }
.about h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 2vw + 24px, 44px);
  line-height: 1.1;
  color: var(--deep-teal);
}
.about p + p { margin-top: 16px; }

@media (min-width: 900px) {
  .about__inner {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
    padding-top: 72px;
    padding-bottom: 104px;
  }
  .about__text { flex: 0 1 611px; min-width: 0; }
}

/* ---------- Find me ---------- */
.find__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 80px;
}
.find__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-card);
  padding: 32px 28px;
}
.find__intro { background: var(--ink); }
.find__intro h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 2.6vw + 26px, 52px);
  line-height: 1.05;
  color: var(--white);
}
.find__intro p {
  max-width: 26em;
  font-size: 19px;
  color: var(--mist);
}

@media (min-width: 900px) {
  .find__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 56px;
    padding-top: 88px;
    padding-bottom: 112px;
  }
  .find__card {
    flex: 1 1 0;   /* equal width */
    min-width: 0;
    padding: 40px;
  }
}

/* Store card (reusable) */
.store-card {
  align-items: flex-start;
  background: var(--cream);
  outline: 2px dashed var(--sea-glass);
  outline-offset: -12px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.5);
}
.store-card .stitch-row { margin-bottom: 22px; }
.store-card__name {
  margin-bottom: 10px;
  font-size: clamp(24px, 1vw + 20px, 30px);
  line-height: 1.15;
  color: var(--ink);
}
.store-card__name a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sea-glass);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.store-card__address {
  display: block;
  margin-bottom: 28px;
  color: var(--slate-teal);
  text-decoration: none;
  line-height: 1.5;
}
.store-card__address:hover { color: var(--ink); text-decoration: underline; }
.store-card__address address { font-style: normal; }

/* ---------- Follow ---------- */
.follow__inner {
  max-width: 860px;
  padding-top: 64px;
  padding-bottom: 80px;
  text-align: center;
}
.follow__panel { background: rgba(210, 227, 232, 0.85); }
.follow h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 2vw + 24px, 44px);
  line-height: 1.1;
  color: var(--deep-teal);
}
.follow p {
  max-width: 26em;
  margin: 0 auto 32px;
  color: var(--slate-teal);
}

@media (min-width: 768px) {
  .follow__inner { padding-top: 96px; padding-bottom: 120px; }
  .follow p { margin-bottom: 36px; }
  .btn--social { padding: 0 28px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.site-footer img { height: 48px; width: auto; }
.site-footer p { font-size: 14px; }
/* Phones: copyright and thank-you on separate lines */
.site-footer__line { display: block; }
.site-footer__sep { display: none; }

@media (min-width: 768px) {
  .site-footer__inner { padding-top: 56px; padding-bottom: 48px; }
  .site-footer__line { display: inline; }
  .site-footer__sep { display: inline; }
}
