/* =========================================================
   Portfolio site — base styles
   Palette + fonts pulled from the Maegan Guerette brand sheet:
   cream/peach/ochre/rust/dusty-blue/taupe/sage/deep-brown, with
   Cormorant Garamond + EB Garamond + Mrs Saint Delafield standing
   in for the brand's Klaussen / Marion / Grafted Rosita (not on
   Google Fonts, so not loadable here).
   ========================================================= */

:root {
  --cream: #ffffff;
  --ink: #584836;
  --ink-soft: #9e8d80;
  --peach: #e1ab8d;
  --rust: #8f452d;
  --ochre: #de982b;
  --dusty-blue: #a2b0b9;
  --sage: #969e93;
  --border: rgba(88, 72, 54, 0.14);

  --font-serif: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-name: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  padding: 40px 24px 0;
  text-align: center;
}

.logo {
  display: inline-block;
  width: 100%;
  max-width: 620px;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.tagline {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.intro-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.intro-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro-text {
  margin: 0;
  max-width: 460px;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.page-intro {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .intro-block {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

.main-nav {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.main-nav > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin: 0 auto;
  padding: 16px 24px;
  max-width: var(--max-width);
}

.main-nav a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--rust);
  border-color: var(--rust);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 44px;
  right: 24px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Nav dropdown (Work > Illustrations / Patterns) ---------- */

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dropdown-toggle:hover,
.has-dropdown.is-open .dropdown-toggle,
.has-dropdown.is-current .dropdown-toggle {
  color: var(--rust);
  border-color: var(--rust);
}

.dropdown-toggle .caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.has-dropdown.is-open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(88, 72, 54, 0.16);
  min-width: 168px;
  display: none;
  z-index: 30;
}

.has-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 22px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.is-active {
  color: var(--rust);
  background: var(--cream);
}

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

.footer-email {
  margin: 56px 24px 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-email a:hover {
  color: var(--rust);
}

.site-footer {
  margin-top: 24px;
  padding: 24px 24px 56px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer .socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.site-footer .socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-footer .socials a:hover {
  color: var(--rust);
  border-color: var(--rust);
  transform: translateY(-2px);
}

.site-footer .socials svg {
  width: 18px;
  height: 18px;
}


/* ---------- Work grid (masonry) ---------- */

.work-grid {
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;
  grid-auto-flow: dense;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.work-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: 0 1px 3px rgba(88, 72, 54, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(88, 72, 54, 0.18);
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
}

.work-item .work-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(58, 44, 34, 0.88), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-item:hover .work-caption,
.work-item:focus-visible .work-caption {
  opacity: 1;
  transform: translateY(0);
}

.work-caption-title {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.work-caption-cat {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.tile svg {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  opacity: 0.9;
}

.tile .tile-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
}

.tile .tile-cat {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* height variety so the grid reads as a waterfall like the reference */
.h-sm .tile { padding-top: 26px; padding-bottom: 26px; }
.h-md .tile { padding-top: 50px; padding-bottom: 50px; }
.h-lg .tile { padding-top: 84px; padding-bottom: 84px; }

.bg-pink   { background: var(--peach); }
.bg-sage   { background: var(--sage); }
.bg-terra  { background: var(--ochre); }
.bg-butter { background: var(--dusty-blue); }
.bg-lav    { background: var(--rust); }
.bg-ink    { background: var(--ink); }

/* ---------- Page header (About / Contact / Shop) ---------- */

.page-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 8px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--rust);
  margin: 0 0 12px;
}

.page-hero h1.plain {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}

.page-hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- About page ----------
   Two columns on a full screen — photo left, copy right, both the
   same height as each other; collapses to one stacked column (photo
   on top, its own height) only once the viewport gets narrow. */

.about-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.about-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  color: var(--rust);
  margin: 0 0 28px;
}

.about-greeting svg {
  width: 22px;
  height: 22px;
}

.about-copy p {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.about-socials {
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-socials a {
  color: var(--rust);
}

.about-socials a:hover {
  color: var(--ink);
}

.about-socials .divider {
  margin: 0 10px;
  color: var(--ink-soft);
}

/* ---------- Contact page ----------
   Two panels: a real form on the left, a branded illustration panel
   on the right. The image panel is a placeholder — swap the
   .illustration-placeholder block for a real <img> when art is ready. */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: 1100px;
  margin: 48px auto 96px;
  padding: 0 24px;
}

.contact-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 48px 44px;
  box-shadow: 0 4px 20px rgba(88, 72, 54, 0.08);
}

.contact-form-panel h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.contact-form-panel .lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(225, 171, 141, 0.14);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: #fff;
}

.contact-form .submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 28px;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-form .submit-btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.contact-form .submit-btn svg {
  width: 16px;
  height: 16px;
}

.contact-image-panel {
  position: relative;
  background: var(--rust);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  border-radius: 0 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-image-panel .sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
}

.illustration-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  color: #fff;
  padding: 24px;
}

.illustration-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.85;
}

.illustration-placeholder p {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.illustration-placeholder span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.contact-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.contact-meta {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Shop / Licensing page ---------- */

.shop-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(88, 72, 54, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(88, 72, 54, 0.18);
}

.shop-item .tile {
  aspect-ratio: 1/1;
  padding: 24px;
}

.shop-item .shop-info {
  padding: 14px 16px 18px;
}

.shop-item .shop-info .name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.shop-item .shop-info .price {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ---------- Patterns page ----------
   Masonry, like .work-grid — varied tile heights so any real pattern
   image can drop in later regardless of its native dimensions. */

.pattern-grid {
  padding: 48px 24px 24px;
  column-count: 3;
  column-gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pattern-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  background-repeat: repeat;
  box-shadow: 0 1px 3px rgba(88, 72, 54, 0.1);
}

.pattern-item.h-sm { height: 200px; }
.pattern-item.h-md { height: 300px; }
.pattern-item.h-lg { height: 420px; }

.pat-1 {
  background-color: var(--peach);
  background-image: radial-gradient(var(--cream) 3px, transparent 3.5px);
  background-size: 28px 28px;
}

.pat-2 {
  background-color: var(--sage);
  background-image: repeating-linear-gradient(45deg, var(--cream) 0 6px, transparent 6px 20px);
}

.pat-3 {
  background-color: var(--dusty-blue);
  background-image:
    linear-gradient(rgba(88, 72, 54, 0.22) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(88, 72, 54, 0.22) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.pat-4 {
  background-color: var(--ink);
  background-image:
    radial-gradient(var(--peach) 2.5px, transparent 3px),
    radial-gradient(var(--sage) 2.5px, transparent 3px);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}

.pat-5 {
  background-color: var(--rust);
  background-image: repeating-linear-gradient(-45deg, var(--cream) 0 5px, transparent 5px 22px);
}

.pat-6 {
  background-color: var(--ochre);
  background-image: repeating-linear-gradient(0deg, var(--cream) 0 5px, transparent 5px 22px);
}

.catalogue-cta {
  max-width: 480px;
  margin: 56px auto 96px;
  padding: 0 24px;
  text-align: center;
}

.catalogue-cta p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0 0 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 5px;
  background: transparent;
  border-radius: 0;
  color: var(--rust);
  transition: transform 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  color: var(--ink);
  transform: scale(0.92);
}

.icon-btn svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ---------- Brand row (Etsy / Spoonflower / Natural Roots) ----------
   The three wordmarks are a single supplied image, not live text. */

.brand-row {
  display: flex;
  justify-content: center;
  max-width: var(--max-width);
  margin: 72px auto 0;
  padding: 0 24px;
}

.brand-row img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ---------- Instagram band ----------
   Full-bleed strip — italic label + square posts flush to the edge.
   Tiles are clickable placeholders (see README): a live auto-updating
   feed needs a script/iframe from a host outside this preview's
   sandbox, so it can't render inside this artifact, but will work
   once the site is deployed for real. */

.insta-band {
  width: 100%;
  background: var(--ochre);
  margin-top: 88px;
}

.insta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 24px 0;
  width: 100%;
}

.insta-label {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
}

.insta-strip {
  width: 100%;
  display: flex;
  min-width: 0;
}

.insta-widget-wrap {
  width: 100%;
  padding: 0 0 16px;
}

.insta-photo {
  flex: 1 1 0;
  height: clamp(140px, 16vw, 230px);
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: block;
}

.insta-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(88, 72, 54, 0);
  transition: background 0.15s ease;
}

.insta-photo:hover::before,
.insta-photo:focus-visible::before {
  background: rgba(88, 72, 54, 0.35);
}

.insta-photo-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.insta-photo:hover .insta-photo-icon,
.insta-photo:focus-visible .insta-photo-icon {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { column-count: 2; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .about-page { grid-template-columns: 1fr; gap: 40px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-panel {
    border-radius: 16px 16px 0 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .contact-image-panel {
    border-radius: 0 0 16px 16px;
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .pattern-grid { column-count: 1; }

  .nav-toggle { display: block; }

  .main-nav > ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 24px;
  }

  .main-nav.is-open > ul {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    display: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 0;
    min-width: 0;
    text-align: center;
  }

  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 8px 0;
  }

  .insta-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
  }

  .insta-strip {
    width: 100%;
  }
}
