* {
  box-sizing: border-box;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

:root {
  color-scheme: light;
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --glow-main: rgba(200, 50, 60, 0.10);
  --glow-edge: rgba(200, 50, 60, 0.035);
  --red: #7B0E16;
  --ink: #222222;
  --ink-muted: #707074;
  --date-bg: var(--red);
  --date-ink: var(--surface);
  --date-dot: var(--surface);
  --link-blue: #0051BA;
  --hairline: #DDDFE2;
  --radius-panel: 12px;
  --radius-button: 12px;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(20px, 4.75vw, 76px);
  color: var(--ink);
  background: var(--bg);
  word-break: normal;
  overflow-wrap: break-word;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-background::before,
.page-background::after {
  position: absolute;
  inset: -8%;
  content: '';
  filter: blur(28px);
}

.page-background::before {
  background: radial-gradient(
    ellipse 64% 62% at 0% 0%,
    var(--glow-main) 0%,
    var(--glow-edge) 35%,
    transparent 70%
  );
}

.page-background::after {
  opacity: 0.5;
  background: radial-gradient(
    ellipse 56% 52% at 100% 100%,
    var(--glow-main) 0%,
    var(--glow-edge) 32%,
    transparent 70%
  );
}

.panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr);
  width: min(100%, 1200px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
}

.maintenance,
.social,
.maintenance-copy,
.profile-copy {
  min-width: 0;
}

.maintenance {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 2.65vw, 40px);
  padding: clamp(32px, 3vw, 46px) clamp(28px, 3.9vw, 60px);
}

.unit-heading {
  padding: 4px 0 4px 12px;
  border-inline-start: 10px solid var(--red);
}

.unit-name {
  font-size: clamp(1.25rem, 1.85vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
}

.unit-name-en {
  font-size: clamp(0.625rem, 0.95vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.45;
}

h1 {
  margin-top: clamp(28px, 2.1vw, 34px);
  font-size: clamp(2.125rem, 3.25vw, 3.25rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
}

h1 > span,
.message > span,
.social-intro > span {
  display: block;
}

.message {
  max-width: 46ch;
  margin-top: clamp(24px, 1.65vw, 26px);
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.28vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.85;
}

.updated {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 9px 16px;
  color: var(--date-ink);
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.6;
  background: var(--date-bg);
  border-radius: 0;
}

.updated::before {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  content: '';
  background: var(--date-dot);
  border-radius: 50%;
}

.social {
  padding: clamp(28px, 3vw, 46px);
  color: var(--surface);
  background: var(--red);
}

.social-intro {
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
}

.profile {
  display: flex;
  gap: clamp(14px, 1.25vw, 18px);
  align-items: center;
  margin-top: 24px;
}

.profile img {
  display: block;
  flex: 0 0 auto;
  width: clamp(48px, 3.75vw, 60px);
  height: auto;
  border-radius: 50%;
}

.profile-name {
  font-size: clamp(1.0625rem, 1.48vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
}

.profile-detail {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
}

.facebook-link {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  padding: 15px 20px;
  color: var(--link-blue);
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-button);
  transition: background-color 160ms ease, transform 160ms ease;
}

.facebook-link > span {
  flex: 1;
  text-align: center;
}

.facebook-link > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.contact-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.68);
}

.contact-details h2 {
  font-size: clamp(1.125rem, 1.2vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.5;
}

.contact-details address {
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.contact-link {
  display: flex;
  gap: clamp(14px, 1.2vw, 18px);
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 4px;
}

.contact-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.contact-link > span {
  min-width: 0;
}

.contact-email > span {
  overflow-wrap: anywhere;
}

.facebook-link:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid var(--surface);
  outline-offset: 5px;
}

@media (hover: hover) {
  .facebook-link:hover {
    background: #EDF3FD;
    transform: translateY(-1px);
  }

  .contact-link:hover > span {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 860px) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }

  .maintenance,
  .social {
    padding: clamp(28px, 5.5vw, 44px);
  }

  .unit-name {
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  }

  .unit-name-en {
    font-size: clamp(0.625rem, 1.7vw, 0.9375rem);
  }

  h1 {
    font-size: clamp(2.125rem, 5.8vw, 3.25rem);
  }

  .message {
    font-size: clamp(1rem, 2.35vw, 1.1875rem);
  }

  .profile-name {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }

  .message > span,
  .social-intro > span {
    display: inline;
  }
}

@media (max-width: 480px) {
  .unit-heading {
    padding-inline-start: 10px;
    border-inline-start-width: 7px;
  }

  h1 {
    font-size: clamp(1.75rem, 8.25vw, 2.375rem);
  }

  .updated {
    gap: 10px;
    padding-inline: 14px;
  }

  .updated::before {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }

  .facebook-link {
    padding: 16px 18px;
  }

  .contact-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facebook-link {
    transition: none;
  }

  .facebook-link:hover {
    transform: none;
  }
}
