:root {
    font-size: 16px;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: "Open Sans", system-ui;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

.container {
    position: relative;
    width: 100%;
    max-width: 37.5rem;
    text-align: center;
    margin: 0 auto;
    padding: 3rem 1.25rem 0 1.25rem;
    box-sizing: border-box;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.column {
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 可選 */
}

.container-left p {
    margin-bottom: 1rem;
}

.poem {
  text-align: center;
  margin-left: 1rem;
  font-size: 1.2rem;
  line-height: 2;
  overflow: hidden;
  color: #5e5e5e;
}

.poem span {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  animation: fadeInSlideUp 1.5s forwards;
}

/* 各行細部調整 */
.poem span:nth-child(1) {
  animation-delay: 0.2s;
  font-weight: 300;
}
.poem span:nth-child(2) {
  animation-delay: 1.2s;
  font-weight: 400;
}
.poem span:nth-child(3) {
  animation-delay: 2.2s;
  font-weight: 500;
}
.poem span:nth-child(4) {
  animation-delay: 3.2s;
  font-weight: 500;
}

/* 動畫 */
@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
  }
}


@media (min-width:25rem) {
    .container {
        width: 85%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width:34.375rem) {
    .container {
        width: 80%;
    }

    .column,
    .columns {
        margin-left: 0;
    }

    .column:first-child,
    .columns:first-child {
        margin-left: 0;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: "Open Sans", system-ui;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 3rem;
    /* 48px */
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.container p {
    margin: 0 0 2rem 0;
}

:root {
    font-size: 16px;
    --scale-0: 1rem;
    --scale-1: 1.25rem;
    --scale-2: 1.563rem;
    --scale-3: 1.953rem;
    --scale-4: 2.441rem;
    --scale-5: 3.052rem;

    --spacing-xs: 0.5rem;
    --spacing-s: 1rem;
    --spacing-m: 1.5rem;
    --spacing-l: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

.avatar {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    background-position: center;
    margin-bottom: var(--spacing-l);
    margin-left: auto;
    margin-right: auto;
    display: block;
}

h1 {
    margin: 0 0 var(--spacing-m) 0;
    font-size: var(--scale-5);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    font-size: var(--scale-1);
    line-height: 1.6;
}

.container p {
    margin: 0 0 var(--spacing-xl) 0;
    font-size: var(--scale-1);
    line-height: 1.6;
}

.container {
    padding: var(--spacing-xl) var(--spacing-m) 0 var(--spacing-m);
    text-align: center;
}

footer {
    margin: var(--spacing-xxl) 0;
    font-size: var(--scale-0);
    color: #7e7e7e;
}

@media (max-width:34.375rem) {
    h1 {
        font-size: var(--scale-4);
    }

    body {
        font-size: var(--scale-0);
    }

    .container p {
        font-size: var(--scale-0);
    }

    .avatar {
        margin-bottom: var(--spacing-m);
    }

    footer {
        margin: var(--spacing-xl) 0;
    }
}

a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #083BDA;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18.75rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    white-space: normal;
    background-color: var(--button-background, transparent);
    color: var(--button-text, #000000);
    border: var(--button-border, none);
    border-radius: 0.5rem;
    cursor: pointer;
    box-sizing: border-box;
    hyphens: auto;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.avatar {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    background-position: center;
    margin-bottom: var(--spacing-l);
}

.avatar--none {
    border-radius: 0%;
}

.avatar--rounded {
    border-radius: 50%;
}

.avatar--soft {
    border-radius: 0.5rem;
}


:root.theme-dark {
    color-scheme: dark;
}

:root.theme-dark :focus-visible {
    outline: 2px solid #4899F7;
    outline-offset: 2px;
}

:root.theme-dark body {
    background-color: #121212;
    color: #ffffff;
}

:root.theme-dark a:not(.button) {
    color: #4899F7;
}

:root.theme-dark a:not(.button):hover {
    color: #7AB8FF;
}

:root.theme-auto {
    color-scheme: light dark;
}

@media (prefers-color-scheme:dark) {
    :root.theme-auto body {
        background-color: #121212;
        color: #ffffff;
    }

    :root.theme-auto :focus-visible {
        outline: 2px solid #4899F7;
        outline-offset: 2px;
    }

    :root.theme-auto a:not(.button) {
        color: #4899F7;
    }

    :root.theme-auto a:not(.button):hover {
        color: #7AB8FF;
    }
}

.button:hover,
button:hover {
    color: var(--button-text);
}

@media (max-width:34.375rem) {
    h1 {
        font-size: 2rem;
    }

    body {
        font-size: 1rem;
    }
}

nav {
    margin: var(--spacing-l) 0;
    text-align: left;
}

section {
    margin: var(--spacing-xl) 0;
    text-align: left;
}

h2 {
    font-size: var(--scale-3);
    font-weight: 700;
    margin-bottom: var(--spacing-m);
}

h3 {
    font-size: var(--scale-2);
    font-weight: 600;
    margin: var(--spacing-l) 0 var(--spacing-s) 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-m) 0;
}

ul li {
    margin-bottom: var(--spacing-xs);
}

@media (max-width:34.375rem) {
    h2 {
        font-size: var(--scale-2);
    }

    h3 {
        font-size: var(--scale-1);
    }

    section {
        margin: var(--spacing-l) 0;
    }
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot');
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf') format('truetype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot');
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.ttf') format('truetype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot');
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf') format('truetype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.svg#OpenSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot');
    src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff2') format('woff2'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff') format('woff'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.ttf') format('truetype'), url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.svg#OpenSans') format('svg');
}