/* lakesoft.css — quiet workshop aesthetic */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #16181c;
  --ink-soft: #3b3f46;
  --muted: #6b6f76;
  --hairline: rgba(22, 24, 28, 0.08);
  --hairline-strong: rgba(22, 24, 28, 0.14);
  --accent: #2f6aa6;
  --accent-soft: rgba(47, 106, 166, 0.08);

  --pad: 28px;
  --col: 720px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --section-gap: 88px;
  --post-pad: 22px;
}

[data-theme="dark"] {
  --bg: #0e1014;
  --surface: #14171c;
  --ink: #ececec;
  --ink-soft: #c8ccd2;
  --muted: #8b8f96;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --accent-soft: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: var(--col);
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  padding-top: clamp(72px, 14vh, 140px);
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.logo-mark {
  display: inline-flex;
  color: var(--accent);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.logo-link:hover .logo-mark {
  transform: translateY(-1px);
}

.logo-word {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.005em;
}


/* ── Section heads ──────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  opacity: .7;
}
.rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ── App card ───────────────────────────────────────────────────────── */
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 28px 24px;
  overflow: hidden;
  transition: border-color .3s ease;
}
.app-card:hover {
  border-color: var(--hairline-strong);
}

.app-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  image-rendering: auto;
}

.app-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.app-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.app-platforms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.app-platforms svg { opacity: .8; }

.app-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
  text-wrap: pretty;
}

.app-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--hairline);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover svg {
  transform: translate(1px, -1px);
}

.app-card-decor {
  position: absolute;
  right: -32px;
  bottom: -36px;
  color: var(--accent);
  opacity: .07;
  pointer-events: none;
  transition: opacity .4s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.app-card:hover .app-card-decor {
  opacity: .11;
  transform: translateY(-3px);
}
[data-theme="dark"] .app-card-decor {
  opacity: .12;
}
[data-theme="dark"] .app-card:hover .app-card-decor {
  opacity: .18;
}

.more-soon {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
  padding-left: 4px;
}

/* ── Notes / blog list ──────────────────────────────────────────────── */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.post-row {
  border-bottom: 1px solid var(--hairline);
}

.post-link {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: var(--post-pad) 4px;
  transition: background .2s ease, padding .25s ease;
}
.post-link:hover {
  background: var(--accent-soft);
  padding-left: 12px;
  padding-right: 12px;
}
.post-link:hover .post-title {
  color: var(--accent);
}

.post-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.post-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s ease;
}
.post-snippet {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.post-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  white-space: nowrap;
  align-self: center;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--hairline);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-quiet {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --pad: 22px; }
  .site-header { padding-top: 56px; }
  .post-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 4px;
  }
  .post-tag { display: none; }
  .post-date { order: -1; }
  .app-card { padding: 22px 22px 20px; }
  .app-card-decor { right: -48px; bottom: -48px; }
  .app-meta { flex-direction: column; gap: 4px; align-items: flex-start; }
}
