:root {
  color-scheme: dark;
  --ink: #17140f;
  --ink-deep: #100e0b;
  --ink-raised: #211b13;
  --gold: #efca7c;
  --paper: #f4e8cf;
  --text: #e0d2b7;
  --muted: #c8b79c;
  --rule: #685137;
  --serif: Cambria, 'Times New Roman', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 1.0625rem/1.72 var(--sans);
}

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

a { color: var(--gold); text-underline-offset: .24em; }

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

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

img { display: block; max-width: 100%; }

p { margin: 0 0 1em; }

h1, h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h2 { margin-bottom: .65em; font-size: clamp(2rem, 4.2vw, 3.35rem); }

.shell { width: min(100% - 4rem, 76rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  padding: .5rem .85rem;
  background: var(--ink-deep);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header, .site-footer { background: var(--ink-deep); }

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.header-inner { min-height: 5rem; padding-block: .65rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex: none;
  color: var(--paper);
  font: 1.2rem/1.2 var(--serif);
  text-decoration: none;
}

.brand img {
  width: 3.6rem;
  height: auto;
  filter: sepia(1) saturate(1.8);
  mix-blend-mode: screen;
}

nav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }

nav a, .home-link {
  display: inline-block;
  padding-block: .45rem;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
}

nav a:hover, .home-link:hover { text-decoration: underline; }

.landing-main {
  position: relative;
  isolation: isolate;
}

.landing-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/trong-dong-nen.jpg') -18rem 27rem / 57rem auto repeat-y;
  filter: grayscale(1) invert(1) sepia(1) saturate(1.8);
  mix-blend-mode: screen;
  opacity: .055;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(112deg, #16120d 15%, #271c11 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  min-height: 33rem;
  position: relative;
}

.hero-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 7vw, 6.25rem);
}

.hero h1 {
  color: var(--gold);
  font-size: clamp(3rem, 7.2vw, 6rem);
  letter-spacing: -.035em;
  white-space: nowrap;
}

.hero-tagline {
  margin-block: .6em .85em;
  max-width: 25ch;
  color: var(--paper);
  font: clamp(1.35rem, 3vw, 2.45rem)/1.18 var(--serif);
  text-wrap: balance;
}

.hero-tagline strong { font-weight: 400; }

.hero-copy p:last-child { max-width: 53ch; margin-bottom: 0; }

.hero-art {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.drum, .bird {
  position: absolute;
  height: auto;
  max-width: none;
  mix-blend-mode: screen;
  pointer-events: none;
}

.drum {
  width: clamp(43rem, 83vw, 75rem);
  left: 68%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: grayscale(1) invert(1) contrast(1.2) sepia(1) saturate(2.2) brightness(.68);
  mask-image: linear-gradient(to right, #0003, #000 53%, #000);
  opacity: .42;
}

.bird {
  width: clamp(17rem, 31vw, 28rem);
  left: 76%;
  top: 47%;
  transform: translate(-50%, -50%) rotate(-10deg);
  filter: grayscale(1) brightness(1.16) sepia(1) saturate(2);
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.35rem, 6vw, 6rem);
  padding-block: clamp(2.2rem, 6vw, 4.25rem);
  border-bottom: 1px solid var(--rule);
}

.intro p { margin: 0; }

.intro p:first-child { color: var(--paper); font: clamp(1.3rem, 2.3vw, 1.9rem)/1.45 var(--serif); }

.intro p:last-child { align-self: center; color: var(--muted); }

.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.work { padding-block: clamp(2.3rem, 6vw, 4.5rem); }

.work:first-child { padding-right: clamp(1.5rem, 4vw, 4.5rem); }

.work:last-child {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.5rem, 4vw, 4.5rem);
}

.work h2 { color: var(--gold); }

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

.access {
  background: color-mix(in srgb, var(--ink-raised) 86%, transparent);
  border-block: 1px solid var(--rule);
}

.access-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2.9rem, 6vw, 5.5rem);
}

.release-note { color: var(--gold); }

table {
  align-self: start;
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.58;
  text-align: left;
}

th, td { padding: .85rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }

thead th {
  background: #2e2418;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

thead th:first-child { white-space: nowrap; }

tbody th { color: var(--gold); }

.contact {
  padding-block: clamp(2.8rem, 7vw, 5.75rem);
}

.contact p { max-width: 65ch; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 2rem;
  margin: -.35rem 0 2rem;
  padding: 0;
  list-style: none;
}

.contact .closing {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--paper);
}

.site-footer { border-top: 1px solid var(--rule); }

.footer-inner { padding-block: 1.45rem; }

.footer-brand {
  flex: none;
  color: var(--gold);
  font: 1.2rem/1.2 var(--serif);
  text-decoration: none;
}

.legal {
  width: min(100% - 4rem, 49rem);
  padding-block: clamp(2.8rem, 8vw, 6rem);
}

.legal h1 {
  margin-bottom: .5em;
  color: var(--gold);
  font-size: clamp(2.45rem, 6vw, 4rem);
}

.legal section { margin-top: 2.4rem; }

.legal h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); }

@media (max-width: 57rem) {
  .access-inner { grid-template-columns: 1fr; gap: 1.15rem; }
  .access-inner > div { max-width: 66ch; }
}

@media (max-width: 43rem) {
  .shell, .legal { width: calc(100% - 2.5rem); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .header-inner { padding-block: .65rem .85rem; }
  .brand img { width: 3rem; }
  nav { gap: .15rem 1.1rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 2.65rem 1.6rem; }
  .hero h1 { white-space: normal; }
  .hero-inner { padding-bottom: 10rem; }
  .drum { width: max(33rem, 114vw); left: 75%; top: 59%; opacity: .25; }
  .bird { width: min(77vw, 21rem); left: 50%; top: auto; bottom: 1.1rem; transform: translateX(-50%) rotate(-10deg); }
  .landing-main::before { background-position: -22rem 28rem; background-size: 48rem auto; }
  .intro, .works { grid-template-columns: 1fr; }
  .work:first-child { padding-right: 0; }
  .work:last-child { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  th, td { padding: .7rem .55rem; }
}

@media (max-width: 23rem) {
  .shell, .legal { width: calc(100% - 1.75rem); }
  nav { gap: .12rem .7rem; }
  nav a, .home-link { font-size: .89rem; }
  .hero h1 { font-size: 2.75rem; }
}

