/* Mud Meadow Co. A cottagecore look taken from the cards: cream stock, denim blue,
   dusty rose, fern green, butter yellow, lace trims, and a calligraphy script. */

:root {
  --cream: #f8f1e0;
  --paper: #fffaf0;
  --ink: #35405c;
  --ink-soft: #5d6781;
  --blue: #8fb0d8;
  --blue-pale: #dde8f4;
  --blue-deep: #3f679f;
  --blue-night: #2c4a7a;
  --rose: #e39a93;
  --rose-pale: #f6ddd8;
  --sage: #8c9b6c;
  --sage-pale: #e6ebd7;
  --butter: #f1c35e;
  --butter-pale: #faf0cf;
  --terracotta: #c9714e;
  --line: #e4d8bd;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --script: "Snell Roundhand", "Apple Chancery", "Lucida Handwriting", "Segoe Script",
    "Brush Script MT", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream) url("paper.527f69b9dd10.svg");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-night); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Script headings, like the "Recipe" on the cards. Small caps for labels. */
.script, main h1, .section-title {
  font-family: var(--script);
  font-weight: 400;
  color: var(--blue-night);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
main h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; }
h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.3; }
.eyebrow, .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.35rem;
}

/* Header: wordmark on cream, scalloped lace edge, then a strip of flowers and butterflies. */
.site-header {
  position: relative;
  background: var(--paper);
  text-align: center;
  padding: 1.1rem 1rem 1.6rem;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 12px;
  background:
    radial-gradient(circle at 11px 0, var(--paper) 10px, transparent 10.5px) 0 0 / 22px 12px repeat-x;
  filter: drop-shadow(0 1px 0 var(--blue));
}
.brand { display: inline-block; text-decoration: none; color: var(--blue-night); }
.brand-script { display: block; font-family: var(--script); font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: 1.1; }
.brand-tag { display: block; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; margin-top: 0.6rem; }
.site-nav a { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 0.2rem 0; border-bottom: 2px dotted transparent; }
.site-nav a:hover { border-bottom-color: var(--rose); }

.trim {
  height: 30px;
  margin-top: 14px;
  background: url("border.efedd8715df3.svg") 0 0 / auto 30px repeat-x;
}

main { max-width: 68rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* Photo frames: a white print edge with a strip of washi tape. */
.frame {
  position: relative;
  background: #fff;
  padding: 0.55rem 0.55rem 1.3rem;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(53, 64, 92, 0.18), 0 12px 26px rgba(53, 64, 92, 0.14);
}
.frame::before {
  content: "";
  position: absolute;
  top: -0.65rem; left: 50%;
  width: 5rem; height: 1.35rem;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(90deg, rgba(241, 195, 94, 0.8) 0 7px, rgba(241, 195, 94, 0.55) 7px 14px);
  box-shadow: 0 1px 2px rgba(53, 64, 92, 0.12);
}
.frame.rose::before { background: repeating-linear-gradient(90deg, rgba(227, 154, 147, 0.8) 0 7px, rgba(227, 154, 147, 0.55) 7px 14px); }
.frame.blue::before { background: repeating-linear-gradient(90deg, rgba(143, 176, 216, 0.85) 0 7px, rgba(143, 176, 216, 0.55) 7px 14px); }
.frame img { width: 100%; background: var(--butter-pale); }
.no-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--butter-pale); color: var(--ink-soft); font-style: italic; }

/* Buttons and fields */
.button {
  display: inline-block;
  background: var(--blue-deep);
  color: var(--paper);
  border: 2px solid var(--blue-deep);
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font: 700 1rem/1.1 var(--serif);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--blue-night);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.button:hover { background: var(--blue-night); color: var(--paper); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blue-night); }
.button.secondary { background: var(--paper); color: var(--blue-deep); box-shadow: 0 3px 0 var(--blue); border-color: var(--blue-deep); }
.button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
input:focus, textarea:focus { outline: 3px solid var(--rose-pale); border-color: var(--blue-deep); }
label { font-weight: 600; }

/* Home: hero */
.hero { display: grid; gap: 2rem; align-items: center; padding: 1rem 0 2.5rem; }
.hero-copy h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
.hero-copy p { max-width: 32rem; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.25rem; }
.collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; padding: 0.8rem 0.4rem; }
.collage .frame:nth-child(1) { transform: rotate(-2.5deg); }
.collage .frame:nth-child(2) { transform: rotate(2deg) translateY(1.2rem); }
.collage .frame:nth-child(3) { display: none; }
.collage .frame img { aspect-ratio: 1; object-fit: cover; }

.perks { list-style: none; margin: 0; padding: 0.9rem 1rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.8rem; justify-content: center;
  background: var(--paper); border-top: 2px dotted var(--blue); border-bottom: 2px dotted var(--blue); text-align: center; font-size: 0.95rem; }
.perks li::before { content: "\2740"; color: var(--rose); margin-right: 0.5rem; }

