:root {
  --bg: #fbfde6; /* main page background (very light yellow-green) */
  --bg-alt: #f4ffe9; /* alternate section background */
  --card: #ffffff; /* card background */
  --border: #d5e8b8; /* soft green border */
  --accent: #6bcb77; /* main accent green */
  --accent-soft: rgba(107, 203, 119, 0.16);
  --accent-yellow: #ffd93d; /* secondary accent yellow */
  --text: #27313a; /* main text */
  --muted: #66727f; /* secondary text */
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 16px 36px rgba(170, 190, 120, 0.25);
  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(
    circle at top left,
    #fdfdd1 0,
    #fbfde6 40%,
    #f4ffe9 100%
  );
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(135deg, rgba(107, 203, 119, 0.08), transparent);
}
/* .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
} */

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(252, 255, 240, 0.9);
  border-bottom: 1px solid rgba(213, 232, 184, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
}

.header-left,
.header-right {
  flex: 0 0 auto;
}

.nav {
  flex: 1; /* 吃掉中間所有寬度 */
  display: flex;
  justify-content: center; /* 把 nav links 置中 */
}

.nav a {
  margin-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  margin-right: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  background: var(--accent);
  content: "";
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  position: absolute;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Profile */
.hero {
  padding-top: 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
}

/* Primary (green) + secondary (yellow) button */
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #53b665);
  color: #f9fff8;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(107, 203, 119, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(107, 203, 119, 0.6);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-color: rgba(213, 232, 184, 0.9);
}

.btn.ghost:hover {
  border-color: var(--accent-yellow);
  background: rgba(255, 252, 230, 0.95);
}

.hero-contact {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 217, 61, 0.28),
      transparent 55%
    ),
    var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(213, 232, 184, 0.9);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.profile-card {
  width: 400px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.profile-banner {
  height: 120px;
  background-color: #c9c9c9;
  background-image: url("../pics/background.jpg");
  background-size: cover;
  background-position: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  margin: -60px auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-info {
  padding: 0 20px 30px 20px;
}

.profile-info .email {
  font-size: 1em;
  color: #787878;
  margin-bottom: 25px;
}

.profile-info .quote {
  font-style: italic;
  color: #555;
  margin: 15px 0 30px 0;
  line-height: 1.5;
  padding: 0 10px;
}

/* Sections */

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

/* Cards */

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.card-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.card-meta {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.card-body {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.card-list {
  margin: 0.2rem 0 0.3rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}

.card-list li + li {
  margin-top: 0.25rem;
}

.card-links {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.card-links a {
  color: var(--accent);
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
}

.card-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.skills-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.skills-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* Contact  */

.contact-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

#contact .container {
  max-width: 960px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(213, 232, 184, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.contact-info-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-info-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.8rem 1.9rem 2rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(213, 232, 184, 0.9);
}

.contact-field {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #e0f0d5;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #4b5563;
  font-style: italic;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #f2faec;
}

.contact-submit {
  display: inline-flex;
  margin-top: 0.6rem;
  padding-inline: 2.3rem;
  border-radius: 999px;
}

/* Footer */
.social-icons a {
  font-size: 1.3em;
  margin-left: 15px;
  color: #555;
}

.social-icons a:hover {
  color: black;
}

footer {
  background: #f4ffe9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  text-align: center;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(213, 232, 184, 0.9);
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .nav a {
    margin-left: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    margin-top: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
    margin-right: 50px;
    border-radius: 50%;
    overflow: hidden;
    background:
      radial-gradient(
          circle at center,
          #fcebaf 0%,
          #fcebaf 90%,
          transparent 90.1%
        )
        no-repeat center center / 100% 100%,
      /* 內圈與背景同色 */
        linear-gradient(
          45deg,
          #ffdc80,
          #fcaf45,
          #fd1d1d,
          #e1306c,
          #c13584,
          #833ab4,
          #405de6
        ); /* 外圈彩虹漸變色 */
    padding: 5px;
    box-shadow: 0 0 0 3px #fcebaf; /* 外層的白色邊框，與背景色相同製造內圈效果 */
    position: relative; /* 為了讓圖片定位在中間 */
  }

  .profile-info h1 {
    font-size: 2em;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-meta {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

/* Manchester Life page */

/* hero */

.life-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.life-hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
}

.life-hero-text p {
  margin: 0;
  color: var(--muted);
}

.life-hero-photo img {
  width: 100%;
  max-height: 300px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* cooking + weather layout */

.life-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.life-grid h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.life-intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.life-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}

.life-photo-card {
  margin: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(213, 232, 184, 0.8);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.life-photo-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.life-photo-card figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* 讓 cooking 的 grid 稍微密一點，方便放多張 (最多 20 張) */
.cooking-grid .life-photo-card img {
  height: 150px;
}

/* Weather panel */

.weather-panel {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(213, 232, 184, 0.9);
  padding: 1.6rem 1.7rem 1.8rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.weather-panel h2 {
  margin: 0 0 0.6rem;
}

.weather-subtitle {
  margin: 1.2rem 0 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.weather-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(107, 203, 119, 0.12),
    rgba(255, 217, 61, 0.12)
  );
}

.weather-today-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.weather-icon img {
  width: 60px;
  height: 60px;
}

.weather-today-temp {
  font-size: 2.1rem;
  font-weight: 600;
}

.weather-today-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.weather-today-meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.weather-week {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}

.weather-day {
  border-radius: 14px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  background: #f4ffe9;
  font-size: 0.8rem;
}

.weather-day-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.weather-day-temp {
  margin-top: 0.2rem;
}

/* Activities on Manchester page */

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 1.4rem;
}

.activity-card {
  background-color: #ffffff;
  color: #444;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.3em;
  color: #262626;
  margin-bottom: 10px;
  line-height: 1.25;
}

.tag-group {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #777;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 500;
}

/* Footer */

.social-icons a {
  font-size: 1.3em;
  margin-left: 15px;
  color: #555;
}

.social-icons a:hover {
  color: black;
}

footer {
  background: #f4ffe9;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  text-align: center;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(213, 232, 184, 0.9);
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
  }

  .nav a {
    margin-left: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .profile-card {
    margin-top: 1.5rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-meta {
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  #contact .container {
    max-width: 100%;
  }

  .life-hero,
  .life-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}
