/* little acorn creations — based on the site's Twenty Twenty-Five look */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #f8f7f5;        /* page background */
  --white: #ffffff;
  --text: #5f5f5f;        /* body text */
  --heading: #191919;     /* headings, buttons */
  --peach: #f5b684;       /* accent */
  --sand: #f1eee9;        /* light panels */
  --sage: #cbd8d0;        /* footer band */
  --line: #19191933;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --small: 0.875rem;
  --medium: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --large: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --x-large: clamp(1.75rem, 1.65rem + 0.5vw, 2rem);
  --xx-large: clamp(2.15rem, 1.85rem + 1.5vw, 3rem);

  --gutter: clamp(20px, 5vw, 50px);
  --space: clamp(30px, 5vw, 50px);
  --content: 850px;
  --wide: 1340px;
}

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.1px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 400; line-height: 1.2; margin: 1.6em 0 .6em; }
h1 { font-size: var(--xx-large); }
h2 { font-size: var(--x-large); }
h3 { font-size: var(--large); }
h4 { font-size: var(--medium); font-weight: 700; }
p, ul, ol, figure, table { margin: 0 0 1.2rem; }
figure { margin-inline: 0; }
figcaption { font-size: var(--small); font-style: italic; margin-top: .4rem; }
strong { font-weight: 600; }
a { color: currentColor; text-decoration: underline; text-underline-offset: .15em; }
a:hover { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.small { font-size: var(--small); }
.center { text-align: center; }
.panel { background: var(--sand); border-radius: 16px; padding: 1.5rem 1.25rem .5rem; margin-block: 2rem; }
.essay-more { clear: both; margin-top: 2.5rem; }
.page h2, .page h3 { clear: both; }
.skip-link { position: absolute; left: -999em; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .75rem 1rem; background: var(--white); z-index: 100; }

/* Layout */
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.page { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space) var(--gutter); }
.page > h1:first-child { margin-top: 0; }
.home { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space) var(--gutter); }
.home > h2, .home > .cols, .home > .media-text { margin-bottom: var(--space); }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.aligncenter { margin-inline: auto; }
.band { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.rounded img { border-radius: 9999px; }

/* Block layouts carried over from the old pages */
.cols { display: flex; gap: clamp(1.5rem, 4vw, 3rem); align-items: flex-start; }
.cols > .col { flex: 1 1 0; min-width: 0; }
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.media-text.media-right .media { order: 2; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
div.cover { position: relative; }
div.cover .cover-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem; color: var(--white); background: rgba(0, 0, 0, .35); }
div.cover .cover-body p { margin: .25rem 0; font-size: var(--x-large); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) {
  .cols, .media-text { display: block; }
  .cols > .col { margin-bottom: 1.5rem; }
  .alignright, .alignleft { float: none; margin: 0 0 1rem; }
}

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.page .buttons:has(> :only-child) { justify-content: center; }
.button, button, input[type="submit"] {
  display: inline-block; background: var(--heading); color: var(--white); border: 0; border-radius: 9999px;
  padding: .6rem 1.6rem; font: inherit; font-size: var(--medium); text-decoration: none; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { background: color-mix(in srgb, var(--heading) 85%, transparent); color: var(--white); }
.button.secondary { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1px var(--heading); }
.button.secondary:hover { background: var(--heading); color: var(--white); }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 24px 40px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--heading); font-size: var(--large); font-weight: 300; }
.brand img { width: 60px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-nav a { text-decoration: none; color: var(--heading); font-size: var(--medium); }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav__toggle { display: none; background: none; color: var(--heading); padding: .5rem; border-radius: 0; }
.site-nav__toggle:hover { background: none; color: var(--heading); }
.site-nav__toggle svg { width: 24px; height: 24px; display: block; }
@media (max-width: 800px) {
  .site-header { padding: 16px 20px; }
  .site-nav { position: relative; }
  .site-nav__toggle { display: block; }
  .site-nav ul { display: none; position: absolute; right: 0; flex-direction: column; background: var(--white); padding: 1rem 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 10; min-width: 12rem; }
  .site-nav.is-open ul { display: flex; }
}

/* Footer */
.site-footer { margin-top: var(--space); padding: 0 var(--gutter); }
.site-footer__inner { background: var(--sage); padding: clamp(30px, 5vw, 50px) clamp(20px, 3vw, 30px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; color: var(--heading); max-width: var(--wide); margin: 0 auto; }
.site-footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.site-footer__brand img { width: 60px; }
.site-footer__brand p { margin: 0 0 .35rem; }
.site-footer__title { font-size: var(--large); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--medium); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__copy { max-width: var(--wide); margin: 0 auto; padding: 1rem 0 2rem; }

/* Pattern list */
.pattern-section { margin-bottom: var(--space); }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.card-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .6rem; }
.card-grid :is(h2, h3) { margin: 0 0 .2rem; font-size: var(--medium); font-weight: 600; }
.card-grid :is(h2, h3) a { text-decoration: none; color: var(--heading); }
.card-grid :is(h2, h3) a:hover { text-decoration: underline; }
.card-grid p { margin: 0; font-size: var(--small); }

/* Pattern page */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); max-width: var(--wide); margin: 0 auto; padding: var(--space) var(--gutter); }
.product h1 { margin-top: 0; font-size: var(--x-large); }
.product-photos .main img { width: 100%; }
.product-photos .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; margin-top: .5rem; }
.product-photos .thumbs img { aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.product-photos .thumbs button { padding: 0; background: none; border-radius: 0; }
.price { font-size: var(--large); color: var(--heading); margin-bottom: 1rem; }
.summary { font-size: var(--large); }
.buy { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.buy-note { font-size: var(--small); margin-top: -.75rem; }
.details { width: 100%; border-collapse: collapse; font-size: var(--medium); margin-top: 1rem; }
.details th, .details td { text-align: left; vertical-align: top; padding: .5rem .5rem .5rem 0; border-top: 1px solid var(--line); }
.details th { width: 35%; color: var(--heading); font-weight: 600; }
.product-description { grid-column: 1 / -1; max-width: var(--content); }
.product-meta { font-size: var(--small); }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }

/* Swatches */
.swatch-meta { font-size: var(--small); }

/* Forms (newsletter, contact) */
.signup-form, .contact-form { display: grid; gap: .75rem; max-width: 640px; margin: 0 auto 1.2rem; }
.signup-form label, .contact-form label { font-weight: 500; color: var(--heading); font-size: var(--medium); }
.signup-form input[type="text"], .signup-form input[type="email"],
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); font: inherit; color: var(--heading);
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.signup-form input[type="submit"] { justify-self: end; background: var(--sage); color: #000; border-radius: .9rem; }
.signup-form .small { text-align: right; margin: 0; }
.contact-form .formcontext { position: absolute; left: -999em; width: 1em; overflow: hidden; }
.contact-form__status { margin: 0; font-weight: 500; }
.contact-form__status[data-state="error"] { color: #b32d2e; }
