/* ============================================================
   LinkTiles — Shared Design System
   site.css — linked from all pages
   ============================================================ */

/* ------------------------------------------------------------
   Custom Properties
   ------------------------------------------------------------ */
:root {
  /* warm paper palette */
  --paper:        #FCFBF7;
  --paper-2:      #F4F2EA;
  --paper-edge:   #ECE9DD;
  --ink:          #1A1830;
  --ink-2:        #3D3A52;
  --ink-muted:    #7A7689;
  --hairline:     rgba(26, 24, 48, 0.10);
  --hairline-soft:rgba(26, 24, 48, 0.06);

  /* brand */
  --blue:         #1a73e8;
  --blue-dark:    #1557b0;
  --blue-tint:    rgba(26, 115, 232, 0.08);

  /* legacy aliases (used by some pages) */
  --brand:        #1a73e8;
  --brand-dark:   #1557b0;
  --brand-text:   #1a73e8;
  --brand-light:  rgba(26, 115, 232, 0.08);
  --brand-subtle: rgba(26, 115, 232, 0.06);
  --bg:           var(--paper);
  --bg-subtle:    var(--paper-2);
  --border:       var(--hairline);

  /* type */
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  /* shape */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;

  --shadow-card:  0 1px 2px rgba(26,24,48,0.04),
                  0 30px 60px -20px rgba(26,24,48,0.18),
                  0 80px 100px -30px rgba(26,24,48,0.10);
}

/* ------------------------------------------------------------
   Reset + Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--blue-tint); color: var(--ink); }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--hairline-soft);
  margin: 0;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 13px 22px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover  { background: var(--blue-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--paper-2); }

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ------------------------------------------------------------
   Brand Logo
   ------------------------------------------------------------ */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo img {
  width: 36px;
  height: 36px;
}

.brand-logo-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-nav.scrolled {
  border-bottom-color: var(--hairline-soft);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav-link:hover { color: var(--ink); }

/* ------------------------------------------------------------
   Section Labels
   ------------------------------------------------------------ */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

/* ------------------------------------------------------------
   Feature Cards
   ------------------------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--paper-2);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Latest Update Card
   ------------------------------------------------------------ */
.update-card {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--paper-2);
}

.update-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.update-version {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-right: 10px;
}

.update-date {
  font-size: 13px;
  color: var(--ink-muted);
}

.update-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.15s, gap 0.15s;
  flex-shrink: 0;
}

.update-link:hover {
  color: var(--blue-dark);
  gap: 8px;
}

.update-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-bullets li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.update-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-link:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
