* { box-sizing: border-box; }
:root { --accent: #f6ddb1; --surface: #182d3b; color-scheme: dark; }
body { margin: 0; background: #101c25; color: #fff8eb; font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.top { width: min(100% - 2rem, 900px); margin: auto; padding: 1.15rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.wordmark { font: 1.3rem Georgia, serif; text-decoration: none; }
.top span, .note { color: #bdcbd1; font-size: .875rem; }
main { width: min(100% - 2rem, 900px); margin: 0 auto 2rem; }
.card { background: var(--surface); border: 1px solid #ffffff25; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 1.4rem 4rem #0004; }
.hero { height: clamp(180px, 36vw, 340px); background: var(--cover-background, #3e3632); }
.hero img { width: var(--cover-width, 100%); height: 100%; margin-inline: auto; display: block; object-fit: var(--cover-fit, cover); object-position: center 54%; }
.without-cover .hero, .logo[hidden] { display: none; }
.without-cover .intro {
  padding-top: clamp(2rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 19%, transparent), transparent 65%);
}
.intro, .details, .gallery, .sharing { padding-inline: clamp(1rem, 5vw, 3.4rem); }
.logo { display: block; position: relative; margin-top: -2.5rem; border: 4px solid var(--surface); border-radius: 1.45rem; }
.category { color: var(--accent); margin: .9rem 0 .25rem; font-size: .9rem; }
h1, h2 { font-family: var(--heading-font, Georgia, serif); font-weight: normal; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.7rem, 8vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: 1.65rem; }
.description, section p, .hours { color: #d8e2e5; }
.description { max-width: 42ch; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.45rem 0 2rem; }
.actions a, .social-buttons a, button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .6rem 1rem; border-radius: .7rem; border: 1px solid #ffffff53; background: transparent; color: inherit; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.actions a:hover, .social-buttons a:hover, button:hover { border-color: var(--accent); }
.actions .primary { color: #172630; background: var(--accent); border-color: var(--accent); }
.details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.65rem 3rem; padding-block: 1.65rem; border-block: 1px solid #ffffff2b; }
.details.single-column { grid-template-columns: minmax(0, 30rem); }
.details[hidden] { display: none; }
.hours, .specialties { list-style: none; margin: 1rem 0 0; padding: 0; }
.hours li { display: flex; gap: .5rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.hours strong { white-space: nowrap; }
.specialties li { padding: .25rem 0; }
.specialties li::before { content: '•'; color: var(--accent); margin-right: .65rem; }
.gallery { padding-block: 1.75rem; }
#gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1rem; }
#gallery img { width: 100%; height: auto; aspect-ratio: var(--gallery-ratio, 3/2); object-fit: cover; border-radius: .8rem; }
.sharing { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; background: #ffffff0a; padding-block: 1.75rem; }
#qr { width: min(100%, 144px); height: auto; display: block; border-radius: .5rem; image-rendering: pixelated; }
#status { margin: .4rem 0 0; }
#status input { max-width: 100%; font: inherit; }
.social-buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin: -1.25rem 0 2rem; }
.social-buttons[hidden] { display: none; }
.note { text-align: center; }
.technical .hero {
  height: clamp(160px, 34vw, 290px);
  display: grid;
  place-items: center;
  background-color: var(--cover-background);
  background-image:
    linear-gradient(#763e3014 1px, transparent 1px),
    linear-gradient(90deg, #763e3014 1px, transparent 1px);
  background-size: 24px 24px;
}
.technical .hero img { width: min(87%, 640px); height: auto; }
.technical .intro { padding-top: clamp(1.35rem, 4vw, 2.5rem); }
.technical .category { margin-top: 0; }
.technical h1, .technical h2 { font-weight: 650; }
.technical .actions .primary:hover { background: #ffb29d; }
@media (max-width: 550px) {
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions a { text-align: center; padding-inline: .3rem; }
  .details { grid-template-columns: 1fr; }
}
@media (max-width: 325px) { .actions, #gallery { grid-template-columns: 1fr; } }

.technical .actions, .technical .social-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 25rem);
  gap: .5rem;
  margin-inline: auto;
}
.technical .actions { margin-block: 1.15rem .5rem; }
.technical .intro:has(.social-buttons[hidden]) .actions { margin-bottom: 1.25rem; }
.technical .social-buttons { margin-block: 0 1.25rem; }
.technical .social-buttons[hidden] { display: none; }
.technical .social-buttons a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.technical .actions a, .technical .social-buttons a {
  padding-inline: .25rem;
  font-size: clamp(.875rem, 3.8vw, 1rem);
  text-align: center;
}
@media (max-width: 350px) {
  .technical .intro { padding-inline: .65rem; }
}
