:root {
  --bg: #fffdf9;
  --paper: #f5f2ed;
  --ink: #4f433f;
  --muted: #81756f;
  --soft-pink: #f6ded8;
  --lavender: #ded7e7;
  --footer: #8f7b72;
  --font-title: 20px;
  --font-body: 16px;
  --font-small: 14px;
  --radius-large: 20px;
  --radius-medium: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: var(--font-body);
  line-height: 1.75;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

p,
h1,
h2 {
  margin-top: 0;
}

.page-shell {
  width: min(calc(100% - 32px), 440px);
  margin-inline: auto;
  padding-top: 39px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.brand-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo,
.profile-logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand-logo {
  width: 100px;
  height: 100px;
}

.brand-intro p {
  margin: 15px 0 0;
  font-size: var(--font-title);
  font-weight: 500;
}

.hero-content {
  width: 100%;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
}

.hero-copy {
  padding: 22px 23px 0;
}

.hero-copy h1,
.card-body h2,
.usage h2,
.profile-copy h2 {
  font-size: var(--font-title);
  line-height: 1.5;
  font-weight: 600;
}

.hero-copy h1 {
  margin-bottom: 14px;
}

.hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--font-body);
}

.feature-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-top: 18px;
  font-size: var(--font-small);
}

.feature-meta p {
  margin-bottom: 0;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--paper);
}

.feature-meta time {
  color: var(--muted);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
  padding-block: 40px 48px;
}

.wallpaper-card {
  min-width: 0;
}

.preview-wrap {
  width: 100%;
}

.preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
}

.card-kicker,
.section-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--font-small);
  letter-spacing: 0.1em;
}

.card-body h2 {
  margin-bottom: 0;
}

.download-btn {
  min-height: 52px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: var(--ink);
  font-size: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.download-btn:focus-visible,
.instagram-link:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

.material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.usage {
  padding: 26px 24px;
  border-radius: var(--radius-large);
  background: var(--paper);
}

.usage h2 {
  margin-bottom: 18px;
}

.usage-copy {
  max-width: 620px;
}

.usage-copy > p {
  color: var(--muted);
}

.copyright-note {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(79, 67, 63, 0.14);
  font-size: var(--font-small);
}

.brand-profile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 28px 24px;
  background: var(--paper);
}

.profile-logo {
  width: 76px;
  height: 76px;
}

.profile-copy h2 {
  margin-bottom: 5px;
  font-size: var(--font-small);
}

.profile-copy p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: var(--font-small);
}

.instagram-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-small);
  font-weight: 500;
  text-decoration: none;
}

.instagram-link .material-symbols-rounded {
  font-size: 18px;
}

.site-footer {
  min-height: 76px;
  margin-top: 12px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--footer);
  font-size: var(--font-small);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .page-shell {
    width: min(calc(100% - 64px), 960px);
    padding-top: 48px;
  }

  .hero {
    gap: 56px;
  }

  .hero-content {
    width: min(100%, 780px);
  }

  .hero-copy {
    padding-inline: 28px;
  }

  .wallpaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-block: 48px 56px;
  }

  .usage {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
    gap: 40px;
    padding: 34px 30px;
  }

  .usage h2 {
    margin-bottom: 0;
  }

  .brand-profile {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 30px;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    width: min(calc(100% - 96px), 1120px);
    padding-top: 56px;
  }

  .hero {
    gap: 64px;
  }

  .hero-content {
    width: min(100%, 840px);
  }

  .wallpaper-grid {
    gap: 40px;
    padding-block: 64px;
  }

  .card-body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .download-btn {
    width: 180px;
  }

  .usage {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 56px;
    padding: 40px 36px;
  }

  .brand-profile {
    grid-template-columns: 76px minmax(0, 1fr);
    margin-top: 16px;
    padding: 32px 36px;
  }
}
