/* Benedict Group s.r.o. — company site
   Palette derived from the group's own venue branding:
   bottle-glass green ground, brass accent, porcelain enamel plate. */

:root {
  --ink: #101a16;
  --ink-2: #16241e;
  --ink-3: #1d2f27;
  --green: #2e6e5a;
  --brass: #ce9852;
  --brass-dim: #a8763a;
  --porcelain: #f2efe6;
  --muted: #94a69d;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 940px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(
    120% 70% at 50% -10%,
    rgba(46, 110, 90, 0.38),
    transparent 60%
  );
  background-repeat: no-repeat;
  color: var(--porcelain);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--porcelain);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--porcelain);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
}

/* ---------- top bar ---------- */

.bar {
  border-bottom: 1px solid rgba(242, 239, 230, 0.1);
  background: rgba(16, 26, 22, 0.86);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--porcelain);
  text-decoration: none;
}

.wordmark span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover {
  color: var(--porcelain);
}

.lang [aria-current="true"] {
  color: var(--porcelain);
}

.lang__sep {
  color: rgba(242, 239, 230, 0.25);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
}

.hero h1 em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1.1rem;
}

/* Legal and error pages: same hero, quieter headline. */
.hero--legal h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.lede {
  max-width: 46ch;
  margin: 1.75rem 0 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  line-height: 1.6;
  color: rgba(242, 239, 230, 0.86);
}

/* ---------- registry plate (signature element) ---------- */

.plate {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--porcelain);
  color: var(--ink);
  border: 1px solid var(--brass-dim);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 4px rgba(16, 26, 22, 0.06),
    0 18px 40px -24px rgba(0, 0, 0, 0.8);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.plate__title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(16, 26, 22, 0.16);
}

.plate dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.plate__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.25rem 1.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px dotted rgba(16, 26, 22, 0.22);
}

.plate__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.plate dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 26, 22, 0.58);
  padding-top: 0.2em;
}

.plate dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.plate dd a {
  color: var(--brass-dim);
}

.plate dd a:hover {
  color: var(--ink);
}

@media (max-width: 34rem) {
  .plate__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  border-top: 1px solid rgba(242, 239, 230, 0.1);
}

.section__head {
  margin-bottom: 2rem;
}

.section__head p.eyebrow {
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* .prose sits on the same element as .shell, so keep the shell's width and
   constrain the measure on the children instead — otherwise the narrower
   max-width wins and the text block centres away from the page's left edge. */
.shell.prose {
  max-width: var(--shell);
  color: rgba(242, 239, 230, 0.84);
}

.shell.prose > * {
  max-width: 62ch;
}

.prose h3 {
  margin-top: 2rem;
  color: var(--porcelain);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  border: 1px solid rgba(242, 239, 230, 0.14);
  border-radius: 3px;
  padding: 1.25rem 1.25rem 1.35rem;
  background: linear-gradient(rgba(242, 239, 230, 0.035), transparent);
  transition: border-color 160ms ease;
}

.card:hover {
  border-color: rgba(206, 152, 82, 0.65);
}

.card p {
  color: rgba(242, 239, 230, 0.78);
  font-size: 0.9375rem;
}

.card__meta {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card__meta a {
  color: var(--brass);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(206, 152, 82, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.85rem;
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.contact p {
  color: rgba(242, 239, 230, 0.86);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(242, 239, 230, 0.1);
  padding-block: 2.25rem 3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 1.25rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--porcelain);
  text-decoration: underline;
}

/* ---------- load sequence: the plate stamps itself in, row by row ---------- */

@media (prefers-reduced-motion: no-preference) {
  .plate {
    animation: rise 520ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .plate__row {
    animation: rise 420ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
    animation-delay: calc(260ms + var(--i, 0) * 55ms);
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
