/* Pages of rezincore.com beyond the front page: product, solutions, developers, about, the blog and the preview home.
   Builds on the tokens and base rules in styles.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
main > section.tight { padding-top: 56px; }

/* ---- a page's opening: words on the left, a drawing on the right */
.opening { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; padding-top: 84px !important; padding-bottom: 20px; position: relative; }
.opening::before { content: ""; position: absolute; right: 4%; top: 0; width: 520px; height: 520px; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent 70%); }
.opening > * { position: relative; }
.opening h1 { margin: 0; max-width: 17ch; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.035em; }
.opening .lead { margin: 22px 0 0; max-width: 56ch; }
.opening .actions { justify-content: flex-start; margin-top: 30px; }
.opening.plain { grid-template-columns: 1fr; padding-bottom: 0; }
.opening.plain::before { display: none; }
.opening.centre { grid-template-columns: 1fr; text-align: center; }
.opening.centre h1, .opening.centre .lead { margin-left: auto; margin-right: auto; }
.opening.centre .actions { justify-content: center; }
.opening.centre::before { right: calc(50% - 260px); }
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; margin: 0 8px; opacity: 0.6; }

/* ---- drawings */
.art { width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.art .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.art .ring.soft { stroke-dasharray: 2 7; }
.art .ring.hot-ring { stroke: var(--blue); opacity: 0.45; }
.art .plate { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.art path.plate { stroke-linejoin: round; }
.art .bar { fill: var(--line); } .art .bar.head { fill: var(--blue); opacity: 0.85; }
.art .bar.pass { fill: var(--blue); opacity: 0.8; } .art .bar.held { fill: var(--line); opacity: 0.55; }
.art .hot, .art .key, .art .gate { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .gate { stroke-dasharray: 3 7; stroke-width: 2; }
.art .rule { stroke: var(--line); stroke-width: 1.5; }
.art .dot { fill: var(--blue); } .art .dot.dim { fill: var(--muted); opacity: 0.6; }
.art .core { fill: var(--blue); }
.art .pulse { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: art-pulse 4.5s ease-out infinite; }
.art .pulse.p2 { animation-delay: 1.5s; } .art .pulse.p3 { animation-delay: 3s; }
.art .seal { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 6; } .art .seal-dot { fill: var(--bg); stroke: var(--blue); stroke-width: 2; }
.art .fence { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 8; opacity: 0.7; animation: art-march 14s linear infinite; }
.art .hand-short { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.art .send { animation: art-send 3.2s ease-in-out infinite; }
.art .propose { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 6; }
.art .tick { stroke-dasharray: 44; stroke-dashoffset: 44; animation: art-draw 4s ease-in-out infinite; }
.art .blink { animation: art-blink 1.2s steps(2) infinite; }
.art .chip { fill: none; stroke: var(--line); stroke-width: 1.5; } .art .chip.on { fill: var(--blue); stroke: var(--blue); opacity: 0.85; }
.art .link { fill: var(--bg); stroke: var(--blue); stroke-width: 2; }
.art .spin { transform-box: view-box; transform-origin: center; animation: art-spin 38s linear infinite; }
.art .spin.slow { animation-duration: 64s; } .art .spin.back { animation-duration: 48s; animation-direction: reverse; } .art .spin.hand { animation-duration: 12s; transform-origin: 140px 160px; }
.art .slide { animation: art-slide 5s ease-in-out infinite; } .art .slide.b { animation-delay: 1.2s; }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-pulse { 0% { opacity: 0.7; transform: scale(0.5); } 100% { opacity: 0; transform: scale(4.4); } }
@keyframes art-march { to { stroke-dashoffset: -130; } }
@keyframes art-send { 0%, 100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(10px); opacity: 1; } }
@keyframes art-draw { 0%, 25% { stroke-dashoffset: 44; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes art-blink { 50% { opacity: 0; } }
@keyframes art-slide { 0%, 100% { opacity: 0; transform: translateX(-26px); } 30%, 80% { opacity: 0.85; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .art * { animation: none !important; } .art .tick { stroke-dashoffset: 0; } .art .pulse { opacity: 0.25; } .art .slide { opacity: 0.85; } }

/* ---- sections */
.pair { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.pair h2 { font-size: clamp(26px, 3.2vw, 36px); }
.pair > div > p { color: var(--muted); margin: 14px 0 0; max-width: 52ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.points b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.points span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.points.edge li { border-left: 2px solid var(--blue); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards a.card, .cards article { display: block; }
.cards a.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--text); transition: border-color 0.2s ease, transform 0.2s ease; }
.cards a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.cards a.card h3 { margin: 0 0 8px; } .cards a.card h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--blue); margin-bottom: 16px; }
.cards a.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.cards a.card .art { max-width: 150px; margin: 0 0 14px -8px; }
.cards a.card.with-art h3::before { display: none; }

/* ---- an example: a label, then code that can be copied */
.sample { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.sample-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); min-height: 46px; }
.sample-bar .name { font-size: 13px; color: var(--muted); margin-right: auto; }
.sample-bar button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.sample-bar button:hover { color: var(--text); }
.sample-bar button[aria-selected="true"] { background: var(--panel); border-color: var(--line); color: var(--text); }
.sample-bar .copy { border-color: var(--line); }
.sample pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); tab-size: 2; }
.sample pre + pre { border-top: 1px solid var(--line); }
.sample.tabbed.ready pre[hidden] { display: none; }
.sample .note { margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.sample code .c { color: var(--muted); }

/* ---- a plain table of limits or facts */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-weight: 500; width: 42%; } .spec td { color: var(--muted); }
.spec thead th { font-size: 13px; color: var(--muted); background: var(--bg2); }
.fine { margin: 14px 0 0; max-width: 90ch; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.next-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.next-links a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.next-links a:hover { border-color: var(--blue); }
.honest.wide { max-width: none; }
.closing { text-align: center; padding-bottom: 8px; }
.closing .sub { margin-left: auto; margin-right: auto; }

/* ---- a long list, as on "Everything in Rezin Core" and the developers page */
.listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 30px; }
.listing a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.listing a b { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.listing a span { grid-column: 1; color: var(--muted); font-size: 15px; }
.listing a i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.listing a:hover i { transform: translateX(4px); color: var(--blue-text); }

/* ---- reading pages: about, security, changelog, a blog post */
.reading { max-width: 760px; margin: 0 auto; padding: 72px 20px 0 !important; }
.reading h1 { margin: 0; max-width: none; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.reading .lead { margin: 18px 0 0; max-width: none; }
.reading h2 { margin: 46px 0 0; font-size: 25px; letter-spacing: -0.02em; }
.reading h3 { margin: 30px 0 0; font-size: 18px; }
.reading h2 a.anchor, .reading h3 a.anchor { color: inherit; text-decoration: none; }
.reading p, .reading li { color: var(--text); font-size: 17px; line-height: 1.7; }
.reading p { margin: 16px 0 0; } .reading ul, .reading ol { margin: 14px 0 0; padding-left: 24px; } .reading li { margin: 6px 0; }
.reading .muted, .reading .meta { color: var(--muted); font-size: 15px; }
.reading pre { margin: 20px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow-x: auto; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; position: relative; }
.reading code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.reading pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.reading pre .copy { position: absolute; top: 8px; right: 8px; font: 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); cursor: pointer; }
.reading pre .copy:hover { color: var(--text); }
.reading blockquote, .reading .callout { display: block; margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 12px; background: var(--panel); }
.reading .callout p:first-child, .reading blockquote p:first-child { margin-top: 0; }
.reading .callout p { max-width: none; color: var(--text); font-size: 16px; }
.reading .table { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; }
.reading table { width: 100%; border-collapse: collapse; font-size: 15px; } .reading th, .reading td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.reading tr:last-child td { border-bottom: 0; } .reading th { background: var(--bg2); font-weight: 600; font-size: 13.5px; }
.reading hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }
.reading img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---- the blog */
.posts { display: grid; gap: 14px; margin-top: 34px; }
.posts.three { grid-template-columns: repeat(3, 1fr); }
.post-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--text); transition: border-color 0.2s ease; }
.post-card:hover { border-color: var(--blue); }
.post-card .when { font-size: 13px; color: var(--muted); }
.post-card h2, .post-card h3 { margin: 10px 0 8px; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-card[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; text-decoration: none; }
a.tag:hover, .tag[aria-current] { border-color: var(--blue); color: var(--text); }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.blog-tools input { flex: 1 1 240px; max-width: 360px; font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.blog-tools .tags { margin-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 50px; }
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-decoration: none; color: var(--text); font-weight: 600; }
.pager a span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 4px; }
.pager a.next { text-align: right; } .pager a:hover { border-color: var(--blue); }
.empty { margin-top: 26px; color: var(--muted); }

