:root {
  color-scheme: dark;
  --bg: #101a17;
  --panel: #17241f;
  --text: #f2f0e9;
  --muted: #a8b0a9;
  --gold: #c9a86a;
  --line: rgba(242, 240, 233, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 12%, rgba(201, 168, 106, .09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: -1px;
}
.brand-name { font-size: 13px; font-weight: 650; letter-spacing: .15em; }
.brand-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .3em; }
.nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 13px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.nav a:last-child { color: var(--text); }
.nav span { color: var(--gold); margin-left: 5px; }

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 90px;
  padding-block: 76px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }
h1 {
  margin: 0;
  font-size: clamp(50px, 6.1vw, 82px);
  font-weight: 450;
  line-height: .99;
  letter-spacing: -.055em;
}
h1 em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; }
.lead { max-width: 520px; margin: 30px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 37px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 21px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.button.primary { border-color: var(--gold); background: var(--gold); color: #142019; }
.button.primary:hover { background: #ddc08a; }
.button.secondary:hover { border-color: var(--gold); }
.button.secondary { color: var(--muted); }

.workspace-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, .35);
  background: linear-gradient(145deg, rgba(201, 168, 106, .07), transparent 55%), var(--panel);
  box-shadow: 25px 25px 0 rgba(0, 0, 0, .09);
}
.workspace-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: 45px;
  border: 1px solid rgba(201, 168, 106, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(201, 168, 106, .025), 0 0 0 90px rgba(201, 168, 106, .018);
}
.card-top { position: relative; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.status { color: var(--gold); }
.status i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--gold); }
.monogram { position: relative; margin-top: 55px; font-family: Georgia, serif; font-size: 128px; line-height: 1; letter-spacing: -.12em; }
.monogram span { color: var(--gold); }
.card-caption { position: absolute; left: 28px; bottom: 30px; }
.card-caption p { margin: 0 0 7px; font-family: Georgia, serif; font-size: 20px; }
.card-caption span { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.card-lines { position: absolute; right: 28px; bottom: 35px; display: grid; gap: 6px; }
.card-lines span { display: block; width: 35px; height: 1px; background: var(--gold); }
.card-lines span:nth-child(2) { width: 22px; margin-left: auto; opacity: .6; }
.card-lines span:nth-child(3) { width: 12px; margin-left: auto; opacity: .3; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles article { padding: 37px 34px 42px 0; }
.principles article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.number { color: var(--gold); font-family: Georgia, serif; font-size: 12px; }
.principles h2 { margin: 15px 0 10px; font-size: 19px; font-weight: 500; }
.principles p { max-width: 275px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer { display: flex; justify-content: space-between; padding-block: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer a:hover { color: var(--gold); }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.error-page main { padding: 40px 20px; }
.error-page h1 { font-size: clamp(64px, 14vw, 130px); }
.error-page p { margin: 25px 0 35px; color: var(--muted); }

html:lang(th) body { font-family: "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif; }
html:lang(th) h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.25; letter-spacing: -.035em; }
html:lang(th) h1 em { font-family: inherit; font-style: normal; }
html:lang(th) .eyebrow { letter-spacing: .06em; }
html:lang(th) .card-caption p { font-family: inherit; }
html:lang(th) .card-caption span { letter-spacing: .06em; }
html:lang(th) .button { line-height: 1.5; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-block: 65px; }
  .hero-copy { max-width: 650px; }
  .workspace-card { width: min(100%, 480px); min-height: 340px; }
  .monogram { margin-top: 40px; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 38px, 1160px); }
  .header { min-height: 88px; }
  .nav a:first-child { display: none; }
  .nav { font-size: 11px; }
  .brand-name { font-size: 11px; }
  .hero { min-height: 0; padding-block: 52px 58px; }
  h1 { font-size: clamp(47px, 14vw, 67px); }
  .lead { font-size: 15px; }
  .actions { align-items: stretch; flex-direction: column; }
  .workspace-card { min-height: 325px; padding: 23px; }
  .card-caption { left: 23px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { padding: 27px 0; }
  .principles article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles p { max-width: 100%; }
  .footer { gap: 15px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
