/* Edit these values to change the site's palette and spacing. */
:root {
  --paper: #ffffff;
  --ink: #4d524d;
  --accent: #72c971;
  --rule: #d9d9d9;
  --page-gutter: clamp(20px, 3.4vw, 65px);
  --inner-gutter: clamp(22px, 2.55vw, 49px);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid #347a33; outline-offset: 6px; }
.skip-link {
  position: absolute;
  left: 24px;
  top: -100px;
  padding: 10px 16px;
  background: white;
  z-index: 10;
}
.skip-link:focus { top: 12px; }
.page-frame {
  margin-inline: var(--page-gutter);
  border-inline: 2px solid var(--rule);
}

/* Header: original green mark and three navigation links. */
.site-header {
  min-height: 75px;
  padding-inline: var(--inner-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--rule);
}
.brand { display: inline-flex; color: var(--accent); flex: 0 0 auto; }
.brand-mark { width: 44px; height: 44px; display: block; }
.main-nav { display: flex; align-items: center; gap: 19px; }
.main-nav a { padding-block: 12px; font-size: 15px; }

/* The former animated title is now ordinary editable text. */
.hero {
  min-height: clamp(510px, 69vh, 710px);
  padding: 25px var(--inner-gutter) 70px;
  display: grid;
  grid-template-rows: auto 1fr;
}
h1 {
  margin: 0;
  max-width: 510px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.designer-statement {
  align-self: center;
  justify-self: center;
  margin: 30px 0 0;
  padding-block: 30px;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(35px, 4.1vw, 66px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}
.designer-statement span { margin-inline: 0.22em; letter-spacing: 0.07em; }

/* Five projects share one row on desktop and wrap on smaller screens. */
.project-list {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.3fr 1fr 1fr;
  gap: 24px;
  padding: 24px var(--inner-gutter) 35px;
  border-bottom: 2px solid var(--rule);
  scroll-margin-top: 24px;
}
.project { display: block; min-width: 0; font-family: "Be Vietnam Pro", Arial, sans-serif; }
.project h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.project p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.project:hover { text-decoration: none; }
.project:hover h2 { text-decoration: underline; text-underline-offset: 5px; }

.site-footer {
  padding: 65px var(--inner-gutter) 40px;
  font-family: "Anuphan", "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
.back-link { display: inline-block; margin-bottom: 24px; }
.site-footer p { margin: 0 0 12px; }
.site-footer .copyright { margin-top: 36px; font-size: 16px; }

@media (max-width: 1000px) {
  .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
  .hero { min-height: 510px; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 16px; --inner-gutter: 20px; }
  .site-header { min-height: 70px; gap: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
  .hero { min-height: 480px; padding-top: 36px; padding-bottom: 40px; }
  h1 { font-size: 24px; }
  .desktop-break { display: none; }
  .designer-statement { font-size: 40px; max-width: 320px; }
  .designer-statement span { margin-inline: 0; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .project h2 { font-size: 17px; }
  .site-footer { font-size: 16px; padding-top: 45px; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; padding-block: 12px; }
  .project-list { grid-template-columns: 1fr; }
}
