/* Tintline design system — friendly, photo-led, very few words. Pink accent, navy text, rounded. */
:root {
  --bg: #ffffff; --bg2: #fff1f7; --bg3: #f7f7fb; --panel: #ffffff;
  --line: #e9e6ee; --line2: #d4cfdc;
  --fg: #1a1a4b; --fg2: #3d3d66; --muted: #6b6b8a; --dim: #9b9bb2;
  --accent: #ff399a; --accent-dark: #e51f83; --accent-soft: #ffe3f0;
  --ok: #0f9d58; --warn: #c7811a; --bad: #d8323f; --info: #2a6df4;
  --radius: 10px; --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --head: 'Poppins', 'Inter', -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 2px 6px rgba(26,26,75,.05), 0 12px 32px rgba(26,26,75,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
p { margin: 0 0 1em; color: var(--fg2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.display { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }
.display em, .h2 em { font-style: normal; color: var(--accent); }
.h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg2); max-width: 620px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .mono { font-family: var(--mono); }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.wrap { width: min(1140px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.pink { background: var(--bg2); }
.section.grey { background: var(--bg3); }
.section.navy { background: var(--fg); color: #fff; } .section.navy p { color: #c9c9e3; } .section.navy .eyebrow { color: #ff7ec0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 12px; border: 2px solid transparent; background: var(--accent); color: #fff; font: inherit; font-family: var(--head); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, opacity .15s, transform .1s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.navy { background: var(--fg); } .btn.navy:hover { background: #2a2a6e; }
.btn.light { background: var(--bg3); color: var(--fg); } .btn.light:hover { background: #ecebf3; }
.btn.white { background: #fff; color: var(--fg); } .btn.white:hover { background: #f1f1f6; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line2); } .btn.ghost:hover { background: var(--bg3); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(216,50,63,.35); } .btn.danger:hover { background: rgba(216,50,63,.06); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.loading { pointer-events: none; opacity: .6; }
.link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.link:hover { text-decoration-color: var(--fg); }
.link.red { color: var(--accent); text-decoration: none; font-weight: 600; } .link.red:hover { text-decoration: underline; }

/* Forms */
label { display: block; font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
input, select, textarea { width: 100%; padding: 13px 14px; background: #fff; border: 2px solid var(--line2); border-radius: var(--radius); color: var(--fg); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,57,154,.15); }
input::placeholder { color: var(--dim); }
input[readonly] { background: var(--bg3); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b6b8a 50%), linear-gradient(135deg, #6b6b8a 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field { margin-bottom: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--fg2); }
.check > span:not(.switch) { flex: 1; }
.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line2); border-radius: 999px; transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card.pad-lg { padding: 32px; }
.card.shadow { border: 0; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--bg3); font-size: 12px; font-weight: 600; color: var(--fg2); }
.pill.ok { background: #e3f6ec; color: var(--ok); } .pill.warn { background: #fff3e0; color: var(--warn); } .pill.bad { background: #fde7e9; color: var(--bad); } .pill.info { background: #e6eefe; color: var(--info); } .pill.pink { background: var(--accent-soft); color: var(--accent-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.dim { background: var(--dim); }
.dot.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15,157,88,.4); } 60% { box-shadow: 0 0 0 8px rgba(15,157,88,0); } }
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg3); color: var(--fg2); font-size: 14px; margin-bottom: 16px; }
.alert.bad { border-color: rgba(216,50,63,.35); background: #fff5f6; color: #8a1d27; } .alert.ok { border-color: rgba(15,157,88,.35); background: #f0faf4; color: #0b5e35; } .alert.warn { border-color: rgba(199,129,26,.35); background: #fff9ec; color: #7a4f0e; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .95em; }
.bignum { font-family: var(--head); font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: clamp(32px, 7vw, 52px); letter-spacing: .12em; font-weight: 700; color: var(--fg); }
pre { background: #15163a; color: #e8e8f6; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 0; }
pre .c { color: #8e8fb3; } pre .k { color: #ff7ec0; } pre .s { color: #9fd3ff; } pre .n { color: #ffd479; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg3); padding: 2px 6px; border-radius: 5px; }
pre code { background: none; padding: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--fg); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s; z-index: 1000; pointer-events: none; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--bad); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--fg); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.btn .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; min-height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 68px; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.solid { border-bottom-color: var(--line); }
.logo { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; color: var(--fg); }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7b3cff); display: inline-block; position: relative; }
.logo i::after { content: ''; position: absolute; left: 7px; top: 7px; width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.9); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--fg2); }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } .nav { padding: 0 16px; } }
@media (max-width: 560px) { .nav-right .ghost { display: none; } .nav-right .btn { height: 40px; padding: 0 14px; font-size: 14px; } }
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 13px; }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 600; color: var(--fg2); }
.hidden { display: none !important; }
.fade-in { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::selection { background: var(--accent); color: #fff; }
/* Photos */
.photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg3); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { aspect-ratio: 3 / 4; } .photo.wide { aspect-ratio: 16 / 9; } .photo.square { aspect-ratio: 1; }
/* Stars */
.stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
