:root {
    color-scheme: light;
    --font-body: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
    --paper: #f2f4f7;
    --paper-deep: #dfe7ee;
    --ink: #24303d;
    --muted: #4f5458;
    --rule: rgba(51, 73, 96, 0.18);
    --accent: #356b9a;
    --accent-hard: rgba(32, 90, 141, 1);
    --accent-soft: rgba(53, 107, 154, 0.14);
    --whitewash: rgba(255, 255, 252, 0.56);
}

:root[data-render-template-style="sage_green"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #f1f4ed;
    --paper-deep: #dce6d5;
    --ink: #29362d;
    --muted: #59645b;
    --rule: rgba(61, 91, 68, 0.2);
    --accent: #4e7357;
    --accent-hard: rgba(54, 101, 65, 1);
    --accent-soft: rgba(78, 115, 87, 0.16);
    --whitewash: rgba(255, 255, 250, 0.58);
}

:root[data-render-template-style="warm_terracotta"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --paper: #fbf1e9;
    --paper-deep: #efd8c7;
    --ink: #3f302a;
    --muted: #6f5b51;
    --rule: rgba(133, 76, 54, 0.2);
    --accent: #a54f35;
    --accent-hard: rgba(145, 65, 42, 1);
    --accent-soft: rgba(165, 79, 53, 0.15);
    --whitewash: rgba(255, 251, 245, 0.58);
}

:root[data-render-template-style="soft_lavender"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #f5f2fa;
    --paper-deep: #e4dcf1;
    --ink: #352f42;
    --muted: #625b6f;
    --rule: rgba(91, 72, 120, 0.19);
    --accent: #6f5b99;
    --accent-hard: rgba(92, 70, 137, 1);
    --accent-soft: rgba(111, 91, 153, 0.15);
    --whitewash: rgba(255, 253, 255, 0.58);
}

:root[data-render-template-style="dusty_rose"] {
    --font-body: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #faf1f3;
    --paper-deep: #eddadd;
    --ink: #412f34;
    --muted: #705b61;
    --rule: rgba(125, 73, 86, 0.19);
    --accent: #965064;
    --accent-hard: rgba(130, 70, 86, 1);
    --accent-soft: rgba(150, 80, 100, 0.15);
    --whitewash: rgba(255, 252, 252, 0.58);
}

:root[data-render-template-style="coastal_teal"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
    --paper: #edf6f5;
    --paper-deep: #d4e8e5;
    --ink: #243b3b;
    --muted: #526968;
    --rule: rgba(35, 103, 101, 0.19);
    --accent: #247572;
    --accent-hard: rgba(25, 105, 102, 1);
    --accent-soft: rgba(36, 117, 114, 0.15);
    --whitewash: rgba(251, 255, 254, 0.58);
}

:root[data-render-template-style="forest_green"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Copperplate, "Copperplate Gothic Light", Georgia, serif;
    --paper: #eef2ea;
    --paper-deep: #d5dfce;
    --ink: #253128;
    --muted: #536057;
    --rule: rgba(42, 83, 53, 0.22);
    --accent: #3f704d;
    --accent-hard: rgba(31, 83, 47, 1);
    --accent-soft: rgba(63, 112, 77, 0.16);
    --whitewash: rgba(252, 255, 248, 0.56);
}

:root[data-render-template-style="navy_gold"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #f6f3e8;
    --paper-deep: #e5dec7;
    --ink: #17283e;
    --muted: #536071;
    --rule: rgba(23, 50, 82, 0.2);
    --accent: #84601b;
    --accent-hard: rgba(25, 50, 82, 1);
    --accent-soft: rgba(132, 96, 27, 0.17);
    --whitewash: rgba(255, 254, 247, 0.6);
}

:root[data-render-template-style="vintage_sepia"] {
    --font-body: Georgia, "Times New Roman", serif;
    --font-display: "American Typewriter", Rockwell, "Courier New", serif;
    --paper: #f4ead7;
    --paper-deep: #e2d1b3;
    --ink: #43372b;
    --muted: #6d5f50;
    --rule: rgba(102, 76, 48, 0.22);
    --accent: #7f592f;
    --accent-hard: rgba(109, 72, 39, 1);
    --accent-soft: rgba(127, 89, 47, 0.17);
    --whitewash: rgba(255, 250, 238, 0.5);
}

