/* Doruk Sen — site styles */
:root {
  --ink: #111111;
  --muted: #595959;
  --soft: #3d3d3d;
  --line: #d6d6d6;
  --mat-line: #8c8c8c;
  --paper: #ffffff;
  --grey-bg: #f5f5f5;
  --placeholder: #efefef;
  --font: 'Times New Roman', Times, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
a:hover { color: #6b6b6b; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

img { display: block; max-width: 100%; height: auto; }

.label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label--small { font-size: 13px; color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header on inner pages ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px;
  padding: 20px max(80px, calc((100% - 1440px) / 2 + 80px));
  background: var(--paper);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #ececec;
}
.site-header__name { font-size: 18px; letter-spacing: 0.04em; padding: 12px 0; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 4px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
body.page-about .site-header { background: var(--grey-bg); }
body.page-about .site-header::after { background: #e2e2e2; }

/* ---------- Home ---------- */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.home__name {
  background: none; border: none; margin: 0; padding: 12px 20px; cursor: pointer;
  font-family: inherit; font-size: 28px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.home.is-open .home__name { transform: translateY(-28px); }
.home__nav {
  position: absolute; top: 50%; left: 0; right: 0; margin-top: 16px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; padding: 0 24px;
}
.home__nav a {
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 4px;
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity 500ms ease, transform 600ms cubic-bezier(.22, 1, .36, 1), color 200ms ease, visibility 0s linear 600ms;
}
.home.is-open .home__nav a { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.home.is-open .home__nav a:nth-child(1) { transition-delay: 120ms; }
.home.is-open .home__nav a:nth-child(2) { transition-delay: 190ms; }
.home.is-open .home__nav a:nth-child(3) { transition-delay: 260ms; }
.home.is-open .home__nav a:nth-child(4) { transition-delay: 330ms; }

/* ---------- Prints grid ---------- */
.prints { max-width: 1440px; margin: 0 auto; padding: 56px 80px 120px; }
.prints .label { text-align: center; margin-bottom: 64px; }
.prints__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 72px;
}
.card { display: flex; flex-direction: column; gap: 16px; }
.card__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; padding: 0 22px; }

.mat {
  background: #f2f2f2;
  padding: 22px;
  border-radius: 18px;
}
.mat--large { padding: 32px; border-radius: 22px; }

/* Hover zoom on print pages (mouse / trackpad only) */
.zoom { overflow: hidden; }
.zoom img { transition: transform 300ms ease; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .mat--large { cursor: zoom-in; }
  .zoom.is-zoomed img { transform: scale(2); }
}

/* ---------- Print detail ---------- */
.detail { max-width: 1440px; margin: 0 auto; padding: 40px 80px 96px; }
.back { display: inline-block; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 0; }
.detail__body { margin-top: 32px; display: flex; gap: 80px; align-items: flex-start; }
.detail__media { flex: 0 1 800px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.detail__story { display: flex; flex-direction: column; gap: 12px; padding: 0 32px; }
.detail__story p { margin: 0; font-size: 18px; line-height: 1.6; }
.detail__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.detail__title { display: flex; flex-direction: column; gap: 10px; }
.detail__title h1 { margin: 0; font-size: 34px; font-weight: 400; }
.detail__title p { margin: 0; font-size: 16px; color: var(--muted); }
.detail__section { display: flex; flex-direction: column; gap: 14px; }
.detail__section > p { margin: 0; font-size: 17px; line-height: 1.55; }

fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.options--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option > span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 18px; font-size: 17px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.option input:checked + span { border-color: var(--ink); background: #f4f4f4; }
.option input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

.chips { display: grid; gap: 8px; }
.chips--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; padding: 6px 8px; font-size: 16px; text-align: center;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.chips--three .chip > span { min-height: 56px; }
.chip small { font-size: 13px; color: var(--muted); }
.chip input:checked + span { border-color: var(--ink); background: #f4f4f4; }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

.detail__section > p.price { margin: 0; font-size: 30px; }
.note a { color: var(--ink); text-decoration: underline; }

.story__date { margin: 0; font-size: 16px; font-weight: 700; }
.story__series { margin: 0; font-size: 16px; font-style: italic; color: var(--muted); }
.detail__story p.story__body { margin-top: 8px; }
.buy {
  height: 52px; width: 100%;
  border: 1px solid var(--line); background: #f4f4f4; color: var(--muted);
  font-family: inherit; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: not-allowed;
}
.note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
body.page-about { background: var(--grey-bg); }
.about {
  min-height: calc(100vh - 90px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px 96px;
}
.about__row { display: flex; gap: 48px; align-items: flex-start; }
.about__mat { background: var(--paper); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; flex-shrink: 0; }
.about__portrait {
  width: 300px; aspect-ratio: 4 / 5; background: #e9e9e9;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6b6b6b;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__signature { width: 160px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #6b6b6b; }
.about__signature img { max-height: 48px; width: auto; }
.about__text { width: 560px; max-width: 100%; font-size: 15px; line-height: 1.6; color: var(--soft); display: flex; flex-direction: column; gap: 14px; }
.about__text p { margin: 0; }
.about__text strong { color: var(--ink); }

/* ---------- Contact & Gallery ---------- */
.centered {
  min-height: calc(100vh - 90px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; padding: 48px 24px 120px; text-align: center;
}
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 20px; }
.contact__links a { padding: 10px 4px; }

.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.login label { font-size: 13px; color: var(--muted); }
.login input {
  width: 100%; border: none; border-bottom: 1px solid #c4c4c4; padding: 12px 0;
  font-family: inherit; font-size: 16px; color: var(--ink); background: transparent; border-radius: 0;
}
.login input:focus { outline: none; border-bottom-color: var(--ink); }
.login button {
  height: 48px; border: none; background: var(--ink); color: #ffffff;
  font-family: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.login button:hover { background: #333333; }
.login__message { margin: 0; font-size: 14px; color: var(--muted); min-height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .detail__body { flex-direction: column; gap: 48px; }
  .detail__media, .detail__info { flex: none; width: 100%; }
}
@media (max-width: 1000px) {
  .prints__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__row { flex-direction: column; align-items: center; }
  .about__text { width: 100%; max-width: 560px; }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 20px; justify-content: center; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 13px; padding: 10px 2px; }
  .prints, .detail { padding-left: 20px; padding-right: 20px; }
  .prints__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .mat { padding: 14px; border-radius: 14px; }
  .card__meta { padding: 0 14px; }
  .mat--large { padding: 16px; border-radius: 14px; }
  .detail__story { padding: 0; }
  .about { padding: 32px 20px 72px; }
  .about__portrait { width: 240px; }
  .home__nav { gap: 4px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
