/* IDYL — brand.html page layer. Builds on idyl.css + home.css (site chrome). */

/* ---------- Hero ---------- */
.br-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.br-copy { min-width: 0; }
.br-title { margin: 28px 0 0; font-size: clamp(52px, 6.6vw, 100px); line-height: .92; letter-spacing: -0.035em; text-wrap: balance; }
.br-lede { margin-top: 28px; max-width: 46ch; }
.br-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.br-note { margin-top: 16px; font-size: 13px; color: var(--mute); }

.construct { margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.construct svg { width: 100%; height: auto; overflow: visible; }
.c-grid path { stroke: var(--line); stroke-width: .12; fill: none; }
.c-clear { fill: rgba(242, 184, 91, .03); stroke: rgba(242, 184, 91, .5); stroke-width: .16; stroke-dasharray: .7 .7; }
.c-bbox { fill: none; stroke: var(--mute); stroke-width: .12; stroke-dasharray: .5 .5; }
.c-guide { fill: none; stroke: var(--line-strong); stroke-width: .14; }
.c-ray { fill: none; stroke: var(--mute); stroke-width: .12; }
.c-arc { fill: none; stroke: var(--gold-deep); stroke-width: .16; }
.c-center { fill: var(--mute); }
.c-ring { fill: none; stroke: var(--bone); stroke-width: 5; stroke-linecap: round; }
.c-sun { fill: var(--gold); }
.c-lab text { font-family: var(--font-mono); font-size: 2.05px; letter-spacing: .04px; fill: var(--mute); }
.construct figcaption { margin-top: 18px; font-size: 13px; color: var(--mute); text-align: right; }

@media (max-width: 960px) {
  .br-hero-in { grid-template-columns: 1fr; gap: 48px; }
  .construct { justify-self: start; max-width: 440px; }
  .construct figcaption { text-align: left; }
}

.serif-inline { font-family: var(--font-display); font-size: 1.18em; color: var(--bone); }

/* ---------- 01 Logo ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.logo-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--ink-900); }
.lt-view { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 24px; }
.lt-view.on-ink { background: var(--ink-950); }
.lt-view.on-bone { background: var(--bone); }
.lt-view.on-gold { background: var(--gold); }
.lt-mark { width: 34%; max-width: 104px; height: auto; }
.lt-lockup { width: 64%; max-width: 210px; height: auto; }
.lt-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--bone); }
.lt-stack svg { width: 72px; height: 72px; }
.lt-stack span { font-family: var(--font-display); font-size: 46px; line-height: 1; letter-spacing: -0.01em; }
.lt-meta { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 18px; border-top: 1px solid var(--line); }
.lt-meta h3 { margin: 0; font: 600 15.5px/1.3 var(--font-ui); }
.lt-meta p { margin-top: 6px; font-size: 13.5px; color: var(--bone-2); }
.lt-files { margin-top: auto !important; padding-top: 14px; display: flex; gap: 8px; }
.lt-files a {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--bone-2); transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lt-files a:hover { color: var(--bone); border-color: var(--bone-2); }

.logo-rules { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; font-weight: 500; color: var(--bone); }
.specs dd { margin: 0; font-size: 14px; color: var(--bone-2); }
.donts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.donts li { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-900); }
.donts svg { width: 64px; height: 64px; margin: 4px auto 12px; opacity: .9; }
.donts p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bone-2); }
.donts p::before { content: ""; width: 10px; height: 10px; flex: none; background: linear-gradient(45deg, transparent 44%, var(--ember) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ember) 44% 56%, transparent 56%); }

@media (max-width: 1100px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-rules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logos { grid-template-columns: 1fr; gap: 14px; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 02 Color ---------- */
.ratio { margin: 0 0 40px; }
.ratio-bar { display: flex; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); }
.ratio-bar i { width: var(--w); }
.r-ink { position: relative; }
.r-ink::after { content: "ink"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 400 11.5px/1 var(--font-mono); color: var(--mute); }
.r-ink { background: var(--ink-950); }
.r-bone { background: linear-gradient(90deg, var(--bone) 0 50%, var(--bone-2) 50% 75%, var(--mute) 75%); }
.r-gold { background: var(--gold); }
.ratio-cap { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13.5px; color: var(--bone-2); }
.ratio-cap b { font: 500 13px var(--font-mono); color: var(--bone); margin-right: 4px; }

