/* ============================================
   aditivonczechowski.com — deploy-20260908
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;1,400&family=Inter:wght@300;400&display=swap');

@font-face {
  font-family: 'AditiWriting';
  src: url('AditiWriting-Regular.otf') format('opentype'),
       url('AditiWriting-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --black:    #111110;
  --mid:      #888784;
  --light:    #c8c5c0;
  --bg:       #fafaf8;
  --sidebar-w: 210px;
  --serif:    'EB Garamond', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
  --hand:     'AditiWriting', cursive;
}

/* ---------- Base ---------- */
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
p { max-width: 60ch; }

/* ---------- Layout ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 3rem 3.5rem 5rem;
}

/* ---------- Sidebar: name ---------- */
.site-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 3rem;
}

.site-name a { display: block; }

/* ---------- Sidebar: nav ---------- */
nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--black);
}

/* ---------- Page sections ---------- */
.page-section {
  max-width: 860px;
}

/* ---------- Work: image grid ---------- */
.work-section {
  margin-bottom: 4rem;
}

.work-section-label {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--black);
  margin-bottom: 1rem;
}

/* Images stack in a simple column or tight grid depending on count */
.image-row {
  display: grid;
  gap: 3px;
}

.image-row.cols-1 { grid-template-columns: 1fr; }
.image-row.cols-2 { grid-template-columns: 1fr 1fr; }
.image-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.image-row img,
.image-row .img-ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8e6e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.work-caption {
  margin-top: 0.6rem;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.5;
}

/* ---------- Writing list ---------- */
.writing-list {
  list-style: none;
  max-width: 620px;
}

.writing-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e5e3df;
  display: grid;
  grid-template-columns: 1fr 3rem;
  gap: 1rem;
  align-items: baseline;
}

.writing-list li:first-child {
  border-top: 1px solid #e5e3df;
}

.writing-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.3;
  transition: color 0.15s;
}

.writing-list a:hover .writing-title {
  color: var(--mid);
}

.writing-desc {
  font-size: 11.5px;
  color: var(--mid);
  margin-top: 0.3rem;
}

.writing-year {
  font-size: 11px;
  color: var(--light);
  text-align: right;
}

/* ---------- About text ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 860px;
}

.about-body p + p { margin-top: 1.1rem; }

.about-body p {
  font-size: 13px;
  color: var(--black);
  line-height: 1.75;
}

.about-img {
  background: #e8e6e2;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.info-block {
  margin-top: 3.5rem;
  max-width: 620px;
}

.info-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e3df;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
}

.info-row:first-child { border-top: 1px solid #e5e3df; }

.info-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  padding-top: 2px;
}

.info-value {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-email {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  display: inline;
  transition: color 0.15s;
}

.contact-email:hover { color: var(--mid); }

form {
  margin-top: 3rem;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #d8d6d2;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--black); }

.form-field textarea { min-height: 100px; }

.btn-send {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
  margin-top: 0.5rem;
}

.btn-send:hover { color: var(--mid); }

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem 1rem;
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
    border-bottom: 1px solid #e5e3df;
  }

  .site-name { margin-bottom: 0; font-size: 0.95rem; }

  nav ul { flex-direction: row; gap: 1.2rem; flex-wrap: wrap; }

  .main {
    margin-left: 0;
    padding: 2rem 1.5rem 4rem;
  }

  .about-body { grid-template-columns: 1fr; gap: 2rem; }
  .image-row.cols-3 { grid-template-columns: 1fr 1fr; }
}
