:root {
  --zinc: #16181A;
  --ale: #E6D7B8;
  --tan: #8E8573;
  --maple: #6A4A2A;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
html, body, * { min-width: 0; }
body {
  min-height: 100svh;
  background: var(--zinc);
  color: var(--ale);
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.14em; }
a:focus-visible { outline: 1px solid var(--ale); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 1.2rem;
  width: 100%;
  max-width: 100%;
}
.name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.name a { text-decoration: none; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.88rem;
  color: var(--tan);
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.15rem;
  color: var(--tan);
}
nav a[aria-current="page"] { color: var(--ale); }

.spread {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.work {
  display: grid;
  grid-template-columns: 70fr 30fr;
  width: 100%;
  max-width: 100%;
  align-items: start;
}
.work .pic {
  min-width: 0;
  background: var(--zinc);
}
.work .pic img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  object-position: left top;
  background: var(--zinc);
}
.rail {
  padding: 1.1rem 1.2rem 1.6rem;
  border-left: 1px solid var(--maple);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  color: var(--ale);
  min-width: 0;
}
.rail p {
  margin: 0 0 1.1rem;
  white-space: pre-line;
  overflow-wrap: break-word;
}

main.page {
  padding: 1.2rem 1.4rem 4rem;
  max-width: min(54rem, 100%);
  width: 100%;
}
h1 {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 1.2rem;
}
.bio { white-space: pre-line; overflow-wrap: break-word; }
.studio img {
  width: 100%;
  height: auto;
  margin: 0 0 0.8rem;
}
.about {
  display: grid;
  gap: 1.2rem;
  max-width: 46rem;
}
.about img { width: min(18rem, 100%); height: auto; }

form {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
  width: 100%;
  margin-top: 1rem;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
input, textarea, button {
  font: inherit;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
input, textarea {
  color: var(--ale);
  background: transparent;
  border: 1px solid var(--maple);
  padding: 0.65rem 0.7rem;
}
textarea { min-height: 8rem; resize: vertical; }
button {
  color: var(--zinc);
  background: var(--ale);
  border: 0;
  padding: 0.7rem 1rem;
  justify-self: start;
  width: auto;
  min-width: 44px;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  width: 100%;
}
footer .by { color: var(--ale); text-decoration: none; }

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.45rem 0.85rem 0.25rem;
  }
  .name { font-size: 0.92rem; }
  nav {
    gap: 0.15rem 0.7rem;
  }
  nav a {
    min-height: 44px;
    padding: 0.55rem 0.35rem;
  }
  .work { grid-template-columns: 1fr; }
  .rail {
    border-left: 0;
    border-top: 1px solid var(--maple);
    padding: 0.85rem 0.9rem 1.4rem;
  }
  .work .pic img {
    max-height: 70vh;
    width: 100%;
  }
  main.page { padding: 1rem 0.9rem 3.2rem; }
}