.sw-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sw-big {
  appearance: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-content: start;
  padding: 0 0 18px; text-align: left; cursor: pointer; color: inherit; font: inherit;
  background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.sw-big:hover { border-color: var(--line-strong); }
.sw-fill { grid-column: 1 / -1; height: 148px; margin-bottom: 14px; background: var(--c); border-bottom: 1px solid var(--line); }
.sw-name { padding-left: 18px; font-size: 15px; font-weight: 600; color: var(--bone); }
.sw-hex { padding-right: 18px; font-size: 13px; color: var(--bone-2); }
.sw-role { grid-column: 1 / -1; padding: 0 18px; font-size: 13.5px; color: var(--bone-2); line-height: 1.5; }

.sw-groups { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sw-h { margin: 0 0 12px; font: 500 14px/1.3 var(--font-ui); color: var(--bone-2); }
.sw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sw-list li { border-bottom: 1px solid var(--line); }
.sw-list button {
  appearance: none; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px;
  padding: 11px 4px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 6px;
  transition: background .2s var(--ease);
}
.sw-list button:hover { background: var(--ink-900); }
.sw-dot { grid-row: 1 / span 2; align-self: center; width: 28px; height: 28px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(243, 238, 228, .12); }
.sw-n { font-size: 14px; font-weight: 500; color: var(--bone); }
.sw-list .mono { font-size: 12px; color: var(--bone-2); align-self: center; }
.sw-r { grid-column: 2 / -1; font-size: 12.5px; color: var(--mute); }
.sw-toast { min-height: 1.5em; margin-top: 18px; font: 500 12px/1.5 var(--font-mono); color: var(--meadow); }

@media (max-width: 960px) {
  .sw-primary { grid-template-columns: 1fr; }
  .sw-fill { height: 96px; }
  .sw-groups { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 03 Type ---------- */
.specimens { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.spec { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.spec-head h3 { margin: 0 0 8px; font: 600 17px/1.3 var(--font-ui); }
.spec-head p { font-size: 14px; color: var(--bone-2); margin-bottom: 10px; }
.spec-head a { font-size: 13px; }
.spec-sample { grid-column: 2; min-width: 0; }
.spec-display { font-family: var(--font-display); font-size: clamp(48px, 6vw, 92px); line-height: .95; letter-spacing: -0.03em; }
.spec-display-sm { margin-top: 18px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.015em; color: var(--bone-2); }
.spec-display-sm em { color: var(--gold-2); }
.spec-body { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; color: var(--bone); max-width: 32ch; }
.spec-weights { grid-column: 2; list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 18px; color: var(--bone-2); }
.spec-code { font-family: var(--font-mono); font-size: clamp(15px, 1.6vw, 20px); line-height: 1.7; color: var(--bone); font-variant-numeric: tabular-nums; }
.spec-sans .spec-head, .spec-mono .spec-head, .spec-serif .spec-head { grid-row: span 2; }
@media (max-width: 860px) {
  .spec { grid-template-columns: 1fr; }
  .spec-sample, .spec-weights { grid-column: 1; }
  .spec-head { grid-row: auto !important; }
}

/* ---------- 04 Voice ---------- */
.lines { margin: 0 0 56px; border-top: 1px solid var(--line-strong); }
.lines > div { display: grid; grid-template-columns: 140px minmax(0, 1fr) 220px; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lines dt { font-size: 13.5px; color: var(--mute); }
.lines dd { margin: 0; }
.ln-serif { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.015em; color: var(--bone); }
.ln-italic { font-style: italic; color: var(--gold-2); }
.ln-where { font-size: 13px; color: var(--bone-2); text-align: right; }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dd-col { padding: 26px 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--ink-900); }
.dd-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 16px/1.3 var(--font-ui); }
.dd-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.dd-do h3::before { background: var(--meadow); }
.dd-dont h3::before { background: var(--ember); }
.dd-col ul { list-style: none; margin: 0; padding: 0; }
.dd-col li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--bone); }
.dd-dont li { color: var(--bone-2); text-decoration: line-through; text-decoration-color: rgba(255, 122, 92, .45); text-decoration-thickness: 1px; }
@media (max-width: 860px) {
  .lines > div { grid-template-columns: 1fr; gap: 6px; }
  .ln-where { text-align: left; }
  .dodont { grid-template-columns: 1fr; }
  .dd-col { padding: 22px 20px; border-radius: var(--r-lg); }
}

/* ---------- 05 Products ---------- */
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.family li { min-width: 0; padding: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--ink-900); }
.fam-view { display: grid; place-items: center; height: 168px; padding: 24px; margin-bottom: 20px; background: var(--ink-950); border-bottom: 1px solid var(--line); }
.fam-view img { height: 64px; width: auto; max-width: 100%; }
.fam-fb { display: none; align-items: center; gap: 12px; color: var(--bone); }
.fam-view.is-fallback .fam-fb { display: inline-flex; }
.fam-fb svg { width: 44px; height: 44px; }
.fam-fb b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.01em; transform: translateY(-3px); }
.fam-fb i { width: 1px; height: 30px; background: rgba(243, 238, 228, .28); }
.fam-fb em { font: 500 13px/1 var(--font-mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-2); }
.family h3 { margin: 0 22px 6px; font: 600 16px/1.3 var(--font-ui); }
.family p { margin: 0 22px; font-size: 14px; color: var(--bone-2); }
@media (max-width: 760px) {
  .family { grid-template-columns: 1fr; }
  .fam-fb b { font-size: 32px; }
  .fam-fb svg { width: 36px; height: 36px; }
}

/* ---------- 06 Assets ---------- */
.og-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.og-grid .og-main { grid-column: span 2; grid-row: span 2; }
.og-grid figure { margin: 0; }
.og-view { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-900); }
.og-view img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.og-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font: 400 11.5px/1 var(--font-mono); color: var(--mute);
  background: radial-gradient(60% 90% at 70% 110%, rgba(242, 184, 91, .07), rgba(242, 184, 91, 0) 70%), var(--ink-900);
}
.og-ph::before {
  content: ""; width: 22px; height: 22px; opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M42 16.68 A20 20 0 1 1 22 16.68' stroke='%23F3EEE4' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='13' r='5' fill='%23F2B85B'/%3E%3C/svg%3E");
}
.og-main .og-ph::before { width: 40px; height: 40px; }
.og-grid figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--bone-2); }
.og-grid figcaption .mono { font-size: 12px; color: var(--mute); }

.kit-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 48px; align-items: start; }
.appicon { margin: 0; }
.appicon-view { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--ink-950); overflow: hidden; }
.appicon-view img { position: absolute; inset: 12%; z-index: 1; width: 76%; height: 76%; object-fit: contain; }
.appicon-view svg { width: 42%; height: auto; }
.appicon figcaption { margin-top: 14px; font-size: 13.5px; color: var(--bone-2); }
.appicon figcaption b { display: block; margin-bottom: 4px; color: var(--bone); font-weight: 600; }
.social .h3 { margin-bottom: 14px; }
.social-list { margin: 0 0 24px; }
.social-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.social-list dt { font-size: 14px; font-weight: 500; color: var(--bone); }
.social-list dd { margin: 0; font-size: 14px; color: var(--bone-2); }
@media (max-width: 960px) {
  .og-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-grid .og-main { grid-row: auto; }
  .kit-grid { grid-template-columns: 1fr; }
  .appicon { max-width: 280px; }
}
@media (max-width: 560px) {
  .og-grid { grid-template-columns: 1fr; }
  .social-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 07 Usage ---------- */
.usage { max-width: 68ch; display: grid; gap: 16px; }
.usage p:not(.disclaimer) { font-size: 16px; color: var(--bone-2); }
