@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --background: #f6f4ef;
  --foreground: #161513;
  --card: #fffcf7;
  --muted: #6e6a64;
  --border: #d9d4cb;
  --destructive: #8f2d20;
  --shadow-border: 0 0 0 1px rgb(22 21 19 / 0.08), 0 1px 2px -1px rgb(22 21 19 / 0.06);
  --shadow-border-hover: 0 0 0 1px rgb(22 21 19 / 0.14), 0 1px 2px -1px rgb(22 21 19 / 0.08);
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --radius: 12px;
}

* { box-sizing: border-box; border-color: var(--border); }
html, body { margin: 0; min-height: 100%; }
html { background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "cv11" on;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
}
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
button:not(:disabled), a.btn { cursor: pointer; }
::selection { background: var(--foreground); color: var(--background); }

.page { display: flex; flex-direction: column; min-height: 100svh; }
.wrap {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
@media (min-width: 640px) {
  .wrap { padding: 4rem 2rem 5rem; }
}
.footer {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .footer { padding: 0 2rem 2.5rem; }
}

.mark { height: 4rem; width: auto; display: block; }
@media (min-width: 640px) {
  .mark { height: 5rem; }
}
.brand {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) {
  .brand { font-size: 1.125rem; }
}
.muted { color: var(--muted); }

.hero { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) {
  .hero { margin-top: 5rem; }
}
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}
.lede {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.625;
}
@media (min-width: 640px) {
  .lede { font-size: 1.25rem; }
}

.copy {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(22 21 19 / 0.9);
}
@media (min-width: 640px) {
  .copy { margin-top: 4rem; font-size: 1.125rem; }
}
.copy p { margin: 0; }

.work { margin-top: 4rem; }
@media (min-width: 640px) {
  .work { margin-top: 5rem; }
}
.work h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) {
  .work h2 { font-size: 2.25rem; }
}
.work-list {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.work-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 640px) {
  .work-item { gap: 1.25rem; }
}
.work-item img {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: var(--card);
  box-shadow: var(--shadow-border);
}
@media (min-width: 640px) {
  .work-item img {
    width: 180px;
    height: 180px;
  }
}
.work-item dt {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.work-item dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.contact {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
@media (min-width: 640px) {
  .contact { margin-top: 5rem; }
}
.contact h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) {
  .contact h2 { font-size: 2.25rem; }
}

form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
label { font-size: 0.875rem; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
  outline: none;
}
input { height: 2.75rem; padding: 0 0.75rem; }
textarea { min-height: 9rem; padding: 0.75rem; resize: vertical; }
input:focus, textarea:focus {
  box-shadow: var(--shadow-border), 0 0 0 2px var(--background), 0 0 0 4px var(--foreground);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
.error { margin: 0; font-size: 0.875rem; color: var(--destructive); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.125rem 0 1.5rem;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
  width: 100%;
}
@media (min-width: 640px) {
  .btn { width: auto; align-self: flex-start; }
}
.btn:hover { background: rgb(22 21 19 / 0.9); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 1rem; height: 1rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.rise { animation: rise 400ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-2 { animation-delay: 70ms; }
.rise-3 { animation-delay: 140ms; }
.rise-4 { animation-delay: 210ms; }
.rise-5 { animation-delay: 280ms; }
.rise-6 { animation-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6 {
    animation: none; opacity: 1; transform: none; filter: none;
  }
}
