/* Template Commons — shared premium mint system with /showcase */

:root {
  --paper: #ebf6f7;
  --mist: #dceef1;
  --surface: #ffffff;
  --ink: #1c2426;
  --muted: #5f6d70;
  --line: #cfe3e7;
  --line-strong: #a9cdd4;
  --accent: #e06b88;
  --accent-deep: #c94f6d;
  --accent-soft: #fde8ee;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, #ffffff 0%, transparent 36%),
    radial-gradient(circle at 90% 8%, #dff4f1 0%, transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }

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

code, pre { font-family: var(--mono); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0.75rem;
}
.skip:focus { left: var(--gutter); top: 0.75rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, white); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.mark__glyph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 1rem;
  height: 1rem;
}
.mark__glyph i {
  display: block;
  border-radius: 2px;
  background: var(--ink);
}
.mark__glyph i:nth-child(1) { background: var(--accent); }
.mark__glyph i:nth-child(3) { background: #6db8b4; grid-column: 1 / -1; height: 4px; }

.top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.top__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.top__nav a:hover { color: var(--ink); }
.top__nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero__eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.hero__foot {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: end;
  margin-top: 1.75rem;
  max-width: 52rem;
}
.hero__lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__stat {
  justify-self: end;
  text-align: right;
}
.hero__stat dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__stat dd {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}
.button--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.button--ghost:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.02em;
}
.section-head__n {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 18px 40px -30px rgba(28, 36, 38, 0.35);
}

.empty__say h3 {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.empty__say p {
  margin-top: 0.75rem;
  max-width: 38rem;
  color: var(--muted);
}
.empty__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 36px -28px rgba(28, 36, 38, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(201, 79, 109, 0.35);
}
.card__shot {
  aspect-ratio: 16 / 10;
  background: var(--mist);
  overflow: hidden;
}
.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__shot img { transform: scale(1.04); }
.card__shot--placeheld {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #e7f3f5, #fde8ee);
}
.card__shot--placeheld img { width: 42%; height: auto; opacity: 0.55; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
}
.card__title {
  position: relative;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.card__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.card__author {
  position: relative;
  z-index: 2;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}
.card__author:hover { color: var(--ink); }
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.card__tag {
  border-radius: 999px;
  background: var(--mist);
  padding: 0.15rem 0.55rem;
  color: var(--muted);
}

/* Add section */
.add {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.add__lede {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1.15rem 1.2rem 1.3rem;
}
.step__n {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}
.step p { color: var(--muted); font-size: 0.92rem; }

.snippet {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #173033;
  color: #e7f3f5;
  overflow: hidden;
}
.snippet figcaption {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #9bb8bc;
}
.snippet pre {
  padding: 1rem 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}
.foot__in {
  display: grid;
  gap: 0.75rem;
}
.foot__mark {
  font-family: var(--display);
  font-size: 1.1rem;
}
.foot__note { color: var(--muted); font-size: 0.92rem; max-width: 36rem; }
.foot__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.foot__links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__stat { justify-self: start; text-align: left; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .top__nav { gap: 0.85rem; }
  .top__nav a { font-size: 0.85rem; }
}
