@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@700;800&family=Sarabun:wght@400;500;600;700&display=swap');

.welcome {
  --forest: #15392d;
  --sage: #52724e;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #152b23;
  font-family: Sarabun, sans-serif;
  background: #f6f5ef;
}
.welcome *, .welcome *::before, .welcome *::after { box-sizing: border-box; }
.welcome button, .welcome input { font: inherit; }
.welcome button { cursor: pointer; }
.welcome :focus-visible { outline: 2px solid #376652; outline-offset: 4px; }
.site-header, .hero, .site-footer { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.site-header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #a0aaa2;
}
.wordmark { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.school-logo { width: 68px; height: 68px; border-radius: 50%; flex: none; }
.wordmark-text { display: grid; padding-inline-start: 14px; border-inline-start: 1px solid #9aa99e; }
.wordmark-text strong { font-size: 23px; line-height: 1.2; }
.wordmark-text span { margin-top: 3px; font-size: 14px; }
.quiet, .primary { min-height: 48px; border-radius: 10px; padding: 10px 18px; font-weight: 700 !important; }
.quiet { background: transparent; color: var(--forest); border: 1px solid var(--forest); flex: none; }
.quiet:hover { background: #e8ece3; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; color: #fff; background: var(--forest); }
.primary:hover { background: #214c3b; }
.primary svg { width: 24px; height: 24px; transition: transform .18s ease; }
.primary:hover svg { transform: translateX(4px); }
.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 36px; padding-block: 32px; }
.hero h1 { font-family: "Noto Serif Thai", Sarabun, serif; font-size: clamp(44px, 6vw, 82px); font-weight: 800; line-height: 1.24; color: var(--forest); margin: 0; }
.hero h1 span { color: var(--sage); }
.hero-copy p { max-width: 440px; margin: 20px 0 30px; font-size: 19px; line-height: 1.65; }
.hero-copy .primary { min-width: 225px; min-height: 56px; font-size: 18px; }
.hero-copy small { display: block; margin-top: 12px; color: #42594d; font-size: 14px; }
.product { position: relative; margin: 0; }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; }
.product figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  border: 1px solid #fff9;
  border-radius: 14px;
  color: #132c23;
  background: #f6f5e9de;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px #14271d2b;
  font-size: 17px;
  font-weight: 700;
}
.product figcaption svg { width: 30px; height: 30px; flex: none; }
.product figcaption span { border-inline-start: 1px solid #819086; padding-inline-start: 14px; }
.site-footer { border-top: 1px solid #a0aaa2; padding-block: 14px 20px; font-size: 14px; }
@media (min-width: 701px) {
  .welcome { grid-template-rows: auto auto 1fr; }
  .site-footer { align-self: start; }
}
@media (max-width: 900px) {
  .site-header, .hero, .site-footer { width: calc(100% - 48px); }
  .hero { gap: 24px; }
}
@media (max-width: 700px) {
  .site-header, .hero, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 83px; }
  .school-logo { width: 44px; height: 44px; }
  .wordmark { gap: 8px; }
  .wordmark-text { padding-inline-start: 8px; }
  .wordmark-text strong { font-size: 17px; }
  .wordmark-text span { font-size: 11px; }
  .quiet { padding-inline: 10px; font-size: 13px !important; }
  .hero { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 26px; padding-block: 25px; }
  .hero h1 { font-size: 44px; }
  .hero-copy p { margin: 13px 0 20px; font-size: 17px; }
  .hero-copy .primary { width: 100%; min-width: 0; min-height: 50px; }
  .hero-image { aspect-ratio: 1.3; border-radius: 15px; }
  .product figcaption { right: 9px; bottom: 9px; gap: 9px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
  .product figcaption svg { width: 22px; height: 22px; }
  .product figcaption span { padding-inline-start: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: landing-enter .46s ease-out both; }
  .product { animation: landing-enter .58s .08s ease-out both; }
  .product figcaption { animation: landing-enter .42s .26s ease-out both; }
  @keyframes landing-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary svg { transition: none; }
  .primary:hover svg { transform: none; }
}

.welcome dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 28px; border: 1px solid #fff; border-radius: 22px; background: #f5f8f3; color: inherit; box-shadow: 0 24px 80px #142b3140; }
.welcome dialog::backdrop { background: #18362d59; backdrop-filter: blur(5px); }
.welcome dialog h2 { margin: 0 48px 20px 0; }
.welcome dialog label { display: grid; gap: 6px; margin-bottom: 14px; }
.welcome dialog input { min-height: 48px; width: 100%; border-radius: 10px; border: 1px solid #859c90; padding: 8px 12px; background: #fff; }
.welcome dialog .primary { width: 100%; }
.close { position: absolute; right: 14px; top: 14px; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: #e4ece5; color: inherit; }
.form-message { color: #8b3028; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
