/* ===========================================================
   ES Transform — license page (license.html) styles
   =========================================================== */

html, body {
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  background: var(--paper);
  position: relative;
}

@media (max-width: 600px) {
  .container { padding: 2rem 1.25rem 4rem; }
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--line);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s;
}

@media (hover: hover) {
  .back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
  }
}

h1 {
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--line);
  margin-bottom: 2.5rem;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 56ch;
}

h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(58, 42, 31, 0.2);
}

h2:first-of-type { margin-top: 1rem; }

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

p.small {
  font-size: 0.9rem;
  color: var(--line);
  opacity: 0.85;
}

.citation {
  background: var(--paper-dark);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

.citation strong {
  font-weight: 500;
}

.citation a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

@media (hover: hover) {
  .citation a:hover { border-bottom-style: solid; }
  a.inline:hover { border-bottom-style: solid; }
}

pre.code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

a.inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(58, 42, 31, 0.2);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--line);
  opacity: 0.7;
}
