/* Home page (#298 R2): the engraved name, the address plate, the temporal gear gauge, the Guild's ledger page */
.home main { padding-block: 0; }
.opening { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: center; padding: 4rem 0 3rem; }
.opening h1 { font-size: clamp(2.9rem, 7vw, 5.2rem); line-height: 0.95; margin: 0 0 1.5rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 235, 200, 0.08); }
.opening p { max-width: 34rem; }
.opening p.quiet { color: var(--text-muted); }

.plate { position: relative; background: linear-gradient(180deg, #29302e, var(--surface)); border: var(--border-subtle); border-radius: 2px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-warm); }
.plate::before, .plate::after { content: ""; position: absolute; top: 0.45rem; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b706c, #2b302e 70%); }
.plate::before { left: 0.45rem; } .plate::after { right: 0.45rem; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; max-width: 34rem; }
.address .label { color: var(--text-muted); font-size: 0.95rem; width: 100%; }
.address code { font: 600 1.15rem/1.2 var(--font-body); color: var(--text); }
button.copy { font: 600 1rem/1 var(--font-body); background: transparent; color: var(--text); border: 1px solid var(--accent);
  border-radius: 2px; padding: 0.65rem 1rem; cursor: pointer; }
button.copy:hover { border-color: var(--ok); color: var(--ok); }
.after { margin-top: 1.25rem; color: var(--text-muted); max-width: 34rem; }

.gauge { margin: 0; justify-self: center; width: min(100%, 26rem); }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge .tooth { fill: #3a423f; stroke: #222826; stroke-width: 1; transition: fill 0.4s ease; }
.gauge .tooth.lit { fill: var(--ok); filter: drop-shadow(0 0 6px rgba(52, 229, 179, 0.55)); }
.gauge .wheel-body { fill: url(#iron); stroke: #4a524e; stroke-width: 2; }
.gauge .hub { fill: #1c2120; stroke: var(--rust); stroke-width: 3; }
.gauge .count { font: 700 64px Almendra, serif; fill: var(--text); }
.gauge .of { font: italic 400 19px Lora, serif; fill: var(--text-muted); }
.gauge figcaption { text-align: center; color: var(--text-muted); margin-top: 0.75rem; }
.gauge figcaption strong { color: var(--ok); font-weight: 600; }
.gauge.offline figcaption strong { color: var(--danger); }

.section { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; padding: 3.25rem 0; border-top: var(--border-subtle); }
.section h2 { font-size: 1.9rem; margin: 0.1rem 0 0; }
.section .body { max-width: 62ch; }
.aside { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--rust); color: var(--text-muted); font-style: italic; max-width: 46ch; }

.ledger { --ink: #2a1f14; --rubric: #7a3a22; --faded: #5c4a33;
  background:
    repeating-linear-gradient(180deg, transparent 0 1.9rem, rgba(42, 31, 20, 0.13) 1.9rem calc(1.9rem + 1px)),
    linear-gradient(90deg, transparent 2.6rem, rgba(122, 58, 34, 0.45) 2.6rem calc(2.6rem + 1px), transparent calc(2.6rem + 1px)),
    #d9ccab;
  color: var(--ink); padding: 1.6rem 1.6rem 1.4rem 3.4rem; transform: rotate(-0.6deg); max-width: 40rem; margin-top: 1.5rem;
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.45); line-height: 1.9rem;
  clip-path: polygon(0 1%, 3% 0, 30% 0.6%, 55% 0, 78% 0.8%, 100% 0, 99.4% 40%, 100% 72%, 99.2% 100%, 70% 99.3%, 41% 100%, 12% 99.2%, 0 100%, 0.6% 60%); }
.ledger h3 { font-size: 1.3rem; line-height: 1.9rem; color: var(--rubric); margin: 0; }
.ledger p { margin: 0; }
.ledger .sign { font-style: italic; color: var(--faded); margin-top: 1.9rem; }
.ledger .seal { float: right; width: 3.4rem; height: 3.4rem; margin: -0.3rem -0.4rem 0.4rem 1rem; }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--plate-edge); }
.entries .when { color: var(--accent); font-style: italic; }
.soon { padding-left: 1.1rem; margin: 0; }
.soon li { padding: 0.25rem 0; }
.soon li::marker { color: var(--rust); }

@media (max-width: 760px) {
  .opening { grid-template-columns: 1fr; padding-top: 2rem; }
  .gauge { order: -1; width: min(78%, 18rem); }
  .section { grid-template-columns: 1fr; gap: 0.75rem; padding: 2.25rem 0; }
  .ledger { transform: none; padding-left: 2.6rem; background:
    repeating-linear-gradient(180deg, transparent 0 1.9rem, rgba(42, 31, 20, 0.13) 1.9rem calc(1.9rem + 1px)),
    linear-gradient(90deg, transparent 1.8rem, rgba(122, 58, 34, 0.45) 1.8rem calc(1.8rem + 1px), transparent calc(1.8rem + 1px)), #d9ccab; }
  .entries li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .gauge .wheel { transform-origin: 200px 200px; animation: turn 240s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
}
