  /* Earth & Ember Jewells — the website's styles (redesign 3 Oct 2026).
     Silver, graphite and emerald; Josefin Sans for headings, Source Serif 4 for reading.
     Fonts are served from this site (no third-party requests). */
  @font-face { font-family: "Josefin Sans"; font-weight: 100 700; font-display: swap;
    src: url("fonts/josefin-sans-latin.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: "Josefin Sans"; font-weight: 100 700; font-display: swap;
    src: url("fonts/josefin-sans-latin-ext.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: "Source Serif 4"; font-weight: 200 900; font-display: swap;
    src: url("fonts/source-serif-4-latin.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: "Source Serif 4"; font-weight: 200 900; font-display: swap;
    src: url("fonts/source-serif-4-latin-ext.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url("fonts/source-serif-4-italic-latin.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url("fonts/source-serif-4-italic-latin-ext.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; }

  :root {
    --mist: #E8ECEE;      /* page: polished silver */
    --card: #FAFBFB;      /* the earring card, panels, the sheet */
    --field: #FFFFFF;
    --graphite: #23292D;  /* text */
    --soft: #59636A;      /* quieter text */
    --polish: #AEB7BE;    /* rules and borders */
    --wire: #9AA4AB;      /* drawn silver */
    --emerald: #17604F;   /* buttons, links, the stone */
    --emerald-deep: #0F4A3C;
    --garnet: #7B2232;    /* focus rings only */
    --on-emerald: #FFFFFF;
    --err-bg: #F6E7EA; --err: #7B2232; --ok-bg: #E2EFEA; --ok: #0F4A3C;
    --head: "Josefin Sans", "Century Gothic", "Segoe UI", sans-serif;
    --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  }
  @media (prefers-color-scheme: dark) {
    :root { --mist: #171C1F; --card: #1E2428; --field: #242B30; --graphite: #E4E9EB; --soft: #A3AEB5;
            --polish: #3D484F; --wire: #8C979E; --emerald: #5DB497; --emerald-deep: #7CC9AE; --garnet: #E08A99;
            --on-emerald: #0E1A16;
            --err-bg: #3A1F25; --err: #F0B3BE; --ok-bg: #18322A; --ok: #9FD8C2; }
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--mist); color: var(--graphite);
         font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
  a { color: var(--emerald); text-underline-offset: .18em; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--garnet); outline-offset: 3px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
  [hidden] { display: none !important; }      /* a hidden field stays hidden, whatever its own display */

  /* ---- header, the same on every page ---- */
  body > .wrap:first-of-type { border-bottom: 1px solid var(--polish); max-width: none; padding: 0; }
  header.top { display: flex; align-items: center; gap: 12px; height: 76px; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
  header.top .mark { width: 36px; height: 36px; color: var(--emerald); flex: none; }
  header.top .name { font: 600 19px/1 var(--head); letter-spacing: .02em; color: var(--graphite); text-decoration: none; padding-top: 3px; }
  header.top nav { margin-left: auto; display: flex; gap: 26px; }
  header.top nav a { color: var(--graphite); text-decoration: none; font: 400 16px/1 var(--head);
                     padding: 8px 0 5px; border-bottom: 1px solid transparent; }
  header.top nav a:hover { border-color: var(--graphite); }

  /* ---- buttons ---- */
  .btn { display: inline-block; background: var(--emerald); color: var(--on-emerald); text-decoration: none;
         font: 600 16px/1 var(--head); letter-spacing: .03em; padding: 20px 30px 16px; border-radius: 2px; }
  .btn:hover { background: var(--emerald-deep); }

  /* ---- home: the hero and the earring card ---- */
  .hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
                padding-top: 88px; padding-bottom: 112px; }
  .hero h1 { font: 300 clamp(44px, 6.4vw, 84px)/1.02 var(--head); letter-spacing: -.01em; margin: 0 0 28px; }
  .hero .lede { max-width: 30ch; font-size: 21px; color: var(--soft); margin: 0 0 36px; }
  .hero .cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
  .hero .cta .quiet { font: 400 16px/1 var(--head); color: var(--graphite); }
  .board { display: flex; justify-content: center; }
  .ecard { position: relative; width: min(340px, 78vw); aspect-ratio: 3 / 4.1; background: var(--card); border-radius: 10px;
           box-shadow: 0 2px 3px rgba(35,41,45,.08), 0 24px 44px -18px rgba(35,41,45,.38);
           transform: rotate(-2.2deg); padding: 32px 30px 26px; display: flex; flex-direction: column; margin: 0; }
  .ecard::before { content: ""; position: absolute; top: 13px; left: 50%; width: 30px; height: 9px; margin-left: -15px;
                   border-radius: 5px; background: var(--mist); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
  .ecard .slot { flex: 1; position: relative; margin-top: 8px; }
  .ecard .slot > svg, .ecard .slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .ecard figcaption { border-top: 1px solid var(--polish); padding-top: 14px; margin-top: 8px; }
  .ecard figcaption b { display: block; font: 600 17px/1.3 var(--head); letter-spacing: .02em; }
  .ecard figcaption span { font: 400 14px/1.4 var(--head); color: var(--soft); }
  @media (prefers-reduced-motion: no-preference) {
    .ecard { animation: pin .9s cubic-bezier(.2,.8,.2,1) both .15s; }
    @keyframes pin { from { transform: translateY(-14px) rotate(-6deg); opacity: 0; } to { transform: rotate(-2.2deg); opacity: 1; } }
  }

  /* ---- home: the sheet below, name on the left, details on the right ---- */
  .sheet { background: var(--card); border-top: 1px solid var(--polish); }
  .sheet .part { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 64px 0;
                 border-bottom: 1px solid var(--polish); scroll-margin-top: 12px; }
  .sheet .part:last-child { border-bottom: 0; }
  .sheet h2 { font: 400 26px/1.2 var(--head); margin: 4px 0 0; }
  .sheet h3 { font: 600 18px/1.3 var(--head); letter-spacing: .01em; margin: 0 0 6px; }
  .sheet p { margin: 0 0 10px; max-width: 62ch; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .facts > div { border-left: 2px solid var(--emerald); padding-left: 18px; }
  .facts p { margin: 0; }
  .aside { margin-top: 36px; padding-top: 20px; border-top: 1px dashed var(--polish); color: var(--soft); font-style: italic; }
  .sheet .lead { font: 400 20px/1.4 var(--head); margin: 0 0 22px; }
  ul.care { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
  ul.care li { break-inside: avoid; margin: 0 0 16px; padding-left: 18px; border-left: 1px solid var(--polish); }

  footer { padding: 34px 0 48px; color: var(--soft); font: 400 15px/1.5 var(--head); border-top: 1px solid var(--polish); }
  footer .row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
  footer .row .sp { margin-left: auto; display: flex; gap: 22px; }
  footer a { color: var(--soft); }

  @media (max-width: 860px) {
    header.top nav { gap: 18px; }
    header.top nav a { font-size: 15px; }
      .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 92px; gap: 56px; }
    .sheet .part { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
    .facts { grid-template-columns: 1fr; gap: 24px; }
    ul.care { columns: 1; }
    footer .row .sp { margin-left: 0; }
  }
  @media (max-width: 520px) {
    .wrap, header.top { padding: 0 16px; }
    body { font-size: 17px; }
    header.top .name { font-size: 16px; }
        .hero .lede { font-size: 19px; }
  }
  @media (max-width: 640px) { header.top .name { display: none; } header.top nav { gap: 14px; } }

  /* ---- news by email: the home page box ---- */
  .newsbox { display: grid; gap: 16px; max-width: 560px; }
  .newsbox .nbrow { display: flex; gap: 10px; flex-wrap: wrap; }
  .newsbox input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; color: var(--graphite);
    background: var(--field); border: 1px solid var(--polish); border-radius: 2px; padding: 13px 16px; }
  .newsbox button, .acct-page button { font: 600 16px/1 var(--head); letter-spacing: .03em; border: 0; border-radius: 2px;
    padding: 16px 24px 13px; cursor: pointer; background: var(--emerald); color: var(--on-emerald); }
  .newsbox button:hover, .acct-page button:hover { background: var(--emerald-deep); }
  .newsbox button[disabled], .acct-page button[disabled] { opacity: .6; cursor: default; }
  .newsbox .topics { display: flex; flex-wrap: wrap; gap: 10px; }
  .newsbox .topics .check { align-items: center; border: 1px solid var(--polish); border-radius: 2px; padding: 10px 14px 8px;
    background: var(--mist); font: 400 15px/1.2 var(--head); cursor: pointer; }
  .topics { display: grid; gap: 8px; }
  .topics .check, .newsbox .check { display: flex; gap: 10px; align-items: flex-start; color: var(--graphite); font-size: 16px; }
  input[type=checkbox] { accent-color: var(--emerald); }
  .newsbox .small, .acct-page .small { font-size: 14px; color: var(--soft); margin: 0; }
  .newsbox .msg, .acct-page .msg { border-radius: 2px; padding: 11px 14px; font-size: 15.5px; }
  .newsbox .msg.err, .acct-page .msg.err { background: var(--err-bg); color: var(--err); }
  .newsbox .msg.ok, .acct-page .msg.ok { background: var(--ok-bg); color: var(--ok); }

  /* ---- account, news and privacy pages ---- */
  .acct-page { max-width: 480px; margin: 56px auto 96px; }
  .acct-page h1 { font: 300 40px/1.1 var(--head); margin: 0 0 10px; }
  .acct-page .sub { color: var(--soft); margin: 0 0 26px; }
  .acct-page form, .acct-page .panel { background: var(--card); border: 1px solid var(--polish); border-radius: 4px;
                                        padding: 26px; display: grid; gap: 16px; }
  .acct-page fieldset { border: 1px solid var(--polish); border-radius: 2px; padding: 14px 16px; margin: 0;
                        display: grid; gap: 10px; min-width: 0; }
  .acct-page legend { font: 400 15px/1 var(--head); color: var(--soft); padding: 0 6px; }
  .acct-page label { display: grid; gap: 6px; font: 400 15px/1.3 var(--head); color: var(--soft); }
  .acct-page input[type=text], .acct-page input[type=email], .acct-page input[type=tel], .acct-page input[type=password] {
    font: inherit; font-size: 17px; color: var(--graphite); background: var(--field); border: 1px solid var(--polish);
    border-radius: 2px; padding: 11px 13px; width: 100%; min-width: 0; }
  .acct-page form > *, .acct-page .row2 > * { min-width: 0; }
  .acct-page .check { display: flex; gap: 10px; align-items: flex-start; color: var(--graphite); }
  .acct-page button.quiet { background: none; color: var(--emerald); padding: 4px 0; font-weight: 400; }
  .acct-page button.quiet:hover { background: none; text-decoration: underline; }
  .acct-page .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .acct-page .links { display: flex; justify-content: space-between; gap: 10px; font: 400 15px/1.4 var(--head); flex-wrap: wrap; }
  .acct-page .code { font: 600 24px/1 var(--head); letter-spacing: .3em; text-align: center; }
  .acct-page .switch { text-align: center; font: 400 15px/1.4 var(--head); }
  .prose h2 { font: 600 20px/1.3 var(--head); margin: 12px 0 0; }
  .prose p, .prose li { color: var(--graphite); line-height: 1.65; }
  .prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
  .notfound h1 { font: 300 clamp(40px, 6vw, 64px)/1.05 var(--head); margin: 0 0 18px; }

  /* ---- the pairs: the catalogue, each design on its own earring card (phase 2, 3 Oct) ---- */
  .ecard-link { display: block; color: inherit; text-decoration: none; border-radius: 10px; }
  .ecard-link:focus-visible { outline-offset: 8px; }
  .sheet .more { margin: 24px 0 0; font: 400 17px/1.4 var(--head); }
  .pairs-page { padding-top: 56px; padding-bottom: 96px; }
  .pairs-page h1 { font: 300 clamp(40px, 5.6vw, 64px)/1.05 var(--head); margin: 0 0 14px; }
  .pairs-page > .sub { color: var(--soft); max-width: 60ch; margin: 0 0 44px; }
  .pairs-page .aside { max-width: 62ch; margin-top: 56px; }
  .pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 36px; }
  .pair { display: grid; gap: 18px; align-content: start; scroll-margin-top: 24px; }
  .pair-card { position: relative; background: var(--card); border-radius: 8px; padding: 26px 18px 16px;
               box-shadow: 0 1px 2px rgba(35,41,45,.08), 0 12px 26px -16px rgba(35,41,45,.32); }
  .pair-card::before { content: ""; position: absolute; top: 10px; left: 50%; width: 24px; height: 7px; margin-left: -12px;
                       border-radius: 4px; background: var(--mist); box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
  .pair-slot { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; border-radius: 2px; }
  .pair-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pair-slot .nophoto { font: 400 14px/1.3 var(--head); color: var(--soft); }
  .pics { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
  .pics .pic { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .pics .pic::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--polish); }
  .pics .pic.on::after { background: var(--emerald); }
  .pair-words h2 { font: 400 21px/1.25 var(--head); margin: 0; }
  .pair-words .var { margin: 4px 0 0; color: var(--soft); font: 400 15px/1.4 var(--head); }
  .pair-words .txt { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
  .pair-words .meta { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 12px 0 0; font: 400 16px/1.3 var(--head); }
  .pair-words .meta .price { font-weight: 600; }
  .pair-words .meta .in { color: var(--emerald); }
  .pair-words .meta .out { color: var(--soft); }
  .pair-act { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
  .pair-act .btn { padding: 15px 20px 12px; font-size: 15px; }
  .save { display: inline-flex; align-items: center; gap: 7px; font: 400 15px/1 var(--head); color: var(--graphite);
          background: none; border: 1px solid var(--polish); border-radius: 2px; padding: 11px 14px 9px; cursor: pointer;
          text-decoration: none; }
  .save svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: -2px; }
  .save.on { color: var(--garnet); border-color: currentColor; }
  .save.on svg { fill: currentColor; }
  .save:hover { border-color: var(--graphite); }
  .save[disabled] { opacity: .6; }
  .acct-page .save, .acct-page button.save { background: none; color: var(--graphite); padding: 11px 14px 9px; font-weight: 400; }
  .acct-page button.save.on { color: var(--garnet); }
  .acct-page .saved:empty { display: none; }
  .acct-page .saved { margin: 0 0 28px; }
  .acct-page .saved > h2 { font: 400 22px/1.2 var(--head); margin: 0 0 16px; }
  .pairs-grid.small { grid-template-columns: 1fr; gap: 28px; }
  .pairs-grid.small .pair { grid-template-columns: 140px 1fr; align-items: start; gap: 18px; }
  .pairs-grid.small .pair-card { padding: 18px 10px 10px; }
  .pairs-grid.small .pair-card::before { top: 6px; width: 18px; height: 5px; margin-left: -9px; }
  .pairs-grid.small .txt { display: none; }
  .pairs-grid.small .pair-words h2 { font-size: 18px; }
  @media (max-width: 520px) { .pairs-page { padding-top: 36px; } .pairs-grid { gap: 40px; } }
