* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #1c1c20;
  color: #f2f2f0;
  font-family: "Courier New", Courier, ui-monospace, monospace;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.logo {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: #ffffff;
}

nav {
  display: flex;
  gap: 40px;
  font-size: 1rem;
  color: #e4e4e2;
}

nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 90px 24px 60px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.search-bar {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  padding: 0 24px;
}

.search-bar input {
  flex: 1;
  padding: 18px 24px;
  border-radius: 999px;
  border: none;
  background: #e8e8e6;
  color: #2a2a2a;
  font-family: inherit;
  font-size: 1rem;
}

.search-bar input::placeholder {
  color: #4a4a4a;
}

.search-bar button {
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid #6a6a6a;
  background: transparent;
  color: #f2f2f0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-bar button:hover {
  background: #2c2c30;
}

/* ---------- Gallery strip ---------- */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 70px;
}

.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 45%);
}

.thumb span {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  font-size: 0.9rem;
  color: #f2f2f0;
  text-align: center;
  width: 100%;
}

.thumb.t1 { --grad: linear-gradient(135deg, #6b4a3a, #a8785a); }
.thumb.t2 { --grad: linear-gradient(135deg, #3a5a6b, #7a9aa8); }
.thumb.t3 { --grad: linear-gradient(135deg, #5a3a4a, #8a5a6b); }
.thumb.t4 { --grad: linear-gradient(135deg, #3a5a6b, #6b8a9a); }
.thumb.t5 { --grad: linear-gradient(135deg, #6b3a3a, #9a6a5a); }

/* ---------- Gallery grid page ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
  padding: 4px 24px 60px;
}

.gallery-grid .thumb {
  aspect-ratio: 1 / 1;
}

/* ---------- Terms page ---------- */

main.terms {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

main.terms h1 {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 48px;
}

main.terms h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 48px 0 28px;
}

.rule {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.15rem;
  margin-bottom: 26px;
  max-width: 700px;
}

.rule .icon {
  flex-shrink: 0;
}

footer {
  text-align: center;
  padding: 40px 24px;
  color: #8a8a86;
  font-size: 0.9rem;
}
