/* TinKnight studio site — "铁皮工坊" direction
   warm paper + tin gray + brass accent, storybook serif. No frameworks. */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe8d9;
  --ink: #26221b;
  --ink-soft: #5c564a;
  --line: rgba(38, 34, 27, 0.16);
  --brass: #a06a1e;
  --plume: #b03e28;
  --tin: #aab3bb;
  --card: #fbf8f1;
  --serif: "Iowan Old Style", "Palatino", "Georgia", "Times New Roman", serif;
  --label: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plume); }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0;
}
.masthead img { width: 44px; height: 44px; }
.wordmark {
  font-size: 24px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.masthead nav { margin-left: auto; display: flex; gap: 22px; }
.masthead nav a {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
}
.masthead nav a:hover { color: var(--plume); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; text-align: center; }
.hero img { width: 132px; height: 132px; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 7vw, 56px);
  letter-spacing: 0.5px; line-height: 1.1; margin-bottom: 16px;
}
.hero .tagline {
  font-size: clamp(19px, 3vw, 23px);
  font-style: italic; color: var(--ink-soft);
  max-width: 34em; margin: 0 auto 26px;
}
.oath {
  display: inline-block;
  font-family: var(--label); font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 18px;
}
.oath b { color: var(--brass); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 15px; font-family: var(--label);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 28px;
}

/* ---------- app cards ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .apps { grid-template-columns: 1fr; } }

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.app-card h3 { font-size: 22px; }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card h3 a:hover { color: var(--plume); }
.app-card p { color: var(--ink-soft); font-size: 16px; }
.badge {
  align-self: flex-start;
  font-family: var(--label); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.badge.live { border-color: var(--brass); color: var(--brass); }
.app-card.forge {
  background: transparent;
  border-style: dashed;
  justify-content: center; text-align: center;
  color: var(--ink-soft); font-style: italic;
}

/* ---------- about ---------- */
.about p { max-width: 40em; margin-bottom: 16px; }
.about .zh { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- app page ---------- */
.app-hero { padding: 64px 0 48px; }
.app-hero .badge { margin-bottom: 14px; }
.app-hero h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 12px; }
.app-hero .sub { font-size: 20px; font-style: italic; color: var(--ink-soft); max-width: 32em; }

.features { list-style: none; max-width: 42em; }
.features li {
  padding: 12px 0 12px 30px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.features li::before {
  content: ""; position: absolute; left: 4px; top: 20px;
  width: 7px; height: 7px; background: var(--brass);
  transform: rotate(45deg); border-radius: 1.5px;
}
.features li b { color: var(--ink); font-weight: 600; }

.plain { max-width: 40em; color: var(--ink-soft); }
.plain p { margin-bottom: 14px; }
.plain h3 { font-size: 19px; color: var(--ink); margin: 26px 0 10px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  font-family: var(--label); font-size: 13px; color: var(--ink-soft);
}
footer .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
footer img { width: 22px; height: 22px; opacity: 0.85; }
footer .sep { opacity: 0.4; }
