*, *::before, *::after { 
	box-sizing: border-box; 
	margin: 0; 
	padding: 0; 
	scrollbar-color: #3E2D22 #e8e1d1;
}

:root {
	--font-big: "Georgia", serif;
	--font-normal: "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-small: "Courier New", monospace;
	--color-bg: #e8e1d1;
	--color-border: rgba(0,0,0,0.08);
	--color-border-mid: rgba(0,0,0,0.15);
	--color-text-1: #3E2D22;
	--color-text-2: #000000;
	--color-text-3: #333333;
	--color-text-4: #6b7280;
	--color-text-5: #FFFFFF;
	--size-1: clamp(1.8rem, 1.56rem + 1.2vw, 3rem);
	--size-2: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
	--size-3: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
	--size-4: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
	--size-5: clamp(0.8rem, 0.76rem + 0.2vw, 1rem);
	--transition: 0.5s cubic-bezier(0.4,0,0.2,1);
}

html, body { 
	height: 100%; 
}

body {
	max-width: 600px;
	margin: 0 auto;
	font-family: var(--font-normal);
	font-size: var(--size-3);
	background: var(--color-bg) url(graphics/bg.png) fixed;
	color: var(--color-text-3);
	-webkit-font-smoothing: antialiased;
	transition: background var(--transition), color var(--transition);
}

h1 {
	font-family: var(--font-big);
	font-weight: 500;
	font-size: var(--size-2);
	color: var(--color-text-2);
}

h2 {
	font-size: var(--size-3);
	color: var(--color-text-3);
	font-weight: 500;
	margin-bottom: 1.5rem;
}

p, ul, ol {
	font-weight: 300; 
	color: var(--color-text-3);
	line-height: 1.5; 
	margin-bottom: 1.5rem; 
}

li {
	margin: 0 0 0.5rem 1rem
}

header {
	padding: 0.8rem 2rem;
	text-align: center;
	background: var(--color-bg);
	border-bottom: 0.5px solid var(--color-border);
}

@media (max-width: 520px) {
	header {
		padding: 0.8rem 1rem;
	}
}

.menu {
    position: absolute;
    padding: 5px;
    top: 10px; 
    border-radius: 10px;
    cursor: pointer;
}

.menu span {
    display: block;
    height: 3px;
    width: 25px;
    background: var(--color-text-1);
    margin: 3px 0; 
    transition: 0.3s;
 }

.menu.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu.open span:nth-child(2) {
    opacity: 0;
}

.menu.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.dropmenu {
	position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    transition: 0.3s;
    text-align: center;
    font-size: var(--size-1);
    z-index: 100;
}
  
.dropmenu.active {
	left: 0;
}
  
.dropmenu a {
    display: block;
    padding: 20px 20px;
    color:  var(--color-text-3);
    text-decoration: none;
    font-style: italic;
    font-family: var(--font-big);
}

.dropmenu a:hover {
	color:  var(--color-text-3);
    font-style: normal;
    text-decoration: underline;
}

.dropmenu .bottom {
    font-size: var(--size-4);
    font-weight: 400;
    border-top: 0.5px solid var(--color-border);
    max-width: 600px;
    margin: 4rem auto 0;
}

/* footer */
footer {
	font-family: var(--font-small);
	font-size: var(--size-5);
	font-weight: 400;
	color: var(--color-text-4);
	margin-top: 3.5rem;
	padding: 0.7rem 0.5rem;
	border-top: 0.5px solid var(--color-border);
	text-align: center;
	letter-spacing: -0.05rem; 
}

/* install banner */
.install-banner {
	position: fixed; 
	bottom: 1.5rem;
	left: 50%; 
	transform: translateX(-50%);
	z-index: 200; 
	background: var(--color-bg);
	border: 0.5px solid var(--color-border); 
	border-radius: 100px;
	padding: 0.6rem 1rem;
	transition: opacity 0.4s ease; 
	font-size: var(--size-4);
	color: var(--color-text-1);
	font-family: var(--font-small); 
	opacity: 0;  
	visibility: hidden;
}
.install-banner.visible { 
	opacity: 1; 
	visibility: visible;
}

.install-btn {
	background: none; 
	border: 0.5px solid var(--color-border-mid);
	border-radius: 100px; 
	padding: 0.3rem 0.75rem; 
	margin: 0px 0.5rem;
	font-family: var(--font-small); 
	cursor: pointer;
}

.install-dismiss { 
	background: none; 
	border: none; 
	cursor: pointer; 
	font-family: var(--font-small); 
	padding: 0.25rem; 
}

 .page {
	width: 100%; 
	padding: 3rem 2rem 0; 
	min-height: 80vh;
}

.page  a {
	color: var(--color-text-2);
	text-decoration: underline;
	font-size: var(--size-4);
	font-style: italic;
}

.page  a:hover { 
	color: var(--color-text-1); 
	text-decoration: none;
	font-style: normal;
}

.page .step {
	display: none;
}

.page .step.active {
	display: block;
}

 .page .hero  {
	font-family: var(--font-big);
    font-size: var(--size-3);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-1);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.page .reflect {
	font-size: var(--size-3);
	color: var(--color-text-3);
	font-weight: 400;
	margin: 2.5rem 0 0.2rem;
	font-style: italic;
}

.page .divider {
    border: none;
   border-top: 0.5px solid var(--color-border);
	margin: 2.5rem 0;
}

.btn-next {
	font-family: var(--font-normal); 
	font-size: 14px; 
	font-weight: 400;
	color: var(--color-text-2); 
	background: none;
	border: 0.5px solid var(--color-border-mid); 
	border-radius: 100px;
	padding: 0.7rem 1.75rem; 
	cursor: pointer;
	margin-top: 2rem;
	transition: color 0.2s, border-color 0.2s;
	z-index: 200;
}

.btn-next:hover { 
	color: var(--color-text-1); 
	border-color: var(--color-text-3); 
}

.btn-back {
	font-family: var(--font-normal); 
	font-size: 14px;
	font-weight: 400;
	color: var(--color-text-3); 
	background: none;
	border: 0.5px solid var(--color-border); 
	border-radius: 100px;
	padding: 0.7rem 1.75rem; 
	cursor: pointer; 
	letter-spacing: 0.03em;
	margin-top: 2rem;
	transition: color 0.2s, border-color 0.2s;
}

.btn-back:hover { 
	color: var(--color-text-2); 
	border-color: var(--color-text-3); 
}

.answer-popup {
	display: none;
	margin: 2rem 0rem;
	border: 0.5px solid var(--color-border-mid);
    border-radius: 20px;
	padding: 0rem 1.5rem 0.6rem;
 }
 
 .answer-popup.visible { 
	display: block; 
}

.page textarea {
	font-family: var(--font-normal);
	font-size: var(--size-3);
	color: var(--color-text-3);
	line-height: 1.5; 
	font-weight: 300;
	background: transparent;
	border: 0.5px solid var(--color-border-mid);
	border-radius: 20px;
	padding: 1rem;
	width: 100%;
	margin-top: 0.6rem;
	min-height: 120px;
	line-height: 1.7;
	outline: none;
	overflow: hidden;
	resize: none;
}
