/* Whiskerwool shared styles. One source of truth for all pages. */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f7eed8;
  --walnut: #4a2f24;
  --accent: #9f3f4f;
  --gold: #bd8a32;
  --cream: #fffaf0;
  --hairline: rgba(74, 47, 36, 0.16);
  --stitch: rgba(189, 138, 50, 0.85);
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --content: 720px;
  --bar: 1040px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--walnut);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* ---------- Header bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 238, 216, 0.94);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 2px dashed var(--stitch);
}

.site-header .bar {
  width: min(100% - 2rem, var(--bar));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--walnut);
  line-height: 0;
}

.site-header .brand img {
  height: 34px;
  width: auto;
  display: block;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--walnut);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 640px) {
  .site-header .bar {
    justify-content: center;
    text-align: center;
  }
  .site-nav {
    justify-content: center;
    width: 100%;
    gap: 0.4rem 0.95rem;
  }
}

/* ---------- Main column ---------- */

main {
  flex: 1 0 auto;
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0 4rem;
}

.tagline {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 1rem;
  border: 1.5px dashed var(--stitch);
  border-radius: 4px;
  background: var(--cream);
  color: var(--accent);
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: 0;
  transform: rotate(-1.2deg);
}

h1 {
  margin: 0 0 1.5rem;
  color: var(--walnut);
  font-size: clamp(3rem, 9vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero {
  max-width: 42rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero p {
  margin: 0 0 1.25rem;
}

.hero p:first-child::first-letter,
.story p:first-child::first-letter {
  color: var(--accent);
  float: left;
  font-size: 3.8rem;
  line-height: 0.8;
  padding: 0.18rem 0.35rem 0 0;
}

.story p,
.postscript p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.postscript {
  margin-top: 2.5rem;
}

.about-link,
.home-link {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
}

.about-link {
  margin: 2rem 0 0;
}

.home-link {
  margin: 3rem 0 0;
}

.about-link a,
.home-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

address.postal {
  margin: 1.75rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.5;
  font-variant-numeric: oldstyle-nums;
}

.brand,
.brand:visited {
  color: inherit;
  text-decoration: none;
}

/* ---------- Figures and galleries ---------- */

figure.product-image {
  margin: 2.5rem 0;
  padding: 0.6rem;
  background: var(--cream);
  border: 1.5px dashed var(--stitch);
  border-radius: 5px;
}

figure.product-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.gallery figure {
  margin: 0;
  padding: 0.5rem 0.5rem 0.25rem;
  background: var(--cream);
  border: 1.5px dashed var(--stitch);
  border-radius: 5px;
}

.gallery figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.gallery figcaption {
  margin: 0.35rem 0 0.1rem;
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--accent);
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Patterns page ---------- */

.pattern {
  margin: 0;
  overflow: hidden;
}

.pattern h2 {
  margin: 0 0 0.5rem;
  color: var(--walnut);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: normal;
  letter-spacing: 0;
}

.pattern p {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.pattern-image {
  margin: 0 0 1rem;
  padding: 0.5rem;
  background: var(--cream);
  border: 1.5px dashed var(--stitch);
  border-radius: 5px;
}

.pattern-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

@media (min-width: 560px) {
  .pattern-image {
    width: 46%;
    margin: 0.2rem 0 0.75rem;
  }
  .pattern-image.float-left {
    float: left;
    margin-right: 1.5rem;
  }
  .pattern-image.float-right {
    float: right;
    margin-left: 1.5rem;
  }
}

.rule {
  clear: both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 2.75rem 0;
  color: var(--gold);
  letter-spacing: 0.35em;
  font-size: 1rem;
}

.rule::before,
.rule::after {
  content: "";
  width: clamp(40px, 18%, 120px);
  border-top: 2px dashed var(--stitch);
}

/* ---------- Reviews (home) ---------- */

.reviews {
  margin: 4rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 2px dashed var(--stitch);
}

.reviews h2 {
  margin: 0 0 1.75rem;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  letter-spacing: 0;
  color: var(--accent);
}

.review {
  margin: 0 0 2.25rem;
  padding: 0;
}

.review blockquote {
  margin: 0 0 0.6rem;
  padding: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.5;
  color: var(--walnut);
}

.review .attribution {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  color: rgba(74, 47, 36, 0.7);
}

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
  margin: 2.25rem 0 0;
}

.contact-form .field {
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  color: var(--walnut);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--walnut);
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
}

.contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form button {
  justify-self: start;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 1rem;
  color: var(--cream);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.contact-form button:hover {
  filter: brightness(1.08);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--accent);
  margin: 0;
}

.form-status {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

.form-status.ok { color: #3f7a4a; }
.form-status.err { color: var(--accent); }

/* honeypot, kept off-screen for humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  margin-top: 5rem;
  border-top: 2px dashed var(--stitch);
  background: var(--cream);
}

.site-footer .inner {
  width: min(100% - 2rem, var(--bar));
  margin: 0 auto;
  padding: 2.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
}

.site-footer .col {
  min-width: 12rem;
}

.site-footer .col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.site-footer .col .wordmark {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.9;
}

.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-footer .tag {
  color: rgba(74, 47, 36, 0.7);
  line-height: 1.6;
}

.site-footer .legal {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: rgba(74, 47, 36, 0.6);
  font-size: 0.82rem;
}
