/* The Hatchlands website (home, privacy, terms). The game itself is in /client/. */
:root { --ink: #1d2540; --muted: #5d6784; --brand: #5b5cf0; --brand-d: #3f40c4; --orange: #ff7a1a; --card: #fff; --line: #dfe4f5; --bg: #f1f5ff; --radius: 18px; --shadow: 0 8px 26px #1d254022; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-d); font-weight: 600; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 99; } .skip:focus { left: 8px; top: 8px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.bar .brand img { height: 46px; width: auto; display: block; }
.bar nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; } .bar nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 800; font-size: 1.05rem; padding: .7em 1.5em; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-d); border: 0; cursor: pointer; }
.btn:hover { background: #6d6ef5; } .btn.big { font-size: 1.25rem; padding: .8em 1.8em; } .btn.alt { background: #fff; color: var(--brand-d); box-shadow: 0 4px 0 #c9d0ee; } .btn.orange { background: var(--orange); box-shadow: 0 4px 0 #c24f00; } .btn.orange:hover { background: #ff8c3a; }
.btn:focus-visible, a:focus-visible { outline: 3px solid #ff7a1a; outline-offset: 3px; }

/* hero */
.hero { position: relative; color: #fff; text-align: center; background: #6fb6ff url(/art/worlds/bg_title.webp) center 40% / cover no-repeat; border-radius: 0 0 36px 36px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1d254055 0%, #1d254000 35%, #1d254066 100%); }
.hero .wrap { position: relative; padding-top: 6px; padding-bottom: 56px; }
.hero .bar nav a { color: #fff; text-shadow: 0 1px 4px #0006; }
.hero h1 { margin: 10px auto 6px; line-height: 0; } .hero h1 img { width: min(520px, 86%); filter: drop-shadow(0 8px 14px #0005); }
.hero .tag { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; margin: 6px 0 4px; text-shadow: 0 2px 8px #0007; }
.hero .sub { max-width: 620px; margin: 0 auto 22px; font-size: 1.1rem; text-shadow: 0 1px 6px #0007; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: .9rem; opacity: .95; text-shadow: 0 1px 4px #0007; }

/* sections */
section { padding: 46px 0 6px; } section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 8px; text-align: center; } section .lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; text-align: center; } .step .n { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; font-size: 1.3rem; align-items: center; justify-content: center; margin-bottom: 6px; } .step h3 { margin: 4px 0; } .step p { margin: 0; color: var(--muted); }
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 6px 0 4px; } .pets figure { margin: 0; text-align: center; width: 150px; } .pets img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 6px 6px #0003); } .pets figcaption { font-weight: 800; font-size: .95rem; }
.pets figure:nth-child(odd) img { animation: bob 3s ease-in-out infinite; } .pets figure:nth-child(even) img { animation: bob 3.6s ease-in-out infinite .6s; } @keyframes bob { 50% { transform: translateY(-8px); } }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; } .card h3 { margin: 0 0 6px; font-size: 1.3rem; } .card ul { padding-left: 1.2em; margin: 8px 0 12px; } .card li { margin: 5px 0; }
.band { background: #fff; margin-top: 46px; padding: 38px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .band h2 { margin-top: 0; }
.safe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; } .safe div { background: var(--bg); border-radius: 14px; padding: 14px 16px; } .safe b { display: block; margin-bottom: 2px; }
details { background: var(--card); border-radius: 14px; box-shadow: 0 2px 10px #1d254018; padding: 12px 16px; margin: 10px 0; } summary { cursor: pointer; font-weight: 800; } details p { margin: 8px 0 2px; color: var(--muted); }
.faq { max-width: 760px; margin: 0 auto; }

/* text pages */
.doc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 20px; margin: 26px auto 10px; max-width: 800px; } .doc h1 { margin: 0 0 4px; font-size: 2rem; } .doc h2 { text-align: left; font-size: 1.35rem; margin: 26px 0 6px; } .doc p, .doc li { color: #2c3454; } .doc .when { color: var(--muted); font-size: .92rem; margin: 0 0 18px; } .doc ul { padding-left: 1.3em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 10px 0; } .doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .doc th { background: #eef; }
.back { display: inline-block; margin: 18px 0 0; }

/* footer */
footer { margin-top: 50px; background: #1d2540; color: #cfd6f2; padding: 30px 0; font-size: .95rem; } footer a { color: #fff; } footer .cols2 { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; } footer .links { display: flex; gap: 8px 22px; flex-wrap: wrap; } footer small { display: block; margin-top: 14px; opacity: .8; }

@media (prefers-reduced-motion: reduce) { .pets img { animation: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 560px) { body { font-size: 16px; } .doc { padding: 20px 16px; } .hero .wrap { padding-bottom: 40px; } .bar .brand img { height: 38px; } }