/* Home: the collection */
.collection { padding-top: 2.5rem; }
.collection .lede { text-align: center; color: var(--ink-soft); margin: 0 auto 2rem; max-width: 34rem; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem 1.6rem; grid-template-columns: 1fr; }
.design-card { text-align: center; }
.design-card a { text-decoration: none; color: inherit; display: block; }
.design-card .frame { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.design-card .frame img { aspect-ratio: 4 / 3; object-fit: cover; }
.design-card a:hover .frame { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 2px 3px rgba(53, 64, 92, 0.18), 0 18px 32px rgba(53, 64, 92, 0.18); }
.design-card h3 { font-family: var(--script); font-weight: 400; font-size: 1.9rem; margin: 1rem 0 0.1rem; color: var(--blue-night); }
.design-card .from { margin: 0; font-size: 1.05rem; }
.design-card .sizes { margin: 0.1rem 0 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* Home: story and invitation */
.story-band { margin-top: 3.5rem; padding: 2.2rem 1.25rem; text-align: center;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(143, 176, 216, 0.22) 50%, transparent 50%), linear-gradient(rgba(143, 176, 216, 0.22) 50%, transparent 50%);
  background-size: 28px 28px;
  border-radius: 14px; border: 2px dashed var(--blue); }
.story-band .inner { max-width: 36rem; margin: 0 auto; background: var(--paper); padding: 1.6rem 1.4rem; border-radius: 12px; }
.story-band p { margin: 0.5rem 0; }

.empty { text-align: center; background: var(--paper); border: 2px dashed var(--blue); border-radius: 14px; padding: 2.5rem 1.5rem; }

/* A design: gallery on one side, the pack picker on the other */
.design { display: grid; gap: 2rem; }
.gallery .main-frame img { max-height: 36rem; object-fit: contain; width: 100%; background: #fff; }
.thumbs { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.thumbs a { display: block; border: 3px solid #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(53, 64, 92, 0.25); overflow: hidden; width: 4.6rem; }
.thumbs a:hover, .thumbs a[aria-current="true"] { border-color: var(--rose); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.buy-panel { background: var(--paper); border: 2px dashed var(--blue); border-radius: 16px; padding: 1.4rem 1.3rem 1.6rem; align-self: start; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--terracotta); margin: 0.2rem 0 0.8rem; }
.packs { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pack { display: flex; flex-direction: column; align-items: center; min-width: 5.6rem; padding: 0.55rem 0.9rem; border: 2px dashed var(--blue); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.25; }
.pack strong { font-size: 1.4rem; font-family: var(--serif); }
.pack .each { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pack .cost { font-size: 0.95rem; color: var(--terracotta); font-weight: 700; }
.pack:hover { border-style: solid; border-color: var(--blue-deep); }
.pack.is-selected { background: var(--blue-deep); border: 2px solid var(--blue-deep); color: var(--paper); box-shadow: 0 3px 0 var(--blue-night); }
.pack.is-selected .cost { color: var(--butter); }
.buy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin: 0.4rem 0 1rem; }
.buy-form label { display: flex; align-items: center; gap: 0.5rem; }
.buy-form input[type="number"] { width: 4.6rem; }
.hint { background: var(--butter-pale); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.95rem; }
.preview-banner { background: var(--butter-pale); border: 2px dashed var(--butter); border-radius: 10px; padding: 0.7rem 1rem; margin: 0 0 1.2rem; }

.about { background: var(--paper); border-radius: 14px; padding: 1.6rem 1.5rem; border: 2px solid var(--line); }
.about h3 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-deep); margin: 1.4rem 0 0.4rem; }
.about > :first-child { margin-top: 0; }
.about p { margin: 0 0 0.9rem; }
.about ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.about li { padding-left: 1.5rem; position: relative; margin: 0.3rem 0; }
.about li::before { content: "\2740"; color: var(--rose); position: absolute; left: 0; }

/* Plain pages: signup, confirmations, checkout messages */
main > h1, main > p, main > form, main > ul.errorlist { max-width: 36rem; margin-left: auto; margin-right: auto; }
main > h1 { text-align: center; }
.signup-form input[type="email"] { display: block; width: 100%; max-width: 24rem; margin-top: 0.25rem; }
.signup-form .consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.signup-form .consent input { width: 1.3rem; height: 1.3rem; margin-top: 0.3rem; accent-color: var(--blue-deep); }
.signup-form .consent label { font-weight: 400; }
.errorlist { color: #a32b2b; list-style: none; padding: 0; margin: 0.25rem 0; }
.fine-print { font-size: 0.92rem; color: var(--ink-soft); }

/* Footer: gingham ribbon, then a line of small print */
.site-footer { margin-top: 2rem; text-align: center; }
.site-footer .gingham { height: 26px;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(143, 176, 216, 0.5) 50%, transparent 50%), linear-gradient(rgba(143, 176, 216, 0.5) 50%, transparent 50%);
  background-size: 26px 26px;
  border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.site-footer .small { padding: 1.2rem 1rem 2rem; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .small .script { font-size: 1.7rem; display: block; color: var(--blue-night); }
.site-footer a { color: var(--ink); }

@media (min-width: 36rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 48rem) {
  .hero { grid-template-columns: 1.05fr 1fr; }
  .collage { grid-template-columns: repeat(2, 1fr); }
  .design { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .design .about { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .collage { grid-template-columns: repeat(3, 1fr); }
  .collage .frame:nth-child(3) { display: block; transform: rotate(-1.5deg) translateY(0.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .design-card .frame, .button { transition: none; }
}
