@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #11120f;
    --panel: #1a1b17;
    --panel-raised: #20211c;
    --text: #f3f0e7;
    --muted: #a19f93;
    --line: rgba(241, 235, 213, 0.1);
    --cheese: #f2c94c;
    --green: #a8ba76;
    --discord: #9a8cf4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 79% 14%, rgba(118, 104, 49, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.page-shell { max-width: 1240px; padding: 0 56px; margin: 0 auto; }
.site-header {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 13px 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--cheese); color: #292416; font: 700 17px 'Space Grotesk', sans-serif; letter-spacing: 0; transform: rotate(-5deg); }
.brand-light { color: var(--muted); font-weight: 500; }
.header-label, .eyebrow, .card-number, .card-footer, .reminder-tag, .site-footer { font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.header-label { display: flex; align-items: center; gap: 9px; color: #b8b6aa; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(168,186,118,.6); }

.hero { min-height: 422px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { z-index: 1; width: 55%; padding: 54px 0 60px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: var(--cheese); }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--cheese); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 19px; font: 700 clamp(48px, 6vw, 72px)/.99 'Space Grotesk', sans-serif; letter-spacing: -.065em; }
h1 span { color: var(--cheese); }
.hero-description { max-width: 390px; margin: 0; color: #aaa99d; font-size: 15px; line-height: 1.75; }
.scroll-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 31px; color: #e7e3d7; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.scroll-link span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cheese); font-size: 14px; transition: transform .2s ease; }
.scroll-link:hover span { transform: translateY(3px); }

.hero-art { position: relative; display: grid; width: 390px; height: 350px; flex: 0 0 390px; place-items: center; }
.orbit { position: absolute; width: 295px; height: 295px; border: 1px solid rgba(242,201,76,.12); border-radius: 50%; }
.orbit-two { width: 235px; height: 235px; border-style: dashed; border-color: rgba(242,201,76,.13); }
.cheese { position: relative; z-index: 1; width: 180px; height: 164px; border: 1px solid rgba(255,239,163,.3); border-radius: 52% 46% 45% 49%; background: linear-gradient(145deg, #ffdf73 5%, #f4c64b 55%, #d99d31); box-shadow: 18px 23px 0 rgba(0,0,0,.2), inset -10px -13px 0 rgba(177,113,19,.16), 0 0 75px rgba(242,201,76,.13); transform: rotate(-12deg); }
.cheese:after { position: absolute; right: 9px; bottom: -8px; left: 13px; height: 31px; border-radius: 10px 7px 50% 40%; background: linear-gradient(90deg, #eab342, #d9952d); content: ''; clip-path: polygon(0 0,100% 0,92% 85%,76% 68%,62% 100%,44% 70%,25% 96%,10% 66%); }
.cheese-hole { position: absolute; z-index: 2; border-radius: 50%; background: #dba63c; box-shadow: inset 2px 2px 5px rgba(137,84,10,.23); }
.hole-one { top: 34px; left: 42px; width: 22px; height: 22px; }
.hole-two { top: 80px; right: 33px; width: 16px; height: 16px; }
.hole-three { bottom: 35px; left: 83px; width: 12px; height: 12px; }
.cheese-face { position: absolute; top: 54px; left: 68px; display: flex; align-items: center; gap: 20px; transform: rotate(4deg); }
.cheese-face span { width: 5px; height: 8px; border-radius: 50%; background: #49351e; }
.cheese-face i { position: absolute; top: 15px; left: 8px; width: 15px; height: 7px; border-bottom: 2px solid #754619; border-radius: 0 0 50% 50%; }
.spark { position: absolute; color: var(--cheese); }
.spark-one { top: 63px; right: 66px; font-size: 22px; }
.spark-two { bottom: 74px; left: 69px; color: #9daf6e; font-size: 27px; }
.art-caption { position: absolute; right: 5px; bottom: 38px; color: rgba(242,201,76,.6); font: 700 10px/1.5 'Space Grotesk', sans-serif; letter-spacing: .17em; }

.rules-section { padding: 55px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 10px; color: #88877e; }
h2 { margin-bottom: 0; font: 600 29px 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.rule-count { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; color: var(--cheese); font: 600 13px 'Space Grotesk', sans-serif; }
.rule-count span { color: #77766d; font: 700 9px 'DM Sans', sans-serif; letter-spacing: .12em; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.rule-card { position: relative; display: flex; min-height: 366px; flex-direction: column; padding: 25px 27px 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(34,35,29,.88), rgba(24,25,21,.95)); }
.rule-card:before { position: absolute; top: 0; left: 27px; width: 43px; height: 2px; background: var(--cheese); content: ''; }
.discord-card:before { background: var(--discord); }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.card-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(242,201,76,.21); border-radius: 10px; background: rgba(242,201,76,.08); }
.minecraft-icon { position: relative; width: 19px; height: 19px; border: 2px solid var(--cheese); border-radius: 2px; background: linear-gradient(135deg, transparent 45%, rgba(242,201,76,.24) 46%); }
.minecraft-icon:after { position: absolute; top: -2px; left: 6px; width: 5px; height: 5px; border: 2px solid var(--cheese); border-bottom: 0; background: var(--panel); content: ''; }
.discord-icon { color: var(--discord); font-size: 27px; font-weight: 700; }
.discord-card .card-icon { border-color: rgba(154,140,244,.23); background: rgba(154,140,244,.09); }
.card-number { color: #77766d; font-size: 9px; }
h3 { margin-bottom: 5px; font: 600 24px 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.discord-gradient { color: #b3a9ff; }
.card-intro { margin-bottom: 17px; color: #95948a; font-size: 12px; line-height: 1.6; }
.rule-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.rule-list li { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; color: #b4b2a8; font-size: 12px; line-height: 1.65; }
.rule-list strong { color: #e8e5da; font-weight: 600; }
.rule-bullet { padding-top: 2px; color: var(--cheese); font: 600 10px 'Space Grotesk', sans-serif; }
.discord-card .rule-bullet { color: var(--discord); }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 17px; color: #77766d; font-size: 8px; }
.footer-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--cheese); }
.discord-mark { background: var(--discord); }

.reminder { display: flex; align-items: center; gap: 15px; margin: 17px 0 45px; padding: 16px 19px; border: 1px solid rgba(168,186,118,.15); border-radius: 10px; background: rgba(168,186,118,.045); }
.reminder-icon { color: var(--green); font-size: 18px; }
.reminder p { flex: 1; margin: 0; color: #a8a79d; font-size: 12px; line-height: 1.5; }
.reminder p strong { color: #e3e1d6; }
.reminder-tag { color: #8f9e69; font-size: 8px; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; padding: 19px 0 23px; border-top: 1px solid var(--line); color: #77766d; font-size: 8px; }
.footer-heart { color: #d18b70; }

/* Long-form official rules document */
.header-link { color: #c4c1b5; text-decoration: none; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.header-link span { margin-left: 5px; color: var(--cheese); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 27px; color: #77766d; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.hero-meta span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #a9a79a; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.intro-panel { display: grid; grid-template-columns: 36px 1fr auto; align-items: start; gap: 15px; margin: 28px 0 53px; padding: 20px 22px; border: 1px solid rgba(242,201,76,.16); border-radius: 11px; background: linear-gradient(100deg, rgba(242,201,76,.065), rgba(242,201,76,.015)); }
.intro-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(242,201,76,.23); border-radius: 9px; color: var(--cheese); }
.intro-title { margin: 0 0 5px; color: var(--text); font: 600 15px 'Space Grotesk', sans-serif; }
.intro-panel p:not(.intro-title) { max-width: 750px; margin: 0; color: #a9a79d; font-size: 12px; line-height: 1.75; }
.intro-label, .contents-count { align-self: center; color: #8b896f; font-size: 8px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.contents { margin-bottom: 53px; }
.contents .section-heading { align-items: end; margin-bottom: 17px; }
.contents h2 { font-size: 25px; }
.contents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contents-link { display: grid; grid-template-columns: 27px 1fr 15px; align-items: center; gap: 7px; min-height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); color: #c5c2b6; font-size: 11px; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.contents-link:hover { border-color: rgba(242,201,76,.33); background: rgba(242,201,76,.045); }
.contents-link > span { color: var(--cheese); font: 600 10px 'Space Grotesk', sans-serif; }
.contents-link b { color: #7c7a70; font-size: 14px; font-weight: 400; }
.rules-document { border-top: 1px solid var(--line); }
.document-section { padding: 39px 0 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.document-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-index { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 1px solid rgba(242,201,76,.2); border-radius: 12px; background: rgba(242,201,76,.065); color: var(--cheese); font: 600 16px 'Space Grotesk', sans-serif; }
.section-index-purple { border-color: rgba(154,140,244,.23); background: rgba(154,140,244,.08); color: #b3a9ff; }
.section-index-green { border-color: rgba(168,186,118,.2); background: rgba(168,186,118,.07); color: var(--green); }
.document-heading .eyebrow { margin: 0 0 5px; color: #858379; font-size: 8px; }
.document-heading h2 { font-size: 25px; }
.rule-block { padding: 19px 0 20px; border-top: 1px solid rgba(241,235,213,.07); scroll-margin-top: 24px; }
.rule-block h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; font-size: 17px; letter-spacing: -.025em; }
.rule-block h3 > span { color: var(--cheese); font: 600 11px 'Space Grotesk', sans-serif; letter-spacing: .02em; }
.document-section:nth-of-type(2) .rule-block h3 > span,
#community .rule-block h3 > span { color: #a99cfb; }
.rule-block p { max-width: 850px; margin: 0 0 11px; color: #b0aea3; font-size: 12px; line-height: 1.8; }
.rule-block p:last-child { margin-bottom: 0; }
.rule-points, .numbered-rules { max-width: 900px; margin: 9px 0 15px; padding: 0; color: #b0aea3; font-size: 12px; line-height: 1.75; }
.rule-points { display: grid; gap: 6px; padding-left: 19px; list-style: none; }
.rule-points li { position: relative; padding-left: 3px; }
.rule-points li:before { position: absolute; top: .78em; left: -16px; width: 5px; height: 5px; border-radius: 50%; background: var(--cheese); content: ''; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.numbered-rules { display: grid; gap: 7px; padding-left: 27px; }
.numbered-rules li { padding-left: 3px; }
.numbered-rules li::marker { color: var(--cheese); font: 600 10px 'Space Grotesk', sans-serif; }
.callout { max-width: 900px; margin: 15px 0; padding: 13px 15px; border: 1px solid rgba(242,201,76,.17); border-left: 2px solid var(--cheese); border-radius: 0 8px 8px 0; background: rgba(242,201,76,.045); color: #c9c5b7; font-size: 11px; line-height: 1.7; }
.callout > strong { color: #f0e8cc; }
.callout ol { display: grid; gap: 5px; margin: 9px 0 0; padding-left: 20px; }
.callout ol li::marker { color: var(--cheese); }
.callout-red { border-color: rgba(225,111,99,.2); border-left-color: #d87d70; background: rgba(225,111,99,.045); }
.callout-red > strong { color: #f0c2b9; }
.callout-gold { border-left-color: var(--cheese); }
.fine-print { color: #908e83 !important; font-size: 11px !important; font-style: italic; }
.inline-link { color: #f2d46f; text-decoration-color: rgba(242,212,111,.45); text-underline-offset: 3px; }
.closing-line { padding: 17px 0 0; color: var(--cheese) !important; font: 600 17px 'Space Grotesk', sans-serif; }
.site-footer a { color: #aaa79b; text-decoration: none; }
.site-footer a:hover, .header-link:hover { color: var(--cheese); }

@media (max-width: 760px) {
    .intro-panel { grid-template-columns: 36px 1fr; }
    .intro-label { grid-column: 2; align-self: start; }
    .contents-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .page-shell { padding: 0 25px; }
    .hero { min-height: 390px; }
    .hero-copy { width: 67%; }
    .hero-art { width: 260px; flex-basis: 260px; margin-right: -88px; opacity: .72; transform: scale(.82); }
    h1 { font-size: clamp(48px, 9vw, 65px); }
    .rules-grid { gap: 12px; }
    .rule-card { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 560px) {
    .page-shell { padding: 0 20px; }
    .site-header { height: 68px; }
    .header-label { font-size: 8px; letter-spacing: .1em; }
    .hero { min-height: 430px; align-items: start; }
    .hero-copy { width: 100%; padding-top: 54px; }
    .hero-description { max-width: 305px; }
    .hero-art { position: absolute; right: -92px; bottom: -127px; width: 280px; height: 280px; margin: 0; opacity: .36; transform: scale(.82); }
    .section-heading { align-items: start; gap: 12px; }
    .section-heading h2 { max-width: 230px; font-size: 25px; }
    .rule-count { flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 4px; font-size: 11px; }
    .rule-count span { max-width: 88px; text-align: right; line-height: 1.5; }
    .rules-grid { grid-template-columns: 1fr; }
    .rule-card { min-height: 0; padding: 23px 22px 18px; }
    .card-footer { margin-top: 22px; }
    .reminder { align-items: start; gap: 11px; }
    .reminder-tag { display: none; }
    .site-footer { gap: 12px; font-size: 7px; letter-spacing: .1em; }
    .hero-meta { gap: 10px 14px; max-width: 310px; font-size: 7px; }
    .intro-panel { grid-template-columns: 28px 1fr; gap: 11px; margin: 22px 0 40px; padding: 16px; }
    .intro-icon { width: 28px; height: 28px; }
    .intro-panel p:not(.intro-title) { font-size: 11px; }
    .contents { margin-bottom: 38px; }
    .contents h2, .document-heading h2 { font-size: 22px; }
    .document-section { padding: 30px 0 22px; }
    .document-heading { gap: 12px; }
    .section-index { width: 39px; height: 39px; flex-basis: 39px; border-radius: 10px; font-size: 14px; }
    .rule-block { padding: 16px 0 17px; }
    .rule-block h3 { font-size: 15px; }
    .rule-block p, .rule-points, .numbered-rules { font-size: 11px; }
    .two-column { grid-template-columns: 1fr; }
    .callout { padding: 11px 12px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition-duration: .01ms !important; }
}