:root[data-render-template-style="modern_charcoal"] {
    color-scheme: dark;
    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --paper: #25282c;
    --paper-deep: #191c1f;
    --ink: #f1f3f5;
    --muted: #b6bcc3;
    --rule: rgba(224, 229, 235, 0.2);
    --accent: #c0c7cf;
    --accent-hard: rgba(220, 224, 229, 1);
    --accent-soft: rgba(181, 192, 204, 0.14);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="sunset_coral"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --paper: #fff2ed;
    --paper-deep: #f5d9cf;
    --ink: #432e2b;
    --muted: #735a55;
    --rule: rgba(151, 72, 58, 0.19);
    --accent: #b94e3c;
    --accent-hard: rgba(177, 70, 52, 1);
    --accent-soft: rgba(185, 78, 60, 0.16);
    --whitewash: rgba(255, 253, 248, 0.58);
}

:root[data-render-template-style="midnight_indigo"] {
    color-scheme: dark;
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #1d2133;
    --paper-deep: #121624;
    --ink: #f0f1f8;
    --muted: #b6b9ca;
    --rule: rgba(201, 205, 230, 0.2);
    --accent: #aeb5f0;
    --accent-hard: rgba(202, 207, 255, 1);
    --accent-soft: rgba(146, 153, 216, 0.16);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="arctic_blue"] {
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --paper: #eff7fb;
    --paper-deep: #d5e9f2;
    --ink: #203744;
    --muted: #526b77;
    --rule: rgba(36, 96, 123, 0.19);
    --accent: #1d6f91;
    --accent-hard: rgba(21, 86, 115, 1);
    --accent-soft: rgba(29, 111, 145, 0.15);
    --whitewash: rgba(251, 254, 255, 0.6);
}

:root[data-render-template-style="olive_grove"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #f4f2e6;
    --paper-deep: #e2dfc6;
    --ink: #353627;
    --muted: #646451;
    --rule: rgba(91, 96, 54, 0.22);
    --accent: #66722c;
    --accent-hard: rgba(79, 92, 35, 1);
    --accent-soft: rgba(102, 114, 44, 0.16);
    --whitewash: rgba(255, 254, 247, 0.56);
}

:root[data-render-template-style="golden_mustard"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Rockwell, "Rockwell Nova", Georgia, serif;
    --paper: #faf5e8;
    --paper-deep: #eadfbe;
    --ink: #3f3524;
    --muted: #6d614c;
    --rule: rgba(128, 94, 30, 0.21);
    --accent: #8c650e;
    --accent-hard: rgba(112, 80, 10, 1);
    --accent-soft: rgba(140, 101, 14, 0.17);
    --whitewash: rgba(255, 253, 245, 0.58);
}

:root[data-render-template-style="peach_blush"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #fff3ec;
    --paper-deep: #f2dace;
    --ink: #432f2c;
    --muted: #745c56;
    --rule: rgba(143, 73, 53, 0.2);
    --accent: #a9563d;
    --accent-hard: rgba(139, 63, 43, 1);
    --accent-soft: rgba(169, 86, 61, 0.15);
    --whitewash: rgba(255, 253, 249, 0.58);
}

:root[data-render-template-style="royal_purple"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #f6f1fa;
    --paper-deep: #e5d9ef;
    --ink: #352b40;
    --muted: #655872;
    --rule: rgba(91, 55, 121, 0.2);
    --accent: #704796;
    --accent-hard: rgba(89, 50, 120, 1);
    --accent-soft: rgba(112, 71, 150, 0.15);
    --whitewash: rgba(255, 253, 255, 0.58);
}

:root[data-render-template-style="desert_sand"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: "American Typewriter", Rockwell, "Courier New", serif;
    --paper: #f7eedc;
    --paper-deep: #e5d4b4;
    --ink: #42382a;
    --muted: #6c604e;
    --rule: rgba(113, 78, 39, 0.21);
    --accent: #8a5d29;
    --accent-hard: rgba(104, 66, 29, 1);
    --accent-soft: rgba(138, 93, 41, 0.16);
    --whitewash: rgba(255, 251, 241, 0.54);
}

