﻿:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --panel: #ffffff;
  --ink: #202124;
  --muted: #64615c;
  --line: #ded7cc;
  --accent: #2f6f73;
  --accent-dark: #214f52;
  --warm: #c56b42;
  --soft: #ece4d8;
  --shadow: 0 18px 45px rgba(38, 34, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: center;
  min-height: auto;
  padding: 2.5rem 0 1.25rem;
}

.hero-text {
  max-width: 760px;
}

.eyebrow,
.tag {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 140px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  color: var(--accent-dark);
}

.image-placeholder,
.thumb-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 115, 0.12), rgba(197, 107, 66, 0.16)),
    var(--soft);
  border: 1px dashed #b9aa97;
  color: var(--muted);
  display: flex;
  justify-content: center;
}

.image-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  min-height: 320px;
  overflow: hidden;
}

.image-placeholder img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-image img {
  object-fit: contain;
}

.portrait {
  aspect-ratio: 1;
  min-height: 260px;
}

.section {
  padding: 3rem 0;
}

.hero + .section {
  padding-top: 1.25rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.intro {
  padding-top: 3rem;
}

.card-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.25rem;
}

.page {
  min-height: calc(100vh - 160px);
}

.content-layout,
.contact-panel {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  padding: 3rem 0;
}

.narrow {
  max-width: 760px;
}

.clean-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 1.25rem;
}

.clean-list li + li {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card > div:last-child {
  padding: 1.15rem;
}

.thumb-placeholder {
  aspect-ratio: 16 / 10;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.thumb-placeholder span,
.thumb-placeholder strong {
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}

.thumb-placeholder span {
  font-size: 0.78rem;
  font-weight: 800;
}

.thumb-placeholder strong {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.project-thumb-tool {
  background:
    linear-gradient(135deg, rgba(47, 111, 115, 0.18), rgba(236, 228, 216, 0.7)),
    var(--soft);
}

.project-thumb-language {
  background:
    linear-gradient(135deg, rgba(197, 107, 66, 0.16), rgba(236, 228, 216, 0.74)),
    var(--soft);
}

.project-thumb-care {
  background:
    linear-gradient(135deg, rgba(33, 79, 82, 0.16), rgba(197, 107, 66, 0.11)),
    var(--soft);
}

.project-thumb-material {
  background:
    linear-gradient(135deg, rgba(100, 97, 92, 0.14), rgba(47, 111, 115, 0.14)),
    var(--soft);
}

.project-actions {
  margin-top: 1rem;
}

.contact-box {
  padding: 1.35rem;
}

.contact-box a {
  color: var(--accent-dark);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.25rem;
}

.site-footer p {
  font-size: 0.92rem;
  margin: 0;
}

.anon-page {
  max-width: 1180px;
}

.anon-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.anon-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.anon-panel label {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.anon-main-field,
.anon-small-field {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  width: 100%;
}

.anon-main-field {
  min-height: 280px;
}

.anon-small-field {
  min-height: 100px;
}

.anon-list-grid,
.anon-stats {
  display: grid;
  gap: 0.75rem;
}

.anon-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.anon-options {
  display: grid;
  gap: 0.45rem 1rem;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-top: 1rem;
}

.anon-options label {
  align-items: flex-start;
  color: var(--ink);
  display: flex;
  font-weight: 400;
  gap: 0.5rem;
  margin: 0;
}

.anon-options input {
  margin-top: 0.25rem;
}

.anon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.anon-button {
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.anon-button.primary,
.anon-button.secondary {
  color: #ffffff;
}

.anon-button.primary {
  background: var(--accent);
}

.anon-button.secondary {
  background: #475467;
  border-color: #475467;
}

.anon-button.light {
  background: var(--soft);
  border-color: var(--line);
  color: var(--ink);
}

.anon-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.anon-stat {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.anon-stat span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.anon-stat strong {
  color: var(--ink);
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.anon-report {
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.anon-report.ok {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #027a48;
}

.anon-report.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #b54708;
}

.anon-report.danger {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.anon-flag-list,
.anon-test-list {
  color: var(--muted);
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.anon-test-list .passed {
  color: #027a48;
}

.anon-test-list .failed {
  color: #b42318;
}

.anon-note {
  font-size: 0.92rem;
  margin-bottom: 0;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .hero,
  .content-layout,
  .contact-panel,
  .card-grid,
  .project-grid,
  .anon-list-grid,
  .anon-options,
  .anon-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 460px) {
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .actions,
  .button {
    width: 100%;
  }
}
