/* ============================================================
   JADE IRIS: visual identity. Site-specific.

   WHO THIS IS FOR
   People buying jade, a gemstone gift or a birthstone piece, often
   online, who've heard jade is faked a lot and don't want to pay
   real-jade prices for dyed stone or glass.

   WHAT THE DESIGN HAS TO SAY
   A quiet, trustworthy jeweler's counter: polished but not flashy,
   with the honest details (grades, treatments, lab reports) set out
   plainly. Luxury you can trust, not luxury that sells.

   SIGNATURES
   The A, B and C jade grade tiles. A thin iridescent band under the
   header for the iris stones. A faceted gem mark. The birthstone
   calendar as twelve tiles.

   COLOR
   Ivory ground, jade green for links and buttons, iris violet for
   labels and focus, soft jade and iris washes, a deep green-black
   footer. Every text pair is checked by the build script.

   TYPE
   Castoro for headings: an elegant, readable serif with a jeweler's
   polish. Encode Sans for reading: clear and even.
   ============================================================ */

:root {
  --ivory:     #f8f7f2;
  --card:      #ffffff;
  --ink:       #17201c;
  --ink-soft:  #4f5a55;
  --jade:      #1f6b50;
  --jade-deep: #134a37;
  --jade-wash: #e3f1ea;
  --iris:      #5b3fa0;
  --iris-wash: #efeafa;
  --dark:      #10231c;
  --on-dark:   #d5e3dc;
  --lilac:     #cbb8f2;
  --line:      #e4e2d8;

  --accent:     var(--jade);
  --accent-ink: #ffffff;
  --focus:      #5b3fa0;
  --measure:    66ch;

  --display: 'Castoro', Georgia, 'Times New Roman', serif;
  --body:    'Encode Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[hidden] { display: none !important; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--ivory); }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; color: var(--jade-deep); }
h1 { font-size: clamp(2.4rem, 5.8vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.6rem; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.3rem; }
p + p { margin-top: 0.8rem; }
a { color: var(--jade); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--iris); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.kicker { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iris); margin-bottom: 0.5rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }
.fine { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.8rem; }
.label { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--iris); margin: 0 0 0.3rem; }
.source { font-size: 0.8125rem; color: var(--ink-soft); margin-top: auto; padding-top: 0.5rem; overflow-wrap: anywhere; }

.site-header { background: var(--card); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--display); font-size: 1.6rem; color: var(--jade-deep); text-decoration: none; }
.gem { width: 22px; height: 22px; background: linear-gradient(135deg, #3f9b77 0 45%, var(--jade) 45% 70%, var(--jade-deep) 70%); transform: rotate(45deg); border-radius: 3px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--iris); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--jade); }
.irid { height: 5px; background: linear-gradient(90deg, #7fd1b0, #9db8f2, #cbb8f2, #f2b8d8, #f2dc9d, #7fd1b0); }

main { padding-block: 3rem 4rem; }
.hero { padding-bottom: 1rem; }
.hero h1 { max-width: 17ch; margin-bottom: 0.9rem; }
.section { margin-top: 3.25rem; }

/* Grades */
.grades { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.grade { max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.grade-letter { grid-row: 1 / span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-family: var(--display); font-size: 1.7rem; color: #ffffff; background: var(--jade); }
.grade--b .grade-letter { background: var(--iris); }
.grade--c .grade-letter { background: var(--ink-soft); }
.grade p { margin: 0; }

/* Doors, facts, tools */
.doors { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.doors li { max-width: none; }
.door { display: block; height: 100%; min-height: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; color: var(--ink); text-decoration: none; }
.door:hover { border-color: var(--jade); box-shadow: 0 3px 0 var(--jade); }
.door-title { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--jade-deep); }
.door-sub { display: block; color: var(--ink-soft); margin-top: 0.2rem; }
.facts, .tools { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.fact, .tool { max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 0.9rem; display: flex; flex-direction: column; }
.fact { border-top: 4px solid var(--jade); }
.tool { border-top: 4px solid var(--iris); }
.go { font-weight: 600; margin-top: auto; padding-top: 0.3rem; }
.go a { display: inline-flex; align-items: center; min-height: 44px; }

/* Birthstone calendar */
.months { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); }
.month { max-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; text-align: center; }
.m-name { font-family: var(--display); font-size: 1.3rem; color: var(--jade-deep); margin: 0; }
.m-stones { margin: 0.2rem 0 0; color: var(--ink-soft); }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 1.9rem); }
.panel--iris { background: var(--iris-wash); border-color: var(--iris-wash); }
.panel--iris h2 { color: var(--iris); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; background: var(--jade); color: #ffffff; border: 2px solid var(--jade); border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: var(--body); }
.btn:hover { background: var(--jade-deep); border-color: var(--jade-deep); color: #ffffff; }
.btn--ghost { background: transparent; color: var(--jade-deep); }
.btn--ghost:hover { background: var(--jade-wash); color: var(--jade-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.prose li { margin-bottom: 0.45rem; }
.signup { display: grid; gap: 0.6rem; max-width: 26rem; margin-top: 1rem; }
.signup label { font-weight: 600; }
.signup input { padding: 0.6rem 0.9rem; border: 2px solid var(--ink-soft); border-radius: 10px; background: #ffffff; font: inherit; }
.signup button { justify-self: start; }

.site-footer { background: var(--dark); color: #ffffff; margin-top: 2rem; padding-block: 2.5rem 3rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font-family: var(--body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); margin-bottom: 0.5rem; }
.site-footer p { color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ffffff; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--lilac); }
.site-footer .fine { color: var(--on-dark); margin-top: 2rem; }
.site-footer :focus-visible { outline-color: var(--lilac); }

@media (forced-colors: active) { .grade, .door, .fact, .tool, .month, .panel, .btn { border: 1px solid; } }
