@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTWFull";
  src: url("./SourceHanSansTW-Normal.otf") format("opentype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f6e9c8;
  --paper-soft: #fff7e5;
  --line: #201914;
  --ink: #15110d;
  --muted: #766858;
  --jade: #285f50;
  --red: #b84124;
  --shadow: 0 18px 38px rgba(36, 26, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 25, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 25, 20, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--jade);
}

.store-content {
  width: min(1120px, calc(100% - 32px));
  margin: 48px auto;
}

.store-content__panel {
  border: 2px solid var(--line);
  background: rgba(255, 247, 229, 0.94);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px);
}

.store-content h1,
.store-content h2,
.store-content h3 {
  letter-spacing: 0;
}

.store-content .woocommerce {
  font-family: inherit;
}

.store-content .woocommerce-error,
.store-content .woocommerce-info,
.store-content .woocommerce-message {
  border-top-color: var(--jade);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.store-content .woocommerce-error::before,
.store-content .woocommerce-info::before,
.store-content .woocommerce-message::before {
  color: var(--jade);
}

.store-content .button,
.store-content button.button,
.store-content input.button,
.store-content #place_order {
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--jade);
  color: #fff;
  font-weight: 700;
  padding: 0.75em 1.2em;
}

.store-content .button:hover,
.store-content button.button:hover,
.store-content input.button:hover,
.store-content #place_order:hover {
  background: var(--line);
  color: #fff;
}

.store-content input.input-text,
.store-content textarea,
.store-content select {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  min-height: 42px;
  padding: 8px 10px;
}

.store-content table.shop_table {
  border: 2px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
}

.store-content table.shop_table th,
.store-content table.shop_table td {
  border-top-color: rgba(32, 25, 20, 0.24);
}

.store-content .penguin-digital-delivery {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  padding: 10px 12px;
  line-height: 1.55;
}

.store-content .penguin-digital-delivery a {
  color: var(--jade);
  font-weight: 700;
}

.store-content .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-content .woocommerce-MyAccount-navigation a {
  display: block;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-decoration: none;
}

.store-content .woocommerce-MyAccount-navigation .is-active a {
  background: var(--line);
  color: var(--paper-soft);
}

.store-notice {
  display: grid;
  gap: 18px;
}

.store-notice h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
}

.store-notice p {
  margin: 0;
  color: var(--muted);
}

.store-notice #loginform {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.store-notice #loginform p {
  display: grid;
  gap: 6px;
}

.store-notice #loginform input[type="text"],
.store-notice #loginform input[type="password"] {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  min-height: 42px;
  padding: 8px 10px;
}

.store-notice #loginform input[type="submit"] {
  border: 2px solid var(--line);
  background: var(--jade);
  color: #fff;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .store-content {
    width: min(100% - 20px, 1120px);
    margin: 20px auto;
  }

  .store-content__panel {
    padding: 16px;
  }
}
