body {
  font-family: opensans;
}

:root {
  font-size: 18px;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  display: grid;
  min-height: 100vh;
  grid-auto-rows: min-content 1fr min-content;
  margin: 0;
}

body > header {
  text-align: center;
  padding: 0 2em;
}



body > header > h1 + img {
  max-width: 80%;
  border-radius: 50%;
}

body > main {
  margin: 0 auto 3em;
  width: 100%;
  max-width: 1280px;
  padding: 0 2em;
}

@media (max-width: 640px) {
  body > header {
    padding: 0 1em;
  }
  body > main {
    padding: 0 1em;
  }
}

/* body > .home {
  padding: 0 2em;
} */

body > footer {
  text-align: center;
  padding: 1ch;
}

.copyright {
  font-family: 'Zen Old Mincho';
  font-size: 14px;
  margin: 32px;
  color: #9b9b9b;
}

ul, li {
  text-decoration: none;
  color: inherit;
  line-height: 1.8;
  margin-bottom: 12px;
}

a {
  text-decoration: none;
}

.navbar {
  display: flex;
  margin: 0 auto;
  padding: 75px 0px;
  max-width: 1200px;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar img {
  width: 40px;
  margin: 8px;
}

.navbar .logo-text {
  font-size: 44px;
  font-weight: 600;
  font-family: 'outfit';
}

.navbar a {
  text-decoration: inherit;
  color: #979797;
  font-weight: 300;
  font-size: 14px;
  transition: 0.3s;
}

.navbar a:hover {
  opacity: 0.5;
}

.navbar .items {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 768px) {
  .navbar .items {
    display: none;
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* Show on small screen */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

/* Drawer 背景 */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.08); /* 半透明背景 */
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* Drawer 內容滑入動畫 */
.drawer-content {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  background: #ffffff89;
  padding: 2rem;
  padding-top: 3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: top 0.4s ease;
}

/* Drawer 開啟狀態 */
.mobile-drawer.show .drawer-content {
  top: 0;
}

/* 隱藏 */
.mobile-drawer.hidden {
  display: none;
}

.drawer-nav-items {
  justify-content: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: auto;
  text-align: right;
}

.drawer-nav-item > a {
  font-weight: 100;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@font-face {
	font-family: opensans;
	src: url('/fonts/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf') format('trueType');
	font-display: swap;
}
@font-face {
	font-family: outfit;
	src: url('/fonts/Outfit/Outfit-VariableFont_wght.ttf') format('trueType');
	font-display: swap;
}

@font-face {
  font-family: 'Zen Old Mincho';
  src: url('/fonts/Zen_Old_Mincho/ZenOldMincho-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Zen Old Mincho';
  src: url('/fonts/Zen_Old_Mincho/ZenOldMincho-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Zen Old Mincho';
  src: url('/fonts/Zen_Old_Mincho/ZenOldMincho-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Zen Old Mincho';
  src: url('/fonts/Zen_Old_Mincho/ZenOldMincho-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Zen Old Mincho';
  src: url('/fonts/Zen_Old_Mincho/ZenOldMincho-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