:root[data-render-template-style="deep_emerald"] {
    color-scheme: dark;
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #17312d;
    --paper-deep: #0d211e;
    --ink: #edf7f3;
    --muted: #b4cbc3;
    --rule: rgba(205, 235, 225, 0.2);
    --accent: #8dd1b7;
    --accent-hard: rgba(190, 237, 218, 1);
    --accent-soft: rgba(141, 209, 183, 0.16);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="espresso_night"] {
    color-scheme: dark;
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #302723;
    --paper-deep: #211916;
    --ink: #f6eee8;
    --muted: #cbbab0;
    --rule: rgba(238, 218, 205, 0.2);
    --accent: #e0ad86;
    --accent-hard: rgba(241, 208, 181, 1);
    --accent-soft: rgba(224, 173, 134, 0.16);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="stained_glass"] {
    color-scheme: dark;
    --font-body: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    --font-display: Copperplate, "Copperplate Gothic Light", Georgia, serif;
    --paper: #20233b;
    --paper-deep: #15172a;
    --ink: #f8f3e7;
    --muted: #c7bfd0;
    --rule: rgba(240, 193, 90, 0.25);
    --accent: #e7ad3c;
    --accent-hard: rgba(255, 213, 112, 1);
    --accent-soft: rgba(194, 67, 102, 0.2);
    --whitewash: rgba(95, 155, 190, 0.09);
}

:root[data-render-template-style="heavenly_sky"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --paper: #f0f8ff;
    --paper-deep: #d8ebf8;
    --ink: #243849;
    --muted: #587184;
    --rule: rgba(55, 116, 157, 0.18);
    --accent: #3d86b6;
    --accent-hard: rgba(38, 105, 151, 1);
    --accent-soft: rgba(91, 165, 211, 0.16);
    --whitewash: rgba(255, 255, 255, 0.64);
}

:root[data-render-template-style="morning_mist"] {
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Optima, Candara, "Segoe UI", sans-serif;
    --paper: #f3f6f5;
    --paper-deep: #dde5e3;
    --ink: #34413f;
    --muted: #64716f;
    --rule: rgba(72, 101, 97, 0.18);
    --accent: #5d817c;
    --accent-hard: rgba(67, 105, 100, 1);
    --accent-soft: rgba(93, 129, 124, 0.14);
    --whitewash: rgba(255, 255, 255, 0.62);
}

:root[data-render-template-style="cedar_rust"] {
    --font-body: Georgia, "Times New Roman", serif;
    --font-display: "American Typewriter", Rockwell, "Courier New", serif;
    --paper: #f6eee8;
    --paper-deep: #e6d4c8;
    --ink: #3e302b;
    --muted: #705e56;
    --rule: rgba(119, 67, 47, 0.22);
    --accent: #98492f;
    --accent-hard: rgba(122, 53, 34, 1);
    --accent-soft: rgba(152, 73, 47, 0.16);
    --whitewash: rgba(255, 251, 247, 0.56);
}

:root[data-render-template-style="wildflower_meadow"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #f6f5e9;
    --paper-deep: #e2e4ca;
    --ink: #34392d;
    --muted: #646b58;
    --rule: rgba(91, 103, 61, 0.2);
    --accent: #7d5b92;
    --accent-hard: rgba(91, 72, 112, 1);
    --accent-soft: rgba(194, 127, 154, 0.17);
    --whitewash: rgba(255, 255, 248, 0.58);
}

