/* Mogeesha Crafts — site styles
   Palette: lichen ground, bog-oak ink, estuary green, beeswax highlight.
   Type: Young Serif for headings, Figtree for reading. */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/young-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/young-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lichen: #E3E5D8;     /* page ground */
  --paper: #F1F2EA;      /* lighter panels */
  --oak: #2A2119;        /* text */
  --walnut: #5E4433;     /* secondary text */
  --estuary: #26413E;    /* dark bands, buttons */
  --estuary-deep: #1C3230;
  --beeswax: #D9A93C;    /* highlight on dark */
  --line: rgba(42, 33, 25, .16);
  --ring: rgba(38, 65, 62, .22);

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--lichen); color: var(--oak); font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--beeswax); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--estuary); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border: 2px solid var(--estuary); border-radius: 999px; background: var(--estuary); color: var(--paper); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--estuary-deep); border-color: var(--estuary-deep); }
.btn-ghost { background: transparent; color: var(--estuary); }
.btn-ghost:hover { background: var(--estuary); color: var(--paper); }
.btn-small { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--lichen) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--oak); }
.brand-mark { width: 2.25rem; height: 2.25rem; color: var(--estuary); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font: 400 1.3rem/1 var(--serif); white-space: nowrap; }
.brand-logo { max-height: 3rem; width: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current]:not(.btn) { border-bottom-color: var(--estuary); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; padding: 0 .55rem; border: 0; background: none; cursor: pointer; }
  .nav-toggle .bar { display: block; height: 2px; background: var(--oak); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 4.5rem 0 0; background: var(--lichen); padding: 2rem var(--gutter); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .site-nav a:not(.btn) { font: 400 1.75rem/1.2 var(--serif); }
  .js .site-nav:not(.is-open) { display: none; }
  html:not(.js) .site-nav { position: static; display: block; padding: 0 0 1rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* Photo placeholder (shown until a photo is uploaded) */
span.ph { display: grid; place-items: center; background: var(--paper) repeating-radial-gradient(circle at 30% 120%, transparent 0 14px, var(--ring) 14px 15px); color: var(--walnut); font-size: .9rem; aspect-ratio: 4 / 5; }
span.ph span { background: var(--paper); padding: .25rem .6rem; border-radius: 999px; }

/* Home hero: the photo sits at the heart of a cross-section of growth rings */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--walnut); max-width: 34rem; }
.hero-meta { margin-top: 1.5rem; font-size: .95rem; color: var(--walnut); }
.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 30rem); }
.rings { position: absolute; inset: -28%; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(ellipse 50% 48% at 52% 50%, transparent 0 22px, var(--ring) 22px 23.5px, transparent 23.5px 31px, var(--ring) 31px 32px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.hero-photo { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.hero-photo.ph { border-radius: 50%; }
.hero-figure figcaption { position: relative; text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--walnut); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(78%, 24rem); order: -1; margin-block: 1rem 1.5rem; }
}

/* Sections */
.section { padding-block: var(--space); }
.section-tight { padding-top: clamp(1rem, 3vw, 2rem); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--walnut); max-width: 32rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Craft tiles */
.craft-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .craft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .craft-grid { grid-template-columns: 1fr; } }
.craft-tile { display: block; text-decoration: none; }
.tile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--paper); }
.craft-tile .tile-photo { transition: filter .2s; }
.craft-tile:hover .tile-photo { filter: brightness(1.06) saturate(1.05); }
.tile-name { display: block; margin-top: .9rem; font: 400 1.5rem/1.15 var(--serif); }
.craft-tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.tile-summary { display: block; margin-top: .35rem; color: var(--walnut); font-size: .98rem; }

/* Maker band */
.maker { background: var(--estuary); color: var(--paper); padding-block: var(--space); }
.maker-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.maker-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.maker-text { max-width: 34rem; font-size: 1.12rem; }
.maker-text h2 { color: var(--paper); }
.maker-text p { color: color-mix(in srgb, var(--paper) 88%, transparent); }
.link-light { color: var(--beeswax); font-weight: 600; }
.maker :focus-visible { outline-color: var(--beeswax); }
@media (max-width: 760px) { .maker-grid { grid-template-columns: 1fr; } }

