/* TyperGuide Styles */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: var(--bg, #fafafa);
color: var(--text, #212121);
line-height: 1.6;
transition: background 0.3s, color 0.3s;
}
.hdr {
position: sticky;
 top: 0;
 background: var(--card, #fff);
 border-bottom: 1px solid rgba(0,0,0,0.08);
 z-index: 100;
}
.hdr__wrap {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
max-width: 1200px;
margin: 0 auto;
}
.hdr__logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent, #d32f2f);
margin: 0;
text-decoration: none;
}
.hdr__nav {
display: flex;
gap: 1.5rem;
}
.hdr__link {
color: var(--muted, #616161);
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.hdr__link:hover {
color: var(--accent, #d32f2f);
}
.hdr__link--active {
color: var(--accent, #d32f2f);
}
.main {
padding: 1rem;
max-width: 1200px;
margin: 0 auto;
}
.hero {
background: var(--card, #fff);
border-radius: 12px;
padding: 2rem;
margin-bottom: 1.5rem;
shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero__title {
font-size: 2rem;
margin: 0 0 0.5rem;
}
.hero__subtitle {
color: var(--muted, #616161);
margin: 0 0 1.5rem;
}
.preset-select {
margin-bottom: 1rem;
}
.preset-select__label {
font-weight: 500;
margin-right: 0.5rem;
}
.preset-select__input {
padding: 0.5rem 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
background: #fff;
}
.text-input-group {
margin-bottom: 1rem;
}
.text-input {
width: 100%;
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
font-family: inherit;
resize: vertical;
}
.font-select-group {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.font-select__label {
font-weight: 500;
}
.font-select__input {
padding: 0.5rem 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
background: #fff;
}
.render-controls {
display: flex;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
background: var(--accent, #d32f2f);
color: #fff;
}
.btn--secondary {
background: #f5f5f5;
color: var(--text, #212121);
border: 1px solid #ddd;
}
.btn:hover { opacity: 0.9; }
.preview-section {
background: var(--card, #fff);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.preview-title {
font-size: 1.25rem;
margin: 0 0 1rem;
}
.render-output {
font-family: monospace;
font-size: 1.1rem;
line-height: 1.4;
background: #f8f8f8;
padding: 1.5rem;
border-radius: 6px;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
}
.font-gallery {
background: var(--card, #fff);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.gallery-title {
font-size: 1.25rem;
margin: 0 0 0.5rem;
}
gallery-intro {
color: var(--muted, #616161);
margin: 0 0 1rem;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.gallery-item h4 {
font-size: 1rem;
margin: 0 0 0.5rem;
color: var(--accent, #d32f2f);
}
.char-sample {
font-family: monospace;
font-size: 1.3rem;
padding: 0.75rem;
background: #f5f5f5;
border-radius: 6px;
letter-spacing: 0.1em;
margin-bottom: 0.5rem;
}
.char-sample--underwood { font-family: 'Courier New', monospace; letter-spacing: 0.12em; }
.char-sample--remington { font-family: 'Courier New', monospace; letter-spacing: 0.1em; }
.char-sample--selectric { font-family: 'Monaco', monospace; letter-spacing: 0.08em; }
.sample-desc {
font-size: 0.85rem;
color: var(--muted, #616161);
margin: 0;
}
.usage-notes {
background: var(--card, #fff);
border-radius: 8px;
padding: 1.5rem;
}
.notes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
}
.note-item h4 {
font-size: 1rem;
margin: 0 0 0.5rem;
color: var(--accent, #d32f2f);
}
.note-item p {
font-size: 0.9rem;
margin: 0;
}
.footer {
background: var(--card, #fff);
border-top: 1px solid rgba(0,0,0,0.08);
padding: 1rem 0;
margin-top: 2rem;
}
.footer__wrap {
text-align: center;
}
.footer__copy {
font-weight: 500;
margin: 0 0 0.5rem;
}
.footer__small {
font-size: 0.85rem;
color: var(--muted, #616161);
margin: 0;
}
@media (max-width: 768px) {
.hero {
padding: 1.5rem;
}
.hero__title {
font-size: 1.5rem;
}
.text-input {
font-size: 0.95rem;
}
.render-output {
font-size: 1rem;
}
}
@media (prefers-color-scheme: dark) {
body {
background: #121212;
color: #e0e0e0;
}
.hdr {
background: #1e1e1e;
border-bottom-color: rgba(255,255,255,0.1);
}
.btn--secondary {
background: #2d2d2d;
border-color: #444;
}
.render-output {
background: #1a1a1a;
}
.char-sample {
background: #2a2a2a;
}
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
