/* ===================================================================
   Dev Lumina, devlumina.in
   Single stylesheet. Mobile-first. No external fonts, no build step.
   =================================================================== */

/* -------------------------------------------------------------------
   1. Custom properties
   ------------------------------------------------------------------- */
:root {
  /* Palette: terracotta and unfired clay.
     Contrast against --paper (#FBF7F1):
       --ink          15.9:1   body text, headings
       --ink-soft      8.0:1   secondary text
       --terracotta-deep 7.1:1 links, accent text
     Against --ink (#241C17):
       --paper        15.9:1
       --clay          7.2:1   accent text on dark
     All pass WCAG AA for normal text. */
  --paper:            #FBF7F1;  /* off-white, unfired clay */
  --paper-warm:       #F3EADD;  /* warmer wash for alternating bands */
  --paper-warmer:     #EBDFCF;  /* form panel, subtle blocks */
  --ink:              #241C17;  /* deep neutral */
  --ink-soft:         #574A42;
  --line:             #D9C9B6;
  --line-soft:        #E6DACA;
  --terracotta:       #B0512A;  /* decorative / large type only */
  --terracotta-deep:  #8A3D1F;  /* text-safe accent */
  --clay:             #C8A188;  /* accent on dark ground */
  --clay-soft:        #A88568;
  --ok:              #2E5E3A;
  --err:             #9A2C20;

  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Type scale: fluid, mobile-first */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --fs-md:   clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-lg:   clamp(1.5rem, 1.32rem + 0.85vw, 2rem);
  --fs-xl:   clamp(2rem, 1.6rem + 1.9vw, 3rem);
  --fs-2xl:  clamp(2.75rem, 1.9rem + 4.1vw, 5.25rem);

  /* Space */
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --wrap:     72rem;

  --radius: 2px;
}

/* -------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------- */
*, *::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 { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  /* Fine clay grain. Two offset dot grids at very low opacity: texture
     without an image request. */
  background-image:
    radial-gradient(rgba(36, 28, 23, 0.035) 0.5px, transparent 0.5px),
    radial-gradient(rgba(176, 81, 42, 0.030) 0.5px, transparent 0.5px);
  background-size: 14px 14px, 22px 22px;
  background-position: 0 0, 7px 11px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

ul { margin: 0 0 1.1em; padding-left: 1.1em; }
li { margin-bottom: 0.4em; }

address { font-style: normal; }

::selection { background: var(--clay); color: var(--ink); }

/* Focus: visible on every ground */
:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--clay); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* -------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--dark {
  background-color: var(--ink);
  color: var(--paper);
  background-image:
    radial-gradient(rgba(251, 247, 241, 0.035) 0.5px, transparent 0.5px);
  background-size: 16px 16px;
}
.section--dark a { color: var(--clay); }
.section--dark a:hover { color: var(--paper); }

.section--notify { background-color: var(--paper-warm); }

.section__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.6em;
  max-width: 20ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 1.4rem;
}
.eyebrow--light { color: var(--clay); }