/* ---- the console, shown as it is */
.showcase { margin-top: 38px; }
.show-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.show-tabs button { font: inherit; font-size: 15px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.show-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--blue); }
.show-frame { margin: 22px auto 0; max-width: 1120px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 50px 110px -50px var(--glow); }
.show-frame figure { margin: 0; } .show-frame img { display: block; width: 100%; height: auto; }
.show-frame figcaption { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: left; }
.showcase.ready figure[hidden] { display: none; }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.price-row a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--text); }
.price-row a:hover { border-color: var(--blue); }
.price-row b { display: block; font-size: 15px; font-weight: 600; } .price-row strong { display: block; margin-top: 10px; font-size: 34px; letter-spacing: -0.03em; font-weight: 650; line-height: 1; }
.price-row span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.preview-note { position: sticky; top: 62px; z-index: 30; margin: 0; padding: 8px 20px; text-align: center; font-size: 13.5px; background: var(--blue); color: var(--on-blue); }

@media (max-width: 980px) {
  .opening, .pair { grid-template-columns: 1fr; gap: 32px; }
  .opening .art { max-width: 260px; order: -1; margin: 0; }
  .opening.centre .art { margin: 0 auto; }
  .listing, .posts.three, .cards.two { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .opening { padding-top: 48px !important; }
  .opening .art { max-width: 190px; }
  .reading { padding-top: 44px !important; } .reading p, .reading li { font-size: 16px; }
  .spec th, .spec td { padding: 11px 14px; } .spec th { width: 46%; }
  .pager, .price-row { grid-template-columns: 1fr; }
  .preview-note { top: 56px; }
}

/* ---- the brand page */
.brand-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.brand-tiles figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.brand-tiles figure img { width: 100%; height: 150px; object-fit: contain; padding: 34px; border-radius: 0; }
.brand-tiles .on-dark img { background: #08090b; } .brand-tiles .on-light img { background: #f4f5f7; }
.brand-tiles .small img { padding: 30px; }
.brand-tiles figcaption { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; background: var(--panel); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.swatches div { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); padding-bottom: 12px; }
.swatches .sw { display: block; height: 64px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.swatches b, .swatches span { display: block; padding: 0 12px; font-size: 13.5px; } .swatches span { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.sw-obsidian { background: #08090b; } .sw-gunmetal { background: #30363e; } .sw-titanium { background: #727e8c; } .sw-blue { background: #009de0; } .sw-silver { background: #e5e7eb; }
.reading .listing { grid-template-columns: 1fr; margin-top: 26px; }
@media (max-width: 640px) { .brand-tiles { grid-template-columns: 1fr; } .swatches { grid-template-columns: repeat(2, 1fr); } }

/* ---- the home page */
.home-hero { padding-bottom: 24px; }
.home-hero h1 { max-width: 16ch; }
.hero-state { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.hero-state a { color: inherit; }
.home-hero .showcase { margin-top: 56px; }
.fine.centre { text-align: center; margin-left: auto; margin-right: auto; }
.cards.parts { grid-template-columns: repeat(4, 1fr); }
.cards.parts a.card.all { display: flex; flex-direction: column; justify-content: flex-end; border-style: dashed; }
@media (max-width: 980px) { .cards.parts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.parts { grid-template-columns: 1fr; } .show-tabs button { font-size: 14px; padding: 8px 14px; } .show-frame figcaption { font-size: 14px; } }
/* The report form. */
.report { display: grid; gap: 8px; max-width: 640px; margin: 22px 0; }
.report label { font-size: 14px; color: var(--muted); margin-top: 10px; }
.report input, .report select, .report textarea { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; width: 100%; box-sizing: border-box; }
.report textarea { resize: vertical; min-height: 120px; }
.report button { justify-self: start; margin-top: 14px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue); color: var(--on-blue); font: inherit; font-weight: 600; cursor: pointer; }
.report input:focus-visible, .report select:focus-visible, .report textarea:focus-visible, .report button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