:root[data-render-template-style="ocean_depths"] {
    color-scheme: dark;
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
    --paper: #102d3a;
    --paper-deep: #081e29;
    --ink: #edf8fa;
    --muted: #aecbd2;
    --rule: rgba(187, 228, 235, 0.2);
    --accent: #73cad2;
    --accent-hard: rgba(158, 229, 234, 1);
    --accent-soft: rgba(68, 167, 179, 0.18);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="burgundy_velvet"] {
    color-scheme: dark;
    --font-body: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #351c27;
    --paper-deep: #24121b;
    --ink: #faeef2;
    --muted: #d2b5bf;
    --rule: rgba(241, 205, 217, 0.2);
    --accent: #dc9caf;
    --accent-hard: rgba(246, 194, 209, 1);
    --accent-soft: rgba(190, 87, 117, 0.18);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="slate_copper"] {
    color-scheme: dark;
    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: Copperplate, "Copperplate Gothic Light", Georgia, serif;
    --paper: #293238;
    --paper-deep: #1b2328;
    --ink: #f4f1ed;
    --muted: #c4c0bb;
    --rule: rgba(229, 185, 148, 0.22);
    --accent: #d29364;
    --accent-hard: rgba(241, 188, 145, 1);
    --accent-soft: rgba(210, 147, 100, 0.17);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="moonlit_silver"] {
    color-scheme: dark;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #252a35;
    --paper-deep: #171b24;
    --ink: #f0f3f8;
    --muted: #b7bfcc;
    --rule: rgba(211, 220, 235, 0.2);
    --accent: #aebdd3;
    --accent-hard: rgba(218, 227, 242, 1);
    --accent-soft: rgba(151, 169, 197, 0.17);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="rosewood_night"] {
    color-scheme: dark;
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #382426;
    --paper-deep: #251719;
    --ink: #f7efeb;
    --muted: #cbb8b5;
    --rule: rgba(236, 207, 197, 0.2);
    --accent: #d6a18d;
    --accent-hard: rgba(239, 195, 177, 1);
    --accent-soft: rgba(186, 104, 85, 0.18);
    --whitewash: rgba(255, 255, 255, 0.06);
}

:root[data-render-template-style="eucalyptus_breeze"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --paper: #eef5f0;
    --paper-deep: #d6e6da;
    --ink: #293a31;
    --muted: #586b60;
    --rule: rgba(57, 104, 75, 0.19);
    --accent: #4f8062;
    --accent-hard: rgba(54, 107, 74, 1);
    --accent-soft: rgba(79, 128, 98, 0.15);
    --whitewash: rgba(252, 255, 252, 0.6);
}

:root[data-render-template-style="bluebell_morning"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #f1f3fb;
    --paper-deep: #dce2f3;
    --ink: #2d3448;
    --muted: #5d657b;
    --rule: rgba(70, 86, 137, 0.19);
    --accent: #596eaf;
    --accent-hard: rgba(66, 82, 147, 1);
    --accent-soft: rgba(89, 110, 175, 0.15);
    --whitewash: rgba(254, 254, 255, 0.6);
}

:root[data-render-template-style="cranberry_cream"] {
    --font-body: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    --font-display: Baskerville, "Baskerville Old Face", Georgia, serif;
    --paper: #fbf3ee;
    --paper-deep: #ecdcd2;
    --ink: #402e31;
    --muted: #705a5e;
    --rule: rgba(125, 52, 71, 0.2);
    --accent: #9d3755;
    --accent-hard: rgba(128, 38, 63, 1);
    --accent-soft: rgba(157, 55, 85, 0.15);
    --whitewash: rgba(255, 253, 249, 0.58);
}

:root[data-render-template-style="honey_wheat"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Rockwell, "Rockwell Nova", Georgia, serif;
    --paper: #fbf5e4;
    --paper-deep: #eadcb8;
    --ink: #413723;
    --muted: #6f6248;
    --rule: rgba(126, 91, 27, 0.21);
    --accent: #987018;
    --accent-hard: rgba(119, 83, 10, 1);
    --accent-soft: rgba(193, 144, 37, 0.17);
    --whitewash: rgba(255, 253, 244, 0.58);
}

:root[data-render-template-style="clay_sage"] {
    --font-body: Optima, Candara, "Segoe UI", sans-serif;
    --font-display: "American Typewriter", Rockwell, "Courier New", serif;
    --paper: #f3eee7;
    --paper-deep: #dfd5c8;
    --ink: #37352d;
    --muted: #666258;
    --rule: rgba(90, 91, 67, 0.21);
    --accent: #68734e;
    --accent-hard: rgba(78, 89, 54, 1);
    --accent-soft: rgba(168, 104, 78, 0.16);
    --whitewash: rgba(255, 252, 247, 0.56);
}

