/* Karnata-GTN.css - Karnata-GTN single font page styles (depends on variables in /css/main.css) */

:root{
  --specimen-max-width: 980px;
}

/* Hero tweaks */
.hero{ padding:1.5rem 0 0.75rem; }
.hero-title{ color:var(--brand); font-size:2rem; }
.hero-actions{ margin-top:.75rem; display:flex; gap:.6rem; }

/* Big name rendered in Karnata-GTN */
.big-name{ margin-top:1rem; display:flex; flex-direction:column; gap:.6rem; align-items:flex-start; }
.name-display{
  font-family: "Karnata-GTN", ui-monospace, Menlo, monospace;
  font-variation-settings: '"wght" 400';
  font-size:7.5rem; /* large display */
  line-height:0.9;
  letter-spacing: -0.02em;
  color:var(--brand);
  margin:0;
}
.two-line-desc{ margin:0; color:var(--muted); font-size:1rem; }

/* Testing area */
.type-testing{ margin-top:1rem; }
.controls{ display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-bottom:.5rem; }
.controls label{ font-size:.95rem; color:var(--text); }
.controls select, .controls input[type="range"]{ font-family:var(--ui); }

/* Editable specimen area */
.testing-area{ margin-top:.5rem; display:flex; flex-direction:column; gap:.5rem; }
.specimen-editable{
  width:100%;
  max-width:var(--specimen-max-width);
  min-height:200px;
  padding:1rem;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.06);
  background:var(--typebox);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  outline: none;
  white-space:pre-wrap;
  overflow:auto;
  font-family: "Karnata-GTN", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size:48px;
  line-height:1.45;
  /* default variable axis */
  font-variation-settings: '"wght" 400';
}

/* make sure contenteditable shows caret clearly */
.specimen-editable:focus{ box-shadow: 0 0 0 4px rgba(175,28,46,0.06); border-color: rgba(175,28,46,0.12); }

/* small helper note */
.specimen-help{ font-size:.92rem; }

/* Usage list */
.tech ul{ margin:0.5rem 0 1.2rem 1.2rem; color:var(--muted) }

/* Responsive */
@media (max-width:720px){
  .name-display{ font-size:3rem; }
  .specimen-editable{ font-size:20px; }
}


#playWeight {
  padding: .35rem .6rem;
  font-size: .9rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
}

#playWeight.playing {
  color: var(--text);
}



/* Prevent layout shift for weight value */
#weightVal {
  display: inline-block;
  min-width: 3ch;        /* enough for 3 digits like 400–900 */
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* End of Karnata-GTN.css */

.font-credits {
  margin: 1.5rem 0;
}

.font-credits h2 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: var(--brand);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.25rem;
}

.credits-grid div {
  display: flex;
  gap: .5rem;
}

.credits-grid dt {
  min-width: 140px;
  font-weight: 600;
  color: var(--text);
}

.credits-grid dd {
  margin: 0;
  color: var(--muted);
}

.credits-grid a {
  color: var(--brand);
  text-decoration: none;
}

.credits-grid a:hover {
  text-decoration: underline;
}

/* full-width row */
.credits-wide {
  grid-column: 1 / -1;
}

/* mobile */
@media (max-width: 640px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
  .credits-grid dt {
    min-width: auto;
  }
}

.font-credits {
  margin: 0 0;
  max-width: 760px;
}

.font-credits h2 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.credits-inline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credits-inline li {
  display: grid;
  grid-template-columns: 200px 1fr; /* fixed label column */
  gap: .5rem;
  margin: .35rem 0;
  color: var(--muted);
  line-height: 1.5;
}


.credits-inline strong {
  color: var(--text);
  font-weight: 600;
}

.credits-inline a {
  color: var(--brand);
  text-decoration: none;
}

.credits-inline a:hover {
  text-decoration: underline;
}
