/**
 * 全站基礎：元素重設、連結、標題、表單、輔助 class
 * 源自 Dyad 父主題（只保留實際用到的規則）。載入順序最先。
 *
 * @package Yafun2027
 */

[hidden] {
  display: none;
}

a:active,
a:hover {
  outline: 0;
}

button,
input[type="submit"] {
  appearance: button;
}

input[type="search"] {
  appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  appearance: none;
}

html {
  font-family: sans-serif;
  text-size-adjust: 100%;
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  font-size: 1.8rem;
  line-height: 1.62;
}

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

:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  text-decoration: underline;
}

a:focus {
  outline: dotted thin;
}

h1,
h2,
h3 {
  line-height: 1.38;
}

h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

h2,
h3 {
  clear: both;
}

h1 {
  clear: both;
  font-size: 5rem;
}

p {
  margin: 0;
  padding: 0 0 1.5em;
}

em {
  font-style: italic;
}

button,
input {
  border: 1px solid #ddd;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 100%;
  padding: 0.62em;
}

select {
  max-width: 100%;
}

button,
input[type="submit"] {
  background-color: #678db8;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  padding: 1em;
  transition: 0.3s;
}

button:hover,
input[type="submit"]:hover,
button:focus,
input[type="submit"]:focus,
button:active,
input[type="submit"]:active {
  opacity: 0.75;
}

button:active,
input[type="submit"]:active {
  opacity: 0.9;
}

input[type="text"],
input[type="search"] {
  appearance: none;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.6) 0 0 2px 2px;
  color: #21759b;
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  clip: auto !important;
}

.site-content::before,
.site-content::after {
  content: "";
  display: table;
}

.site-content::after {
  clear: both;
}

.site-content {
  overflow: hidden;
  backface-visibility: hidden;
}

.home .content-area,
.blog .content-area {
  background-color: #fff;
  margin-top: 37%;
  position: relative;
  z-index: 3;
}

.updated:not(.published) {
  display: none;
}

@media only screen and (max-width: 1600px) {
  .home .content-area,
  .blog .content-area {
    margin-top: 40%;
  }

}
@media only screen and (max-width: 1400px) {
  body {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 4rem;
  }

}
@media only screen and (max-width: 1200px) {
  body:not(.is-singular) .content-area,
  .home .content-area,
  .blog .content-area {
    margin-top: 0;
  }

}
@media only screen and (max-width: 960px) {
  .site-content {
    padding-top: 0 !important;
  }

}
@media only screen and (max-width: 680px) {
  body {
    font-size: 1.6rem;
  }

}