:root[data-render-template-style="plum_blossom"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Didot, "Bodoni 72", Baskerville, Georgia, serif;
    --paper: #f8f0f5;
    --paper-deep: #ead8e3;
    --ink: #3e2d39;
    --muted: #6e5968;
    --rule: rgba(113, 60, 96, 0.2);
    --accent: #8c4774;
    --accent-hard: rgba(112, 51, 89, 1);
    --accent-soft: rgba(140, 71, 116, 0.15);
    --whitewash: rgba(255, 252, 254, 0.58);
}

:root[data-render-template-style="tropical_lagoon"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    --paper: #eaf8f5;
    --paper-deep: #ccebe4;
    --ink: #183c3a;
    --muted: #4b716d;
    --rule: rgba(12, 112, 105, 0.2);
    --accent: #07867e;
    --accent-hard: rgba(0, 104, 98, 1);
    --accent-soft: rgba(7, 134, 126, 0.16);
    --whitewash: rgba(250, 255, 253, 0.62);
}

:root[data-render-template-style="autumn_maple"] {
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-display: Copperplate, "Copperplate Gothic Light", Georgia, serif;
    --paper: #faefe3;
    --paper-deep: #ecd2b9;
    --ink: #452f22;
    --muted: #775b49;
    --rule: rgba(143, 67, 25, 0.21);
    --accent: #b14d18;
    --accent-hard: rgba(145, 52, 12, 1);
    --accent-soft: rgba(177, 77, 24, 0.16);
    --whitewash: rgba(255, 251, 245, 0.56);
}

:root[data-render-template-style="spring_lilac"] {
    --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --paper: #f7f3fb;
    --paper-deep: #e7ddf1;
    --ink: #382f43;
    --muted: #685d73;
    --rule: rgba(101, 77, 126, 0.19);
    --accent: #8062a0;
    --accent-hard: rgba(101, 72, 133, 1);
    --accent-soft: rgba(128, 98, 160, 0.15);
    --whitewash: rgba(255, 254, 255, 0.6);
}

:root[data-render-template-style="monochrome_ink"] {
    --font-body: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --font-display: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --paper: #f3f3f1;
    --paper-deep: #deded9;
    --ink: #252525;
    --muted: #5c5c59;
    --rule: rgba(32, 32, 32, 0.2);
    --accent: #424242;
    --accent-hard: rgba(25, 25, 25, 1);
    --accent-soft: rgba(66, 66, 66, 0.13);
    --whitewash: rgba(255, 255, 255, 0.58);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.4), transparent 26rem),
        radial-gradient(circle at 88% 30%, rgba(62, 92, 121, 0.09), transparent 18rem),
        linear-gradient(135deg, rgba(51, 73, 96, 0.045) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(45deg, rgba(51, 73, 96, 0.035) 25%, transparent 25%) 0 0 / 22px 22px,
        var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.top-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 56px;
    background: var(--accent-hard);
    color: var(--paper);
    box-shadow: 0 3px 12px rgba(36, 48, 61, 0.24);
}

.top-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 760px);
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.header-date {
    position: absolute;
    left: 50%;
    width: calc(100% - 112px);
    margin: 0;
    transform: translateX(-50%);
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-menu,
.language-menu {
    position: relative;
}

.section-menu summary,
.language-menu summary {
    display: grid;
    width: 40px;
    height: 40px;
    color: var(--paper);
    cursor: pointer;
    list-style: none;
    place-content: center;
}

.section-menu summary::-webkit-details-marker,
.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu {
    margin-left: auto;
}

.translate-icon {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.12em;
    line-height: 1;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--paper);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    position: absolute;
    left: 0;
    content: "";
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.section-menu nav,
.language-menu nav {
    position: absolute;
    top: 48px;
    overflow-y: auto;
    width: min(84vw, 310px);
    max-height: calc(100vh - 72px);
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: 0 0 6px 6px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(36, 48, 61, 0.26);
}

.section-menu nav {
    left: 0;
}

.language-menu nav {
    right: 0;
    width: min(60vw, 190px);
}

.section-menu nav a,
.language-menu nav a {
    display: block;
    padding: 9px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.section-menu nav a:hover,
.section-menu nav a:focus-visible,
.language-menu nav a:hover,
.language-menu nav a:focus-visible,
.language-menu nav a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent-hard);
}

.language-menu nav a[aria-current="page"]::after {
    float: right;
    content: "\2713";
}