/* Gift call to action */
.gift { padding-block: var(--space); border-top: 1px solid var(--line); }
.gift-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 4rem; align-items: start; }
.gift h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.gift-body p { font-size: 1.12rem; color: var(--walnut); max-width: 30rem; }
.gift-body .actions { margin-top: 1.25rem; }
@media (max-width: 760px) { .gift-inner { grid-template-columns: 1fr; } }

/* Inner page heading */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .hero-intro { margin: 0; }
.page-hero-tall { padding-block: clamp(4rem, 12vw, 9rem); }
.crumbs { margin: 0 0 .75rem; font-size: .95rem; }
.crumbs a { color: var(--walnut); }

/* Photo grid on each craft page */
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.photo-grid-few { grid-template-columns: repeat(2, minmax(0, 24rem)); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-grid, .photo-grid-few { grid-template-columns: 1fr; } }
.photo-grid figure, .masonry figure { margin: 0; }
.grid-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--paper); }
.photo-grid a, .masonry figure > a { display: block; cursor: zoom-in; }
figcaption { margin-top: .5rem; font-size: .95rem; color: var(--walnut); }
.empty { color: var(--walnut); }

.craft-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.craft-nav a { display: flex; flex-direction: column; text-decoration: none; font: 400 1.35rem/1.2 var(--serif); }
.craft-nav a:last-child { text-align: right; }
.craft-nav span { font: 500 .9rem/1.4 var(--sans); color: var(--walnut); }
.craft-nav a:hover { text-decoration: underline; }

/* Gallery */
.masonry { list-style: none; columns: 3 16rem; column-gap: clamp(.75rem, 2vw, 1.5rem); }
.masonry li { break-inside: avoid; margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.masonry-photo { width: 100%; border-radius: 4px; background: var(--paper); }
.masonry figcaption a { text-decoration: none; }
.masonry figcaption a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox { max-width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible; }
.lightbox::backdrop { background: rgba(20, 30, 29, .9); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox p { text-align: center; margin: .75rem 0 0; }
.lb-close { position: fixed; top: 1rem; right: 1rem; background: var(--paper); color: var(--oak); border: 0; border-radius: 999px; padding: .5rem 1rem; font: 600 .95rem var(--sans); cursor: pointer; }

/* About */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about-photo-wrap { position: sticky; top: 6rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-photo-wrap { position: static; } }
.prose { max-width: 38rem; font-size: 1.1rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: .3rem; }
.page-hero .prose p:last-child { margin-bottom: 0; }
.makes { columns: 2 12rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .98rem; }
.opt { font-weight: 400; color: var(--walnut); }
input, select, textarea { font: inherit; color: var(--oak); background: var(--paper); border: 1.5px solid rgba(42, 33, 25, .35); border-radius: 6px; padding: .7rem .85rem; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--estuary); outline: 3px solid color-mix(in srgb, var(--beeswax) 70%, transparent); outline-offset: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #9B2C1F; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; color: var(--walnut); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; }
.form-status.is-error { color: #9B2C1F; font-weight: 600; }
.contact-aside { background: var(--paper); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-aside h2 { font-size: 1.5rem; }
.contact-list { margin: 0; display: grid; gap: .9rem; }
.contact-list dt { font-size: .9rem; color: var(--walnut); }
.contact-list dd { margin: 0; font-weight: 500; }

/* Footer */
.site-footer { background: var(--estuary-deep); color: color-mix(in srgb, var(--paper) 82%, transparent); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: .98rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--beeswax); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mark { display: block; width: 2.75rem; height: 2.75rem; color: var(--beeswax); margin-bottom: .75rem; }
.footer-mark svg { width: 100%; height: 100%; }
.footer-name { font: 400 1.5rem/1.2 var(--serif); color: var(--paper); margin-bottom: .4rem; }
.footer-brand p:last-child { max-width: 22rem; }
.footer-h { font: 600 1rem/1.4 var(--sans); color: var(--paper); margin: 0 0 .9rem; }
.footer-list { list-style: none; display: grid; gap: .5rem; }
.footer-cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.footer-note { margin-top: .4rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(241, 242, 234, .16); font-size: .9rem; }
.footer-base p { margin: 0; }

/* Legal page */
.is-legal .prose { font-size: 1.02rem; }
.is-legal .prose h2 { font-size: 1.45rem; }
