/*
Theme Name: DoNothing
Theme URI: http://donothing.eu
Author: DoNothing
Description: Portfolio theme inspired by mariecodina.com — minimal, editorial, image-first.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: donothing
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #f5f4f0;
  --color-text: #1a1a1a;
  --color-muted: #888;
  --color-accent: #1a1a1a;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', serif;
  --nav-height: 56px;
  --max-width: 1400px;
  --gutter: 32px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  mix-blend-mode: multiply;
}

.site-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}

.site-nav a {
  transition: opacity 0.2s;
}

/* =============================================
   HOMEPAGE
   ============================================= */
.home-intro {
  padding: calc(var(--nav-height) + 80px) var(--gutter) 60px;
  max-width: 680px;
}

.home-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}

.project-item--full {
  grid-column: span 2;
}

.project-item__media {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item__media--tall {
  aspect-ratio: 4/5;
}

.project-item:hover .project-item__media {
  transform: scale(1.03);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 244, 240, 0.0);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-item:hover .project-item__overlay {
  opacity: 1;
  background: rgba(245, 244, 240, 0.85);
}

.project-item__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.project-item__type {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Archives label */
.project-archives-label {
  padding: 60px var(--gutter) 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Archives grid (smaller) */
.archives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.archives-item {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.archives-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.archives-item:hover img { transform: scale(1.04); }

/* =============================================
   HOME FOOTER (bottom of homepage)
   ============================================= */
.home-footer {
  padding: 80px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-footer__tagline {
  font-size: 15px;
  font-weight: 500;
}

.home-footer__sub {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 480px;
  line-height: 1.6;
}

.home-footer__links {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 13px;
}

.site-copyright {
  padding: 20px var(--gutter) 40px;
  font-size: 12px;
  color: var(--color-muted);
}

/* =============================================
   SINGLE PROJECT PAGE
   ============================================= */
.project-header {
  padding: calc(var(--nav-height) + 60px) var(--gutter) 40px;
  max-width: 780px;
}

.project-header__title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
}

.project-header__link {
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  display: inline-block;
  margin-bottom: 32px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 20px;
}

.project-meta__item label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.project-close {
  position: fixed;
  top: 18px;
  right: var(--gutter);
  font-size: 13px;
  z-index: 200;
  cursor: pointer;
  transition: opacity 0.2s;
}

.project-close:hover { opacity: 0.5; }

/* Project media gallery */
.project-gallery {
  padding: 0 var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-gallery__item {
  width: 100%;
}

.project-gallery__item img,
.project-gallery__item video {
  width: 100%;
  height: auto;
  display: block;
}

.project-gallery__item video {
  max-height: 80vh;
  object-fit: cover;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page {
  padding: calc(var(--nav-height) + 60px) var(--gutter) 80px;
}

.about-intro {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 760px;
  margin-bottom: 60px;
}

.about-photo {
  width: 100%;
  max-width: 560px;
  margin-bottom: 60px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-bio {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 60px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 780px;
  margin-bottom: 80px;
}

.about-columns__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.about-columns__list {
  list-style: none;
  font-size: 14px;
  line-height: 2;
}

.about-offscreen {
  margin-top: 80px;
}

.about-offscreen__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.about-offscreen__link {
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}

.about-offscreen__link:hover { opacity: 0.4; }

/* Instagram grid on About */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 32px;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.instagram-grid img:hover { opacity: 0.8; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
  padding: calc(var(--nav-height) + 80px) var(--gutter) 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page h1 {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.contact-form__group input,
.contact-form__group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding: 10px 0;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  border-bottom-color: var(--color-text);
}

.contact-form__submit {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.contact-form__submit:hover { opacity: 0.75; }

.contact-email-direct {
  margin-top: 48px;
  font-size: 13px;
  color: var(--color-muted);
}

.contact-email-direct a {
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 1px;
}

/* =============================================
   IMAGES PAGE
   ============================================= */
.images-page {
  padding: calc(var(--nav-height) + 60px) var(--gutter) 80px;
}

.images-intro {
  max-width: 580px;
  margin-bottom: 48px;
}

.images-intro p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.images-intro a {
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.images-masonry {
  columns: 3;
  column-gap: 6px;
}

.images-masonry__item {
  break-inside: avoid;
  margin-bottom: 6px;
}

.images-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.images-masonry__item img:hover { opacity: 0.88; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-item--full { grid-column: span 1; }

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

  .about-columns { grid-template-columns: 1fr 1fr; gap: 32px; }

  .instagram-grid { grid-template-columns: repeat(4, 1fr); }

  .project-meta { grid-template-columns: 1fr 1fr; gap: 20px; }

  .images-masonry { columns: 2; }
}

@media (max-width: 600px) {
  .about-columns { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .images-masonry { columns: 1; }
  .project-meta { grid-template-columns: 1fr 1fr; }
}
