@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700;800&family=Martel:wght@400;500;600;700;800;900&family=MedievalSharp&display=swap');

body {font-family: 'Barlow', sans-serif;}
:root {color-scheme: dark;--background: #141615;--page-background: #141615;--text-color: #ffffff;--link-color: #35b5ff;}
:root[data-theme="light"] {--page-background: url("images/9701.jpg") center / cover fixed;--link-color: #e226c3;}
:root[data-theme="dark"] {--background: #141615;--page-background: #141615;--link-color: #35b5ff;}
a {color: var(--link-color);}
button {background-color: var(--background);color: var(--text-color);border: 1px solid currentColor;padding: 0.5rem 1rem;cursor: pointer;}
body {background: var(--page-background);}
#about {background-image: url("images/Midi.jpg");background-size: cover;background-position: bottom;background-repeat: no-repeat;display: flex;flex-direction: column;align-items: center;justify-content: center;text-align: center;color: #ffffff;}
#about {position: relative;z-index: 3;width: min(560px, calc(100% - 32px));max-width: 100%;box-sizing: border-box;margin: 0 auto;padding: 16px 24px;}
:root[data-theme="light"] #about {background-image: url("images/sinai8x10.jpg");}
#about h2 {margin: 0 0 12px;font-size: clamp(2rem, 5vw, 4rem);}
#about p {font-size: 1.2rem;margin: 0;}
body {margin: 0;min-height: 100vh;display: flex;flex-direction: column;}
#sight-settings {position: fixed;top: 10px;right: 10px; max-width: 40px; max-height: 40px; display: flex; justify-content: center; align-items: center; }
#sight-settings img {display: block; width: 40px; height: 40px; box-sizing: border-box; object-fit: contain; padding: 1px; background-color: #704214;}
main {flex: 1;position: relative;z-index: 0;display: flow-root;padding-top: 0;}
header {position: relative;z-index: 2;display: flow-root;padding: 1vh 20px 20px;}
footer {margin-top: auto;}
nav {position: relative;width: min(320px, calc(100vw - 48px));aspect-ratio: 1;margin: 16px auto 0;border-radius: 50%;overflow: hidden;background: #704214;box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);}
nav a {position: absolute;inset: 0;display: block;text-decoration: none;color: #fff;background: #2b2d2c;font-family: 'MedievalSharp', cursive;font-size: 1.05rem;text-align: center;transition: background-color 150ms ease, color 150ms ease;}
nav a span {position: absolute;width: 84px;line-height: 1.1;transform: translate(-50%, -50%);}
nav a:nth-child(1) {clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 79%);}
nav a:nth-child(2) {clip-path: polygon(50% 50%, 0 79%, 0 0, 50% 0);}
nav a:nth-child(3) {clip-path: polygon(50% 50%, 100% 79%, 100% 100%, 0 100%, 0 79%);}
nav a:nth-child(1) span {left: 74%;top: 29%;}
nav a:nth-child(2) span {left: 26%;top: 29%;}
nav a:nth-child(3) span {left: 50%;top: 77%;}
nav a:hover,nav a:focus-visible {background: #704214;}
#contact img {width: 40px;height: 40px;}
footer {padding: 20px;text-align: center}


#sight-settings-panel {width: min(100vw, 600px);min-height: 300px;padding: 2rem;box-sizing: border-box;}
#sight-settings-panel h2 {margin-top: -2rem; text-align: center; }
#sight-settings-panel form {position: absolute; top: 0.75rem; right: 0.75rem; margin: 0;}
#sight-settings-panel .settings-option {display: flex; flex-direction: column; gap: 0.5rem;}
#sight-settings-panel select {width: 100%; padding: 0.5rem; background-color: var(--background); color: var(--text-color); border: 1px solid currentColor;}


/* ===== Medieval theme (matches Figma "kindom" mockups) ===== */
:root[data-theme="midevil"] {color-scheme: light;--background: #463526;--page-background: #C9B189;--text-color: #F6EBD0;--link-color: #463526;--parchment: #F6EBD0;--ink: #463526;--tan: #C9B189;--forest: #053527;}
:root[data-theme="midevil"] body {font-family: 'Martel', serif;}:root[data-theme="midevil"] h1,:root[data-theme="midevil"] h2,:root[data-theme="midevil"] h3,:root[data-theme="midevil"] h4,:root[data-theme="midevil"] h5,:root[data-theme="midevil"] h6 {font-family: 'MedievalSharp', cursive;}
:root[data-theme="midevil"] body {color: var(--ink);}

/* Parchment welcome card with diamond-corner frame */
:root[data-theme="midevil"] #about {background: var(--parchment);color: var(--ink);width: min(560px, calc(100% - 32px));min-width: 280px;margin: 0 auto;padding: 28px 32px;box-sizing: border-box;border: 18px solid transparent;border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="M4 1.5 6.5 4 4 6.5 1.5 4Z M36 1.5 38.5 4 36 6.5 33.5 4Z M4 33.5 6.5 36 4 38.5 1.5 36Z M36 33.5 38.5 36 36 38.5 33.5 36Z" fill="%23463526"/><path d="M8 4H32M8 36H32M4 8V32M36 8V32" stroke="%23463526" stroke-width="1"/></svg>') 20% / 18px stretch;box-shadow: 0 6px 18px rgba(70, 53, 38, 0.35);}
:root[data-theme="midevil"] #about h2 {color: var(--ink);font-size: clamp(1.45rem, 3vw, 2.6rem);}
:root[data-theme="midevil"] #about p {font-size: 1.05rem;}

/* Three-piece circular navigation */
:root[data-theme="midevil"] nav {background: var(--ink);border: 3px solid var(--ink);}
:root[data-theme="midevil"] nav a {color: var(--ink);background: var(--parchment);font-family: 'MedievalSharp', cursive;}
:root[data-theme="midevil"] nav a:hover,:root[data-theme="midevil"] nav a:focus-visible {background: var(--forest);color: var(--parchment);}
:root[data-theme="light"] nav a {background: rgba(20, 22, 21, 0.88);}
:root[data-theme="light"] nav a:hover,:root[data-theme="light"] nav a:focus-visible {background: #e226c3;}

/* Dark brown royal footer */
:root[data-theme="midevil"] footer {background: var(--background); color: var(--parchment); margin-top: 48px;}
:root[data-theme="midevil"] footer a {color: var(--parchment);}

/* Pill button for the Discord link */
:root[data-theme="midevil"] #contact a {display: inline-block;font-family: 'MedievalSharp', cursive;background: var(--parchment);color: var(--ink);border-radius: 999px;padding: 0.6rem 1.5rem;text-decoration: none;}
:root[data-theme="midevil"] #contact a::before {content: "◆ ";}
:root[data-theme="midevil"] #contact a::after {content: " ◆";}
:root[data-theme="midevil"] #contact a br {display: none;}
:root[data-theme="midevil"] #contact img {vertical-align: middle; margin: 0 6px;}
:root[data-theme="midevil"] #contact a:hover {background: var(--forest); color: var(--parchment);}

/* Buttons & settings panel as parchment */
:root[data-theme="midevil"] button {border-radius: 999px; font-family: 'MedievalSharp', cursive;}
:root[data-theme="midevil"] #sight-settings {border-radius: 6px;}
:root[data-theme="midevil"] #sight-settings-panel {background: var(--parchment);color: var(--ink);border: 1px solid var(--ink);box-shadow: 0 6px 18px rgba(70, 53, 38, 0.35);}
:root[data-theme="midevil"] #sight-settings-panel select {background-color: var(--parchment); color: var(--ink); border-color: var(--ink);}
:root[data-theme="midevil"] #sight-settings-panel::backdrop {background: rgba(70, 53, 38, 0.55);}

@media (max-width: 760px) {
	#about {position: relative;top: auto;left: auto;transform: none;min-width: 0;margin: 0 auto 48px;}
}
