/* Render My Jewel */
:root {
  --ink: #17141f;
  --muted: #5b5667;
  --paper: #fbf8f3;
  --sand: #f2ece2;
  --line: #e4dbcd;
  --dark: #0e0c12;
  --gold: #e2c07c;
  --gold-deep: #7d5a14;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid #b8862b; outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(740px, 100% - 2.5rem); }
.center { text-align: center; }
.small { font-size: .9rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--gold); color: var(--dark); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* header and footer */
.site-header { background: var(--dark); border-bottom: 1px solid #27222f; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 600 1.2rem var(--serif); }
.mark { color: var(--gold); flex: none; }
nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a:not(.btn) { color: #d9d4e2; text-decoration: none; display: inline-block; padding-block: .4rem; }
.site-header nav a:not(.btn):hover, .site-header nav a[aria-current] { color: var(--gold); }
.site-footer { border-top: 1px solid #27222f; background: var(--dark); color: #b9b3c6; padding-block: 3rem 1.5rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot p { margin-top: .8rem; }
.site-footer nav a { color: #d9d4e2; display: inline-block; padding-block: .3rem; overflow-wrap: anywhere; }
.copy { margin-top: 2rem; margin-bottom: 0; padding-top: 1.2rem; border-top: 1px solid #27222f; font-size: .88rem; }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: var(--dark); border: 2px solid var(--gold); border-radius: 999px; padding: .75rem 1.6rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: #f0d598; border-color: #f0d598; }
.btn-small { padding: .35rem 1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: #5a5266; }
.btn-ghost:hover { background: transparent; border-color: var(--gold); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #35303f; border-color: #35303f; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--sand); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .actions, .center.actions { justify-content: center; }

/* hero */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero-grid { display: grid; align-items: center; gap: 1rem; padding-block: 2.5rem 1rem; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lead { color: #d3cedd; max-width: 34rem; }
.hero .small { color: #aaa3b8; }
.hero-img { width: 100%; max-width: 560px; margin-inline: auto; -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
.pill { display: inline-block; border: 1px solid #6e5a30; border-radius: 999px; padding: .2rem .9rem; color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: 1.2rem; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-block: 2rem; min-height: 600px; }
}

/* sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.alt { background: var(--sand); }
.eyebrow { color: var(--gold-deep); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.intro { color: var(--muted); max-width: 36rem; }
.grid { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.grid + .center { margin-top: 2.5rem; margin-bottom: 0; }
@media (min-width: 720px) {
  .two { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: repeat(3, 1fr); }
}
.feature { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; }
.feature p, .steps p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 50%; background: var(--dark); color: var(--gold); font: 600 1.2rem var(--serif); }

/* cards */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(23 20 31 / .12); }
.card:focus-within { outline: 3px solid #b8862b; outline-offset: 3px; }
.card img { width: 100%; }
.card-body { padding: 1.25rem 1.4rem 1.4rem; }
.card h2, .card h3 { font-size: 1.3rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card a:focus-visible { outline: none; }
.card-body > p:last-child { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }

/* questions */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: .75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; }
details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* call to action */
.cta { background: radial-gradient(ellipse at 50% 0, #2c2438, var(--dark) 70%); color: #fff; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta p { color: #d3cedd; }
.cta a:not(.btn) { color: var(--gold); }
.cta .small { margin: 0; }

/* articles */
.page-head { padding-block: 2.5rem 1.5rem; background: var(--sand); }
.page-head p:last-child { margin-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline: .5rem; }
.cover { margin: 2rem 0; }
.cover img { width: 100%; border-radius: var(--radius); }
.prose { padding-bottom: 3rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose .lead { font-family: var(--serif); font-size: 1.3rem; }
.prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 27rem; border-collapse: collapse; font-size: .95rem; text-align: left; }
th, td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
thead th { background: var(--dark); color: #fff; }
tbody tr:last-child > * { border-bottom: 0; }
.notfound { min-height: 50vh; }
.notfound .actions { justify-content: center; }

@media (max-width: 560px) {
  .wide { display: none; }
  .brand { font-size: 1.05rem; }
  nav ul { column-gap: 1rem; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}