.lede {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section--dark .lede { color: var(--paper); }

.fineprint {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.section--dark .fineprint,
.site-footer .fineprint { color: var(--clay); }

/* Ornamental rules -------------------------------------------------- */
.rule-band {
  color: var(--line);
  border-block: 1px solid var(--line-soft);
  background: var(--paper-warm);
  padding-block: 0.9rem;
}
.rule { display: block; width: 100%; height: 16px; }

/* -------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 247, 241, 0.92);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
/* Wordmark. The supplied logo is black artwork on a transparent ground, so
   it sits directly on the paper background, and is inverted to white for the
   dark footer rather than shipping a second file. */
.wordmark { display: inline-block; line-height: 0; }
.wordmark__img {
  width: clamp(8.5rem, 30vw, 11rem);
  height: auto;
  display: block;
}
.wordmark__img--footer {
  width: clamp(9.5rem, 34vw, 12.5rem);
  filter: invert(1);
  margin-bottom: 1.4rem;
}
.site-header__link {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.site-header__link:hover { color: var(--terracotta-deep); border-color: var(--terracotta); }

/* Pre-launch notice on the policy pages: informative, not an error state. */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  background: var(--paper-warm);
  color: var(--ink-soft);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: var(--fs-sm);
}
.notice strong {
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  margin-bottom: 0.35rem;
  color: var(--terracotta-deep);
}
.notice p { max-width: none; margin: 0; }

/* -------------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); }

.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }

.hero__title {
  font-size: var(--fs-2xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
  max-width: 14ch;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 2rem;
  max-width: none;
}

@media (min-width: 56em) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .hero__text { order: 1; }
  .photo-slot--hero { order: 2; }
}

/* -------------------------------------------------------------------
   6. Photography slots (temporary geometric ornament lives inside)
   ------------------------------------------------------------------- */
.photo-slot {
  margin: 0;
  position: relative;
  background: var(--paper-warmer);
  border: 1px solid var(--line);
  color: var(--clay-soft);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
}
.photo-slot--hero {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}
.photo-slot--square {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  background: #2E251F;
  border-color: #43362D;
  color: var(--clay-soft);
}
.photo-slot .motif { width: 100%; height: 100%; }
.photo-slot__note {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.photo-slot--square .photo-slot__note { color: var(--clay); }

/* -------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 44px;
}
.btn--primary {
  background: var(--terracotta-deep);
  color: var(--paper);
  border-color: var(--terracotta-deep);
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--primary:disabled { opacity: 0.6; cursor: progress; }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-warm); }

.btn--block { width: 100%; }

/* -------------------------------------------------------------------
   8. Cards: what we make
   ------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.card {
  border-top: 2px solid var(--terracotta);
  padding-top: 1.5rem;
}
.card__title {
  font-size: var(--fs-lg);
  margin-bottom: 0.6rem;
}
.card p { color: var(--ink-soft); max-width: 42ch; }

@media (min-width: 48em) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3.5vw, 3rem); }
}

/* -------------------------------------------------------------------
   9. Craft
   ------------------------------------------------------------------- */
.craft__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.craft__text p { color: #E4D8CB; }
.craft__pending {
  border-left: 2px solid var(--clay-soft);
  padding-left: 1.1rem;
  font-style: italic;
  color: var(--clay) !important;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  line-height: 1.45;
}

@media (min-width: 56em) {
  .craft__grid { grid-template-columns: 1fr 0.75fr; align-items: center; }
}

/* -------------------------------------------------------------------
   10. Gifting
   ------------------------------------------------------------------- */
.gifting__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

.list { list-style: none; padding: 0; margin-block: 1.75rem; max-width: 44ch; }
.list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--terracotta);
}

@media (min-width: 56em) {
  .gifting__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(3rem, 6vw, 5rem); }
}

/* -------------------------------------------------------------------
   11. Forms
   ------------------------------------------------------------------- */
.form-panel {
  background: var(--paper-warmer);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4.5vw, 2.5rem);
}
.form-panel__title {
  font-size: var(--fs-lg);
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.req { color: var(--terracotta-deep); }
.opt { color: var(--ink-soft); font-size: var(--fs-xs); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;              /* >=16px keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  min-height: 44px;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:hover,
.field textarea:hover { border-color: var(--clay-soft); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--err); background: #FDF3F1; }

.field__hint {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}
.field__err {
  font-size: var(--fs-xs);
  color: var(--err);
  margin: 0.35rem 0 0;
  font-weight: 600;
}

/* Honeypot: off-screen but not display:none, so bots still see it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  border-left: 3px solid;
  max-width: none;
}
.form__status--ok  { color: var(--ok);  border-color: var(--ok);  background: #EEF4EE; }
.form__status--err { color: var(--err); border-color: var(--err); background: #FBEFEC; }

/* Notify: inline form */
.notify__inner { text-align: left; }
.notify__lede { margin-bottom: 2rem; }
.form--inline .field { margin-bottom: 1rem; }
.form--inline { max-width: 34rem; }
.notify__fineprint { margin-top: 1.25rem; max-width: 46ch; }
.section--notify .field input { background: var(--paper); }

@media (min-width: 34em) {
  .form--inline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.75rem;
    max-width: 36rem;
  }
  .form--inline .field { margin-bottom: 0; }
  .form--inline .form__status { grid-column: 1 / -1; margin-top: 0.5rem; }
  .form--inline .btn { min-height: 48px; }
}

/* -------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #3A2E27;
}
.site-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
  font-weight: 600;
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin-bottom: 0.55rem; }
.site-footer__nav a {
  color: var(--paper);
  font-size: var(--fs-sm);
  text-decoration: none;
  border-bottom: 1px solid #4A3B32;
  padding-bottom: 2px;
}
.site-footer__nav a:hover { color: var(--clay); border-color: var(--clay); }
.site-footer .fineprint a { color: var(--clay); }
.site-footer address { margin-bottom: 0.75rem; }
.site-footer__brand p { margin-bottom: 0.5rem; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
}
.site-footer__base p { margin: 0; }

@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

/* -------------------------------------------------------------------
   13. Legal pages
   ------------------------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y); }
.legal__wrap { max-width: 46rem; }

.legal h1 { font-size: var(--fs-xl); margin-bottom: 0.35em; }
.legal h2 {
  font-size: var(--fs-lg);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.legal h3 { font-size: var(--fs-md); margin-top: 1.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { max-width: 62ch; }
.legal__meta {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.legal dl { margin: 0 0 1.5rem; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.legal dd { margin: 0.25rem 0 0; color: var(--ink-soft); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--fs-sm);
}
.legal th, .legal td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal th { background: var(--paper-warm); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* -------------------------------------------------------------------
   14. Print
   ------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer__nav, .rule-band, .photo-slot { display: none; }
  a { text-decoration: underline; }
}
