@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display.woff2") format("woff2");
  font-weight: 640;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #e6dfd2;
  --ink: #12100c;
  --muted: #3d382f;
  --paper: #f6f2ea;
  --sheet: #f7f3eb;
  --green: #143028;
  --on-dark: #f4efe6;
  --line: rgba(18, 16, 12, 0.16);
  --danger: #6e1414;
  --footer: #10261e;
  --serif: "Fraunces", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mark {
  position: relative;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.mark-draw {
  display: block;
  width: 9.4rem;
  max-width: 100%;
  aspect-ratio: 910 / 180;
  background: currentColor;
  -webkit-mask: url("/favicon.svg") left center / contain no-repeat;
  mask: url("/favicon.svg") left center / contain no-repeat;
}

.hero {
  padding: 1.15rem 0 1.4rem;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  background: var(--green);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
}

.hero-copy h1 {
  margin: 1.6rem 0 1.35rem;
  max-width: 100%;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2.45rem, 8.4vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.services li {
  padding: 1.15rem 1.2rem 1.3rem;
}

.services h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.services p {
  margin: 0;
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.tone-paper {
  background: var(--sheet);
  color: var(--ink);
}

.tone-ink {
  background: var(--ink);
  color: var(--on-dark);
}

.tone-green {
  background: var(--green);
  color: var(--on-dark);
}

.langs {
  padding: 4.5rem 0 4rem;
}

.langs h2,
.projects h2 {
  margin: 0;
  font-family: var(--text);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.lang-row {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 1.5rem;
}

.lang-row li > span {
  display: block;
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lang-row strong {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.85rem, 4.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lang-row em {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
}

.projects {
  padding: 0 0 4.5rem;
}

.project-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.project-list a {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.project-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.project-list strong {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.project-list span {
  color: var(--muted);
}

.project-list a:hover strong,
.project-list a:focus-visible strong {
  color: var(--green);
}

.contact-band {
  background: var(--green);
  color: var(--on-dark);
  padding: 3.5rem 0;
}

.contact-copy h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.contact-copy p {
  margin: 0;
  max-width: 22rem;
  font-size: 1.15rem;
}

.contact-copy a {
  color: inherit;
}

form {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--paper);
  color: var(--ink);
}

label {
  display: block;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(18, 16, 12, 0.28);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 0;
  background: var(--green);
  color: var(--on-dark);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.notice {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
  border-left: 4px solid var(--green);
}

.notice.err {
  border-left-color: var(--danger);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
}

.hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.foot {
  background: var(--footer);
  color: var(--on-dark);
  padding: 1.5rem 0;
}

.foot .frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  align-items: center;
}

.foot .mark {
  color: var(--on-dark);
}

.foot .mark-draw {
  width: 8.5rem;
}

.foot a:not(.mark) {
  color: inherit;
  text-decoration: none;
}

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

.tone-ink :focus-visible,
.tone-green :focus-visible,
.contact-band :focus-visible,
.foot :focus-visible,
.action:focus-visible {
  outline-color: var(--on-dark);
}

@media (min-width: 48rem) {
  .frame {
    width: min(100% - 4rem, 76rem);
  }

  .mark-draw {
    width: 18rem;
    max-width: none;
  }

  .action {
    padding: 0.7rem 1.1rem;
  }

  .lang-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .project-list a {
    grid-template-columns: minmax(14rem, 0.85fr) 1.15fr;
    align-items: baseline;
    column-gap: 2rem;
  }

  .pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  button {
    width: auto;
    min-width: 12rem;
    justify-self: start;
  }
}

@media (min-width: 64rem) {
  .hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 0 1.5rem;
  }

  .hero-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-stage {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: 2.25rem;
    margin-top: 1.25rem;
    min-height: 0;
  }

  .hero-copy {
    display: flex;
    align-items: flex-end;
  }

  .hero-copy h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(3.3rem, 4.6vw, 4.7rem);
  }

  .services {
    height: 100%;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .services li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.35rem 1.4rem 1.45rem;
  }

  .lang-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.8rem;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }

  form {
    margin-top: 0;
    padding: 1.5rem 1.4rem 1.6rem;
  }
}