.page {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 74px 16px 42px;
}

.home,
.section-title {
    scroll-margin-top: 72px;
}

.home {
    min-height: 92vh;
    display: grid;
    align-content: center;
    gap: 26px;
    padding: 28px 0 46px;
    text-align: center;
}

.church-kicker,
.date-kicker,
.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home h1 {
    margin: 10px 0 0;
    color: var(--accent-hard);
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 10vw, 3.85rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.94;
}

.home-title {
    margin: 0 auto;
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(2rem, 10vw, 4.25rem);
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
}

.logo-mask {
    display: block;
    width: 100%;

    background: var(--accent-hard);

    mask-image: var(--logo);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;

    -webkit-mask-image: var(--logo);
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
}

.logo-mask img {
    display: block;

    max-width: 600px;
    max-height: 1000px;
    width: min(100%, 400px);

    height: auto;
    opacity: 0;
}

.hero-image {
    position: relative;
    overflow: hidden;
    width: min(100%, 400px);
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    object-fit: cover;
    filter: saturate(0.86) contrast(0.95);
}

.hero-image .default-church-logo {
    display: block;
    width: 100%;
    height: auto;
    color: var(--accent-hard);
}

.verse {
    margin: 0 auto;
    max-width: 34rem;
    padding: 18px 18px 0;
    border-top: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.45;
}

.verse footer {
    color: var(--accent-hard);
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
}

.welcome-message {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 34rem;
}

.church-address {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 34rem;
}

.section {
    padding: 26px 0 40px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--accent-hard);
    text-decoration: none;
}

.social-links {
    text-align: center;
}

.social-hero {
    margin-top: 20px;
}

.social-links svg {
    display: block;
    width: auto;
    height: 30px;
    fill: currentColor;
}

.section-title {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 22px;
    padding: 12px 18px;

    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8vw, 2.65rem);
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.section-subtitle {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0;
    padding: 12px 18px;

    color: var(--accent-hard);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.paper-panel {
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: rgba(255, 252, 244, 0.38);
    box-shadow: 0 10px 28px rgba(36, 48, 61, 0.08);
}

.program-list,
.item-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 3px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--rule);
}

.program-row:last-child {
    border-bottom: 0;
}

.program-label,
.item-title,
.contact-name {
    font-weight: 700;
}

.program-value,
.program-note,
.item-meta,
.item-body,
.contact-meta {
    color: var(--muted);
    font-size: 0.94rem;
}

.program-value {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    overflow-wrap: anywhere;
}

.program-row > span:has(> .program-note) {
    display: contents;
}

.program-note {
    grid-column: 1 / -1;
    display: block;
    margin-top: 2px;
}

.item {
    padding: 18px 16px;
    border-bottom: 1px solid var(--rule);
}

.item:last-child {
    border-bottom: 0;
}

.item-title {
    margin: 3px 0 8px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
}

.item-meta {
    margin: 0;
    color: var(--accent);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.progress-percentage {
    text-align: right;
}

.item-body {
    margin: 0;
}

.item-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(47, 42, 36, 0.18);
    border-radius: 4px;
    background: var(--accent);
    color: #fffaf0;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.hymn-num {
    color: var(--accent);
}

.giving-total {
    padding: 20px 16px;
    text-align: center;
}

.giving-total strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 13vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
}

.progress {
    margin: 8px 16px 18px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.progress-track {
    overflow: hidden;
    height: 10px;
    margin-top: 8px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: rgba(51, 73, 96, 0.08);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.giving-link {
    margin: 18px 16px 16px;
}

.giving-difference {
    margin: 0 16px;
    font-weight: 700;
    text-align: right;
}

.sunset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sunset-item {
    padding: 20px 12px;
    text-align: center;
}

.sunset-item + .sunset-item {
    border-left: 1px solid var(--rule);
}

.sunset-time {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-hard);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
}

.sunset-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.difference-positive {
    color: #15803d;
}

.difference-negative {
    color: #b42318;
}

.contact {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--rule);
}

.contact:last-child {
    border-bottom: 0;
}

.pastor {
    background: var(--accent-soft);
}

@media (min-width: 560px) {
    .page {
        padding-inline: 28px;
    }

    .program-row {
        grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
    }
}
