/* Printables by Claire — brand hub
   Palette and type from E:\Printables_by_Claire\house-style.md */
:root {
  --turquoise: #40B5AD;
  --coral: #F26B5B;
  --ivory: #FAF3E3;
  --cream: #F5EBD7;
  --teal: #2F7F7A;      /* headings on ivory (large text only) and buttons */
  --aqua: #A8DCD1;
  --peach: #F8C8A0;
  --charcoal: #34495E;  /* body text */
  --radius: 1.5rem;
  --shadow: 0 0.25rem 1.25rem rgba(52, 73, 94, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: "Lobster Two", Georgia, serif;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 30; /* above the fixed header */
}
.skip:focus { top: 1rem; }

/* Header
   Without JS it is a normal header. With JS (html.js) it is fixed to the top;
   .header-slot holds its full height in the page (measured by the script),
   and .is-compact turns it into a slim bar once the page is scrolled. */
html {
  --bar-h: 64px;
  scroll-padding-top: calc(var(--bar-h) + 1rem); /* in-page links land below the bar */
}
.site-header {
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
  background: var(--ivory);
}
.js .header-slot { height: var(--header-full, 22rem); }
.js .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: box-shadow 0.25s ease-out;
}
.site-header.is-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--bar-h);
  padding: 0 max(1rem, calc((100% - 64rem) / 2 + 1.25rem));
  text-align: left;
  box-shadow: 0 0.125rem 0.875rem rgba(52, 73, 94, 0.14);
}
.is-compact .avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  flex: none;
  box-shadow: 0 0 0 3px var(--cream);
  animation: avatar-shrink 0.3s ease-out;
}
.is-compact .brand-text {
  min-width: 0;
  animation: bar-text-in 0.3s ease-out;
}
.site-header.is-compact h1 { font-size: 1.3rem; line-height: 1.1; }
.is-compact .tagline {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-compact .tagline::after { display: none; }
@keyframes avatar-shrink { from { transform: scale(1.8); } }
@keyframes bar-text-in { from { opacity: 0; transform: translateY(-0.4rem); } }
.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--cream), var(--shadow);
}
.site-header h1 { font-size: clamp(2.4rem, 9vw, 3.75rem); }
.tagline {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.tagline::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.3rem;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: var(--coral);
}

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* About */
.about {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  margin-top: 1rem;
}
.hero { width: 220px; }
.about h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.about-text p + p { margin-top: 0.75rem; }
.about-text { max-width: 34rem; }
.signature {
  font-family: "Lobster Two", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
}

/* Cards */
.printables { padding: 2.75rem 0 1rem; }
.printables > h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem 1.6rem;
  flex: 1;
}
.card h3 { font-size: 1.75rem; }
.price {
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--peach);
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
}
.price-free { background: var(--aqua); }
.button {
  margin-top: auto;
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.card-body p:not(.price) { margin-bottom: 0.6rem; }
.button:hover { background: var(--charcoal); }

.card-soon {
  background: transparent;
  box-shadow: none;
  border: 3px dashed var(--aqua);
  justify-content: center;
  min-height: 14rem;
}
.card-soon .card-body {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.soon-mark { font-size: 2rem; color: var(--coral); line-height: 1; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}
.site-footer a { font-weight: 700; }
.disclaimer { font-style: italic; }
.social ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Wider screens */
@media (min-width: 35rem) {
  /* Room for name and tagline on one line in the compact bar */
  .is-compact .brand-text { display: flex; align-items: baseline; gap: 0.75rem; }
  .is-compact .tagline { font-size: 0.95rem; }
}
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 48rem) {
  html { --bar-h: 72px; }
  .is-compact .avatar { width: 52px; height: 52px; }
  .site-header.is-compact h1 { font-size: 1.6rem; }
}
@media (min-width: 48rem) {
  .avatar { width: 160px; height: 160px; }
  .about {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
  }
  .hero { width: 300px; }
}
@media (min-width: 60rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
