/* Angles of Dice
   A quiet portfolio page. The renders carry it, so the page keeps out of
   the way: flat background, one accent colour, no motion. */

:root{
  --bg:      #0A0F10;
  --bg-soft: #101718;
  --text:    #E8E2D6;
  --muted:   #98A09D;
  --faint:   #6C7472;
  --amber:   #FEC550;
  --rule:    rgba(232,226,214,.13);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Karla", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-weight:300;
  font-size:17px;
  line-height:1.68;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:inherit; }

::selection{ background:var(--amber); color:#0A0F10; }

:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }

.skip{
  position:absolute; left:-9999px; top:0;
  background:var(--amber); color:#0A0F10;
  padding:.7rem 1.2rem; text-decoration:none; font-weight:500;
}
.skip:focus{ left:1rem; top:1rem; z-index:10; }

.wrap{
  width:min(100% - 2.5rem, var(--wrap));
  margin-inline:auto;
}

h1,h2,h3{
  font-family:var(--serif);
  font-weight:500;
  font-variation-settings:"SOFT" 20, "WONK" 1;
  line-height:1.14;
  letter-spacing:-.012em;
  margin:0;
}

p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }

/* ---------------- header ---------------- */
.top{ border-bottom:1px solid var(--rule); }
.top__in{
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; padding:1.4rem 0;
}
.top__brand{
  display:flex; align-items:center; gap:.7rem;
  text-decoration:none;
  font-size:.94rem; font-weight:500; letter-spacing:.01em;
}
.rune{ width:22px; height:22px; flex:none; color:var(--amber); }

.top__nav{ display:flex; gap:1.9rem; }
.top__nav a{
  font-size:.94rem; color:var(--muted); text-decoration:none;
  padding-bottom:2px; border-bottom:1px solid transparent;
}
.top__nav a:hover{ color:var(--text); border-bottom-color:var(--amber); }

/* ---------------- intro ---------------- */
.intro{ padding:clamp(4rem,10vw,8rem) 0 clamp(3.5rem,8vw,6rem); }
.intro__mark{
  width:clamp(210px,26vw,320px);
  margin-bottom:clamp(2.2rem,5vw,3.4rem);
}
.intro__title{
  font-size:clamp(1.75rem,3.6vw,2.85rem);
  max-width:19ch;
  margin-bottom:1.5rem;
}
.intro__text{
  max-width:56ch;
  color:var(--muted);
  font-size:1.06rem;
}
.intro__more{
  display:flex; flex-wrap:wrap; gap:2rem;
  margin-top:2.4rem;
}
.intro__more a{
  color:var(--text); text-decoration:none;
  border-bottom:1px solid var(--amber);
  padding-bottom:3px;
  font-size:.98rem;
}
.intro__more a:hover{ color:var(--amber); }

/* ---------------- rows: label in the margin ---------------- */
.block{ padding:clamp(3rem,7vw,5.5rem) 0; border-top:1px solid var(--rule); }

.row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:clamp(1.5rem,5vw,4rem);
  align-items:start;
}
.row--next{ margin-top:clamp(3.5rem,8vw,6rem); }

.row__label{
  font-size:.82rem;
  color:var(--faint);
  margin:.55rem 0 0;
  position:sticky; top:2rem;
}

/* ---------------- pack ---------------- */
.pack__name{
  font-size:clamp(1.45rem,2.6vw,2.05rem);
  margin-bottom:.5rem;
}
.pack__meta{
  color:var(--amber);
  font-size:.94rem;
  margin-bottom:1.8rem;
}
.pack p{ max-width:62ch; color:var(--muted); }
.pack__buy{ margin-top:2.4rem; color:var(--muted); }
.pack__buy a,
.prose a,
.contact__links a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid var(--rule);
  padding-bottom:1px;
}
.pack__buy a:hover,
.prose a:hover,
.contact__links a:hover{ color:var(--amber); border-bottom-color:var(--amber); }

/* ---------------- images ---------------- */
.shot{ margin:0; }
.shot img{
  width:100%;
  background:var(--bg-soft);
  cursor:zoom-in;
}
.shot figcaption{
  margin-top:.6rem;
  font-size:.82rem;
  color:var(--faint);
}
.shot--lead{ margin:2.6rem 0 0; }

.shots{ display:grid; gap:1.4rem; margin-top:1.4rem; }
.shots--2{ grid-template-columns:repeat(2,1fr); }
.shots--3{ grid-template-columns:repeat(3,1fr); }

/* ---------------- in the works ---------------- */
.wip{ margin:0; }
.wip dt{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.12rem;
  margin-bottom:.25rem;
}
.wip dd{
  margin:0 0 1.6rem;
  color:var(--muted);
  max-width:58ch;
}
.wip dd:last-child{ margin-bottom:0; }

/* ---------------- studio ---------------- */
.prose p{ max-width:62ch; color:var(--muted); }

/* ---------------- contact ---------------- */
.contact__mail{
  font-family:var(--serif);
  font-size:clamp(1.3rem,3vw,1.9rem);
  margin-bottom:1.6rem;
}
.contact__mail a{
  text-decoration:none;
  border-bottom:1px solid var(--amber);
  padding-bottom:4px;
}
.contact__mail a:hover{ color:var(--amber); }

.contact__links{
  display:flex; flex-wrap:wrap; gap:1.6rem;
  font-size:.94rem; color:var(--muted);
}

/* ---------------- footer ---------------- */
.foot{ border-top:1px solid var(--rule); padding:2.6rem 0 3rem; }
.foot__in{ display:flex; align-items:center; gap:.8rem; }
.rune--foot{ width:18px; height:18px; opacity:.75; }
.foot p{ margin:0; font-size:.85rem; color:var(--faint); }

/* ---------------- lightbox ---------------- */
.lb{
  position:fixed; inset:0; z-index:100;
  display:none; place-items:center;
  padding:clamp(1rem,4vw,3rem);
  background:rgba(6,10,11,.96);
}
.lb.is-open{ display:grid; }
.lb img{ max-width:min(1200px,100%); max-height:88vh; width:auto; }
.lb__close{
  position:absolute; top:1.2rem; right:1.4rem;
  background:none; border:0; padding:.4rem;
  color:var(--muted); font-size:1.6rem; line-height:1;
  cursor:pointer; font-family:var(--sans);
}
.lb__close:hover{ color:var(--amber); }

/* ---------------- responsive ---------------- */
@media (max-width:860px){
  .row{ grid-template-columns:1fr; gap:1rem; }
  .row__label{ position:static; margin:0 0 .2rem; }
  .shots--3{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:560px){
  body{ font-size:16px; }
  .top__nav{ gap:1.2rem; }
  .top__nav a{ font-size:.88rem; }
  .shots--2,
  .shots--3{ grid-template-columns:1fr; }
  .intro__more{ gap:1.4rem; }
}
