/* Import built Yeomil Mono webfont css dynamically */
@import "fonts/webfont/yeomilmono.css";

/* Design System: Technical Monospace Light Blueprint */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-border: #e0e0e0;
  --color-border-dark: #111111;
  --color-text: #111111;
  --color-text-muted: #666666;
  --color-text-light: #888888;
  
  --font-mono: 'Yeomil Mono', 'Geist Mono', monospace;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  /* Monospace Grid Lines */
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Grid System (No Round Corners, Sharp Lines) */
.grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
}

.col {
  padding: 2rem 1rem;
}

.col-12 { width: 100%; }
.col-9  { width: 75%; }
.col-8  { width: 66.666%; }
.col-6  { width: 50%; }
.col-4  { width: 33.333%; }
.col-3  { width: 25%; }

@media (max-width: 900px) {
  .col {
    width: 100% !important;
    padding: 1.5rem 0.5rem;
  }
}

.text-right { text-align: right; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border-dark);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol {
  font-weight: 700;
  font-size: 1.25rem;
}

.font-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.version-tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.1rem 0.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.github-icon svg {
  vertical-align: middle;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.github-icon:hover svg {
  color: var(--color-text);
}

/* Hero Title Section */
.hero-title-section {
  background-color: var(--color-bg-alt);
}

.header-row {
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.main-title-row {
  border-bottom: 1px solid var(--color-border-dark);
  padding: 4rem 0;
}

.giant-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.desc-row {
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-desc {
  color: var(--color-text-muted);
}

.data-panel {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

/* Specifications / Metric Visuals */
.label-row {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-dark);
}

.graphic-display {
  border-right: 1px solid var(--color-border);
}

.metric-canvas {
  height: 300px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-line {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: flex-end;
}

.metric-line span {
  font-size: 0.7rem;
  color: var(--color-text-light);
  background-color: var(--color-bg-alt);
  padding: 0.15rem 0.5rem;
  margin-top: -0.6rem;
}

.ascender-line { top: 25%; }
.xheight-line { top: 45%; }
.baseline-line { top: 75%; border-bottom: 1px solid var(--color-text-light); }
.descender-line { top: 87%; }

.glyph-preview {
  display: flex;
  gap: 3rem;
  z-index: 5;
}

.glyph-preview .char {
  font-size: 7rem;
  line-height: 1;
}

.spec-table-col {
  display: flex;
  align-items: center;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th, .spec-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.spec-table td {
  font-size: 0.95rem;
}

/* Weight Spectrum Section */
.weight-row {
  transition: background-color 0.15s ease;
  align-items: center;
}

.weight-row:hover {
  background-color: var(--color-bg-alt);
}

.weight-name {
  font-weight: 700;
  border-right: 1px solid var(--color-border);
}

.weight-preview {
  font-size: clamp(1rem, 2vw, 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-bold { font-weight: 700; }

/* Interactive Playground */
.playground-box {
  border: 1px solid var(--color-border-dark);
}

.playground-toolbar {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-dark);
  padding: 1.25rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.tool {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.t-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Range input styling (Custom Square Box) */
input[type="range"] {
  accent-color: var(--color-black);
  height: 2px;
  background-color: var(--color-border);
  outline: none;
  cursor: pointer;
}

.t-val {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.toggle-tool {
  margin-left: auto;
}

/* Checklist / Grid Box */
.grid-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.grid-checkbox-label input {
  display: none;
}

.box-check {
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-border-dark);
  position: relative;
  display: inline-block;
}

.grid-checkbox-label input:checked + .box-check::after {
  content: 'x';
  position: absolute;
  top: -4px;
  left: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-black);
}

.editor-area {
  position: relative;
  min-height: 350px;
}

#font-playground {
  width: 100%;
  min-height: 350px;
  background-color: transparent;
  border: none;
  color: var(--color-text);
  padding: 2.5rem;
  resize: vertical;
  outline: none;
  font-size: 16px;
  line-height: 1.6;
  font-family: var(--font-mono);
  position: relative;
  z-index: 5;
}

.grid-overlay {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  bottom: 2.5rem;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
  background-size: calc(2ch) 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Distribution / Installation Spec Row */
.install-row {
  align-items: center;
}

.install-meta {
  border-right: 1px solid var(--color-border);
}

.spec-num {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.5rem;
}

.install-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.install-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.terminal-cmd-box {
  display: flex;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.cmd-text {
  flex-grow: 1;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.85rem;
}

.copy-btn {
  background-color: var(--color-black);
  color: var(--color-white);
  border: none;
  border-left: 1px solid var(--color-border-dark);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.copy-btn:hover {
  opacity: 0.85;
}

.copy-btn.copied {
  background-color: var(--color-border);
  color: var(--color-text);
}

/* Technical Footer */
.site-footer {
  background-color: var(--color-bg-alt);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-row {
  border-bottom: none;
  padding: 3rem 0;
}

.footer-links a {
  margin-left: 1.5rem;
}

.footer-links a:hover {
  color: var(--color-text);
}
