/*
 * The holding page's look, in plain CSS: the website's palette, type and
 * layout without Tailwind or a build.
 *
 * The colours are copied from packages/ui/src/theme.css, which is a Tailwind
 * @theme block that plain CSS can't import. The page is temporary, so the copy
 * is too: it goes when the website takes over pompeii.ch.
 */
:root {
  --ink: #0a0908;
  --ink-raised: #141210;
  --ink-line: #262220;

  --bone: #ece7df;
  --bone-dim: #9c968c;

  --gold: #c9a227;
  --gold-bright: #e3bd4d;

  /* Adobe Fonts kit nto5tib, the website's: roma for headings, minion-3 for text. */
  --font-display: "roma", ui-serif, Georgia, serif;
  --font-body: "minion-3", ui-serif, Georgia, "Times New Roman", serif;
}

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

html {
  background-color: var(--ink);
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background-color: var(--gold);
  color: var(--ink);
}

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

/* The website's content column (src/components/ui/container.tsx). */
.container {
  margin-inline: auto;
  width: 100%;
  max-width: 1500px;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: min(10vw, 150px);
  }
}

/* Header: the website's bar, without its links. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink-line);
}

.wordmark {
  display: block;
  width: auto;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .wordmark {
    height: 1.75rem;
  }
}

.wordmark-link {
  color: var(--bone);
  transition: color 150ms;
}

.wordmark-link:hover {
  color: var(--gold);
}

.languages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.languages .slash {
  color: var(--ink-line);
}

.languages a {
  color: var(--bone-dim);
  transition: color 150ms;
}

.languages a:hover {
  color: var(--bone);
}

.languages a[aria-current] {
  color: var(--gold);
}

/* The home page's hero: inset, 4:5 on a phone, 16:9 from md. */
.hero {
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 2rem;
  }
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: clip;
  background-color: var(--ink-raised);
}

@media (min-width: 768px) {
  .hero-frame {
    aspect-ratio: 16 / 9;
  }
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 75%;
}

/* The home page's intro, holding the notice instead. */
main {
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

.notice {
  margin-inline: auto;
  max-width: 36rem;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .notice {
    padding-top: 6rem;
  }
}

.notice h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: 0.14em;
}

@media (min-width: 768px) {
  .notice h1 {
    font-size: 3rem;
    line-height: 1;
  }
}

.notice p {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--bone-dim);
}

/* The website's outlined button (src/components/work/apply.tsx). */
.button {
  display: inline-block;
  margin-top: 2.5rem;
  border: 1px solid var(--ink-line);
  padding: 1rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition:
    color 150ms,
    border-color 150ms;
}

.button:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Footer: the website's (src/components/layout/site-footer.tsx), without its links. */
.footer {
  border-top: 1px solid var(--ink-line);
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer {
    padding-top: 4rem;
  }
}

.footer-top {
  display: flex;
  justify-content: center;
}

.footer-top .wordmark {
  height: 1.25rem;
}

@media (min-width: 768px) {
  .footer-top {
    justify-content: flex-start;
  }
}

.footer-facts {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.625;
  color: var(--bone-dim);
}

@media (min-width: 768px) {
  .footer-facts {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }

  .footer-facts .hours {
    text-align: right;
  }
}

.footer-facts address {
  font-style: normal;
}

.footer-facts address a {
  display: inline-block;
  transition: color 150ms;
}

.footer-facts address a:hover {
  color: var(--bone);
}

.footer-legal {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--ink-line);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
