@font-face { font-family: "Patrick Hand"; src: url("PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }

:root { --paper: #f6f1e6; --card: #fffdf7; --ink: #2f2d2a; --ink-2: #5d574e; --rule: #ddd3c0; --accent: #b5452f; --night: #1f2c5c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 Georgia, "Iowan Old Style", serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand { font-family: "Patrick Hand", "Comic Neue", cursive; font-weight: 400; line-height: 1.1; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 5vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 30px; color: var(--ink); text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { position: relative; }
.hero img { width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; object-position: center 55%; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.intro { max-width: 760px; margin: -70px auto 0; position: relative; padding: 30px 36px; background: var(--card); border: 3px solid var(--ink);
         border-radius: 22px 30px 24px 28px; box-shadow: 6px 8px 0 rgba(47, 45, 42, 0.15); text-align: center; }
.intro img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ink); margin: -84px auto 10px; background: var(--night); }
.intro h1 { font-size: 54px; margin: 0 0 8px; }
.intro p { margin: 0 0 14px; color: var(--ink-2); }
.links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.links a { font-family: "Patrick Hand", cursive; font-size: 22px; padding: 6px 18px; border: 3px solid var(--ink); border-radius: 14px 18px 12px 16px; color: var(--ink); text-decoration: none; background: #fff; }
.links a:hover { background: #fff4d6; }

.doc { max-width: 780px; margin: 0 auto; padding: 10px clamp(18px, 5vw, 40px) 60px; }
.doc h1 { font-size: 50px; margin: 18px 0 4px; }
.doc h2 { font-size: 30px; margin: 34px 0 6px; }
.doc .meta { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.lang { display: inline-block; font-family: "Patrick Hand", cursive; font-size: 20px; margin-right: 12px; }
hr.page { border: 0; border-top: 3px dashed var(--rule); margin: 56px 0 10px; }

footer { text-align: center; color: var(--ink-2); font-size: 14px; padding: 30px 18px 40px; border-top: 1px solid var(--rule); margin-top: 40px; }
footer a { color: var(--ink-2); }
