:root {
  color-scheme: light;
  --ink: #211b19;
  --night: #1b1819;
  --orange: #de421e;
  --amber: #fed70c;
  --peach: #fa9c6f;
  --paper: #fff0e3;
  --line: #ad4b30;
  --max: 70rem;
  font-family: "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--peach);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #145e87; outline-offset: 5px; }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }
.skip { position: absolute; inset: 1rem auto auto 1rem; z-index: 4; padding: .6rem 1rem; background: var(--amber); transform: translateY(-160%); }
.skip:focus { transform: none; }

.shell { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.masthead { border-bottom: 4px solid var(--amber); background: var(--night); color: #fff6e8; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { display: flex; align-items: center; gap: .8rem; line-height: 1.25; text-decoration: none; }
.brand img { flex: none; border-radius: 50%; }
.brand strong { display: block; font-size: 1.06rem; }
.brand small { display: block; margin-top: .35rem; font: 700 .75rem/1.3 system-ui, sans-serif; letter-spacing: .12em; color: #ffd57c; }
.masthead nav { display: flex; gap: 1.5rem; margin-left: auto; }
.masthead nav a { text-decoration: none; font-size: .95rem; font-weight: 700; }
.masthead nav a:hover { text-decoration: underline; }
.line-cta, .hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  flex-shrink: 0;
  min-height: 3.55rem;
  padding: .45rem 1.12rem .45rem .55rem;
  border: 2px solid var(--night);
  border-radius: .55rem;
  color: var(--night);
  background: var(--amber);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.line-cta:hover, .hero-contact:hover { background: #ffe870; }
.line-cta-small { min-height: 2.85rem; padding: .3rem .78rem .3rem .4rem; font-size: .94rem; }
.line-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}
.line-cta-small .line-mark { width: 2rem; height: 2rem; }

.hero {
  border-bottom: 2px solid var(--ink);
  background-color: var(--orange);
  background-image: radial-gradient(ellipse at 70% 0%, #ff9e55 0%, transparent 65%);
  color: #160b05;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 6vw, 5.7rem);
}
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.55rem); font-weight: 900; line-height: 1.12; }
.hero p { margin-block: 1rem 1.5rem; font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 650; }
.hero-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.3rem, 1.15vw, .8rem);
}
.hero-contact {
  min-height: 3.9rem;
  padding: .48rem .6rem;
  gap: .55rem;
  line-height: 1.22;
  white-space: normal;
  text-align: center;
}
.call-icon { background: var(--night); color: var(--paper); }
.call-label small { display: block; font-size: .91em; font-weight: inherit; }
.hero-art {
  width: 100%;
  height: auto;
  border: 3px solid var(--night);
  border-radius: .45rem;
  background: var(--night);
  box-shadow: 7px 7px 0 var(--amber);
}

.showcase { padding-block: clamp(2.35rem, 5vw, 4.5rem); }
.showcase-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.showcase h2, footer h2 { font-size: clamp(1.8rem, 3.9vw, 2.9rem); font-weight: 900; line-height: 1.25; }
.jump-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.jump-links a { border: 1px solid var(--ink); border-radius: 2rem; background: #ffc08c; padding: .4rem .85rem; font-size: .92rem; font-weight: 750; text-decoration: none; }
.jump-links a:hover { background: var(--amber); }
.category { margin-top: 1.55rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.category + .category { margin-top: 2.45rem; }
.category-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; margin-bottom: 1rem; }
.category h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 850; }
.category-heading p { font-size: .94rem; }
.category-heading .price { border: 1px solid var(--ink); background: var(--amber); padding: .35rem .64rem; border-radius: .27rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.work { overflow: hidden; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
.work-image { display: block; aspect-ratio: 1; background: var(--night); cursor: zoom-in; }
.work-image img { width: 100%; height: 100%; object-fit: contain; }
.work-image:hover img { filter: brightness(1.06); }
.work-image:focus-visible { outline-offset: -4px; outline-color: var(--amber); }
figcaption { display: grid; gap: .15rem; padding: .6rem .75rem .68rem; }
figcaption strong { font-size: 1rem; line-height: 1.35; }
figcaption span { font-size: .875rem; color: #5b3226; }

footer { border-top: 4px solid var(--amber); background: var(--night); color: #fff0dd; }
.footer-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 2.2rem; padding-block: 2.5rem; }
footer h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
footer p { margin: .5rem 0 1.15rem; color: #f6cdb9; }
.contact-details { display: grid; align-content: center; gap: .5rem; min-width: 0; }
.contact-details a { overflow-wrap: anywhere; text-underline-offset: .22em; }
.phone { font-size: 1.35rem; font-weight: 800; color: #ffda48; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.email button { border: 1px solid #fca678; color: #fff4df; background: transparent; border-radius: .32rem; padding: .32rem .6rem; cursor: pointer; font-weight: 700; }
.email button:hover { background: #51332a; }
.copy-status { color: #ffda48; }
.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
}
.social-icon svg { width: 1.5rem; height: 1.5rem; }
.social-icon.facebook { color: #fff; background: #0866ff; }
.social-icon.instagram { color: #fff; background: linear-gradient(145deg, #8042bd, #bd286c 54%, #cc631f); }
.social-icon.maps { background: #fff3e4; }

dialog { width: min(54rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 2px solid var(--night); border-radius: .7rem; background: var(--paper); color: var(--night); padding: .65rem; }
dialog::backdrop { background: rgb(20 12 7 / 83%); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .2rem .35rem .5rem; }
.dialog-header h2 { font-size: 1.13rem; }
.dialog-header button { width: 2.5rem; height: 2.5rem; border: 1px solid var(--night); border-radius: 50%; background: var(--amber); cursor: pointer; font-size: 1.5rem; line-height: 1; }
#image-full { max-height: 76dvh; margin-inline: auto; object-fit: contain; }

@media (max-width: 52rem) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-art { max-width: 46rem; }
  .desktop-break { display: none; }
  .footer-layout { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .7rem;
    row-gap: .55rem;
    padding-block: .65rem .55rem;
  }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; margin-left: 0; padding-block: .2rem; }
  .masthead .line-cta-small { grid-column: 2; grid-row: 1; }
  .hero-contact {
    flex-direction: column;
    gap: .35rem;
    min-height: 5rem;
    padding: .44rem .2rem;
    font-size: clamp(.75rem, 2.7vw, .94rem);
  }
  .hero-contact .social-icon { width: 1.9rem; height: 1.9rem; }
  .hero-contact .social-icon svg { width: 1.2rem; height: 1.2rem; }
  .brand { gap: .5rem; }
  .brand img { width: 2.6rem; height: 2.6rem; }
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .63rem; }
  .line-cta-small .line-mark { width: 2.5rem; height: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  figcaption { padding: .5rem; }
  figcaption strong { font-size: .9rem; }
  .hero-art { box-shadow: 4px 4px 0 var(--amber); }
}
@media (max-width: 22rem) {
  .line-cta-small { padding-right: .52rem; font-size: .8rem; gap: .38rem; }
  .brand small { display: none; }
}
